/* Médaillou : styles du site, repris de la maquette v2 (maquette/tokens.css + base.css + site.css), puis adaptations WordPress en fin de fichier.
 * Les noms de classes de la maquette sont gardés tels quels : l'extension medaillou-gravure s'appuie dessus (configurateur, dessins des produits).
 * Polices : déclarées dans theme.json (hébergées dans assets/fonts), aucune requête vers Google. */

/* ═════════ WordPress : marges des blocs Groupe ═════════
 * WordPress ajoute une marge entre les enfants d'un Groupe (:root :where(.is-layout-flow) > *, spécificité 0-1-0).
 * On l'annule avec la même spécificité, AVANT les règles de la maquette : celles-ci (.head, .engrave, .footer__cols…)
 * gardent ainsi leurs propres marges. Le contenu rédigé (.prose) garde l'espacement normal de WordPress. */
.wp-site-blocks > *,
.site-main > *,
.nav > *,
.footer > *,
:where(.site-main, .nav, .footer) .is-layout-flow:where(:not(.prose, .prose *)) > * { margin-block: 0; }

/* ═════════ tokens.css ═════════ */
:root {
  color-scheme: light;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150);
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  /* Squeeze, re-tinted to the user's reference image: cream ground, saffron controls, chocolate ink. */
  --color-paper: oklch(96.5% 0.022 86); --color-paper-2: oklch(93% 0.038 84); --color-paper-3: oklch(88.5% 0.055 80);
  --color-ink: oklch(27% 0.062 32); --color-ink-2: oklch(34% 0.062 34); --color-muted: oklch(44% 0.048 42); --color-rule: oklch(83% 0.05 76);
  --color-accent: oklch(81% 0.15 78); --color-accent-2: oklch(76% 0.16 70); --color-accent-ink: oklch(27% 0.062 32); --color-focus: oklch(47% 0.15 55);
  --color-card: oklch(99% 0.008 86); --color-card-ink: oklch(27% 0.062 32);
  --color-deep: oklch(29% 0.07 29); --color-deep-ink: oklch(95% 0.03 85); --color-deep-muted: oklch(85% 0.045 80); --color-deep-rule: oklch(42% 0.06 32);
  --color-arch: var(--color-accent);
  /* the tag renders: metal stops and the engraving */
  --metal-gold-1: oklch(91% 0.09 90); --metal-gold-2: oklch(80% 0.13 80); --metal-gold-3: oklch(66% 0.12 70); --metal-gold-edge: oklch(55% 0.1 62);
  --metal-silver-1: oklch(97% 0.005 250); --metal-silver-2: oklch(86% 0.01 250); --metal-silver-3: oklch(70% 0.012 250); --metal-silver-edge: oklch(58% 0.012 250);
  --metal-rose-1: oklch(92% 0.04 40); --metal-rose-2: oklch(82% 0.07 35); --metal-rose-3: oklch(68% 0.08 30); --metal-rose-edge: oklch(57% 0.08 28);
  --metal-noir-1: oklch(46% 0.006 280); --metal-noir-2: oklch(30% 0.006 280); --metal-noir-3: oklch(22% 0.006 280); --metal-noir-edge: oklch(16% 0.005 280);
  /* engraving colours: laser marks on silver, gold and rose metal, light marks on black metal, champagne on the black cat-collar plate */
  --engrave-gold: oklch(43% 0.085 60); --engrave-silver: oklch(40% 0.02 95); --engrave-rose: oklch(42% 0.07 30); --engrave-light: oklch(88% 0.008 250); --engrave-champagne: oklch(82% 0.05 85); --engrave-dark: oklch(24% 0.03 55);
  /* collar and glitter colours are product data: see the catalogue of the medaillou-gravure plugin (includes/class-regles.php) */
  --font-display: "Gabarito", ui-sans-serif, system-ui, sans-serif; --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  /* engraving preview: the glitter tags and the collar plates use a narrow sans close to the sellers' one; the bone tag uses the six fonts of the catalogue (fonts declared in theme.json) */
  --font-engrave: "Barlow Semi Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --radius-card: 24px; --radius-control: 16px; --radius-pill: 999px; --rule-hair: 1px; --rule-bar: 2px;
  --shadow-card: 0 14px 32px -16px oklch(30% 0.06 40 / 0.35);
  --shadow-tag: 0 24px 40px -18px oklch(30% 0.06 40 / 0.45);
  --tracking-display: -0.025em; --display-weight: 800;
}

/* ═════════ base.css ═════════ */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 45%, transparent); color: var(--color-card-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; font-size: var(--text-display); } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-slot] { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2, var(--color-paper)), var(--color-paper-3, var(--color-paper))); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
/* photographs: natural vib=12 con=4 */
[data-slot] > img { filter: saturate(1.06) contrast(1.04); }

/* ═════════ site.css ═════════ */
/* Hallmark · shape: Conversational FAQ · genre: playful · theme: Squeeze (deal 1/3, seed boutique-e-commerce-fran-aise-f6e9·7aa1b3f7·2026-11-15·r0) · job: buy · draw: 83dad3
 * hero: Poster · nav: search-led bar · footer: statement · imagery: the product built (live engraving preview), library photographs · signature: the visitor types the pet's name and it is engraved live on a giant tag
 * axes: light/geometric-sans/warm · posture: committed · palette: user reference (cream, saffron, chocolate) over Squeeze · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V5 · weakest: R, the reference carried paw prints and bone doodles around the dog; cut them all, the arch and the tag stay */
/* Hallmark · waive 80 · one inline svg per tag and its collar strap, carrying the engraved name the visitor types · the engraving preview is the product this shop sells, until the supplier's tag and collar photos with a text layer replace it */
/* Hallmark · hero-review: fix · 5 findings · 5 resolved (mobile field height, centring, poster scale, empty arch now the photo slot, steel ring and engraved name) */
/* Hallmark · finish-review: subagent · 8 findings · 8 resolved (scoring round) · 1 new from the fix (sticky bar edge) resolved · gap: owner photos of a pet wearing the tag, supplier collar photos */
/* Hallmark · answered F15 · every section-level split keeps the 64px column gap; the 24px and 40px gaps live inside components, the cat product tile and the configurator's option grid */
/* Hallmark · dismissed 77 · produit.html is the product page template: buy box, what you receive, related products and footer, the single-product anatomy WooCommerce will render */
/* Hallmark · waive 47c · metal gradient and bevel on the tag svg only, inside a data-slot · the tag must read as brass or steel for the live engraving preview to sell the medal */
/* v2 · 2026-11-16 · products aligned on ../produits-reels.md: bone tag (recto/verso, 6 fonts, 20 motifs), glitter tag (patte/ronde, engraved back), cat collar (slide-on plate), padded dog collar (riveted plate), porte-clés jumeau add-on · drawings moved to dessin.js, one block per product · configurator built from produits.js (generic option groups) */

:root {
  --color-field: oklch(83% 0.135 80);
  --color-tag-shadow: oklch(30% 0.06 40 / 0.32);
  --color-field-edge: oklch(58% 0.05 50);
  --shadow-bar: 0 -16px 24px -18px oklch(30% 0.06 40 / 0.4);
  --nav-height: 76px;
}

body { caret-color: var(--color-ink); }

/* ───────── controls ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 52px; padding: 0 var(--space-lg);
  border: var(--rule-bar) solid var(--color-ink); border-radius: var(--radius-control);
  background: transparent; color: var(--color-ink);
  font: 700 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn:hover { background: var(--color-paper-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-2); border-color: var(--color-accent-2); }
.btn--small { min-height: 44px; padding: 0 var(--space-md); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.link { font-weight: 700; color: var(--color-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; text-decoration-color: var(--color-rule); transition: text-decoration-color var(--dur-micro) var(--ease-out); }
.link:hover { text-decoration-color: var(--color-accent-2); }
.link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 2px; }

.field-label { display: block; margin-bottom: var(--space-xs); font: 700 var(--text-sm)/1.3 var(--font-body); color: var(--color-ink); }
.input {
  width: 100%; min-width: 0; min-height: 52px; padding: 0 var(--space-md);
  border: var(--rule-bar) solid var(--color-muted); border-radius: var(--radius-control);
  background: var(--color-card); color: var(--color-ink);
  font: 700 var(--text-lead)/1 var(--font-body);
  outline: 2px solid transparent; outline-offset: 2px;
}
.input::placeholder { color: var(--color-muted); font-weight: 500; }
.input:focus-visible { outline-color: var(--color-focus); }
.input:disabled { opacity: 0.55; cursor: not-allowed; }
.input[aria-invalid="true"] { border-color: var(--color-error); }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-control); }
.skip:focus-visible { top: var(--space-md); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }

/* ───────── nav: search-led bar ───────── */
.bandeau { margin: 0; padding: var(--space-2xs) var(--gutter); background: var(--color-ink); color: var(--color-paper); font-size: var(--text-sm); line-height: 1.4; text-align: center; }
.bandeau strong { color: var(--color-accent); font-weight: 700; }
.bandeau__noel { white-space: nowrap; }
.bandeau__noel::before { content: "·"; margin: 0 var(--space-xs); opacity: 0.6; }
@media (max-width: 40rem) {
  .bandeau__noel { display: block; }
  .bandeau__noel::before { content: none; }
}
.nav { background: var(--color-paper-2); }
.nav__bar { display: flex; align-items: center; gap: var(--space-lg); min-height: var(--nav-height); }
/* the Médaillou logo: letters take currentColor, the i-dot (the medal with a dog ear and a cat ear) takes --logo-dot */
.wordmark { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); --logo-dot: var(--color-accent); text-decoration: none; }
.wordmark__logo { display: block; width: auto; height: 36px; }
.wordmark:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: 4px; }
.search { position: relative; flex: 1 1 auto; max-width: 440px; }
.search svg { position: absolute; left: var(--space-md); top: 50%; width: 20px; height: 20px; translate: 0 -50%; color: var(--color-muted); pointer-events: none; }
.search input {
  width: 100%; min-height: 44px; padding: 0 var(--space-md) 0 var(--space-2xl);
  border: var(--rule-bar) solid var(--color-field-edge); border-radius: var(--radius-pill);
  background: var(--color-card); color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-body);
  outline: 2px solid transparent; outline-offset: 2px;
}
.search input::placeholder { color: var(--color-muted); }
.search input:hover { border-color: var(--color-muted); }
.search input:focus-visible { outline-color: var(--color-focus); }
.nav__links { display: flex; align-items: center; gap: var(--space-xs); margin-left: auto; }
.nav__links a {
  display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md);
  border-radius: var(--radius-pill); color: var(--color-ink); font: 700 var(--text-sm)/1 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-micro) var(--ease-out);
}
.nav__links a:hover { background: var(--color-paper-3); }
.nav__links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.nav__links a[aria-current="page"] { background: var(--color-paper-3); }
.nav__links svg { width: 20px; height: 20px; }
.nav__count { display: inline-grid; place-items: center; min-width: 24px; padding: var(--space-3xs) var(--space-xs); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-paper); font-size: var(--text-xs); line-height: 1.2; font-variant-numeric: tabular-nums; }
.nav__menu { display: none; }

@media (max-width: 60rem) {
  .nav__bar { flex-wrap: wrap; gap: var(--space-sm); padding-block: var(--space-sm); }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .nav__links .nav__hide { display: none; }
  .nav__cta { display: none; }
}

/* ───────── dessins des produits (dessin.js) ─────────
 * One svg per product view, drawn by the plugin's dessin.js from its catalogue. Metal finishes come from tokens.css; glitter, collar and lining colours are product data.
 * Each product keeps its own block below, so one drawing can be swapped without touching the others. */
.tag { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 18px 22px var(--color-tag-shadow)); }
.tag text { fill: currentColor; font-variant-numeric: lining-nums; }
.tag-ring { fill: none; stroke: url(#ring-acier); stroke-width: 6.5; }
.tag-ring--cles { stroke-width: 7.5; }
.tag-ring-inner { fill: none; stroke: var(--metal-silver-edge); stroke-width: 1.4; opacity: 0.7; }
.m-tranche { fill: var(--metal-silver-edge); }
.m-biseau { fill: none; stroke: var(--metal-silver-1); stroke-width: 2.5; opacity: 0.85; }
.m-brosse { opacity: 0.5; }
.m-gravure { color: var(--engrave-silver); }

/* médaille os : four metal finishes, light engraving on black */
.os[data-metal="dore"] .m-tranche { fill: var(--metal-gold-edge); }
.os[data-metal="dore"] .m-biseau { stroke: var(--metal-gold-1); }
.os[data-metal="dore"] .m-gravure { color: var(--engrave-gold); }
.os[data-metal="rose"] .m-tranche { fill: var(--metal-rose-edge); }
.os[data-metal="rose"] .m-biseau { stroke: var(--metal-rose-1); }
.os[data-metal="rose"] .m-gravure { color: var(--engrave-rose); }
.os[data-metal="noir"] .m-tranche { fill: var(--metal-noir-edge); }
.os[data-metal="noir"] .m-biseau { stroke: var(--metal-noir-1); opacity: 0.6; }
.os[data-metal="noir"] .m-brosse { opacity: 0.22; }
.os[data-metal="noir"] .m-gravure { color: var(--engrave-light); filter: none; }

/* médaille à paillettes : glitter set in a silver frame, raised paw on the round one */
.m-creux { fill: none; stroke: oklch(22% 0.02 40 / 0.4); stroke-width: 2.2; }
.m-relief-ombre { fill: oklch(15% 0.02 40 / 0.38); }
.m-relief-lumiere { fill: none; stroke: oklch(100% 0 0 / 0.85); stroke-width: 1.3; }

/* colliers : strap colour --c, lining --c2 */
.c-sangle { fill: var(--c); }
.c-sangle--fond { fill: color-mix(in oklab, var(--c) 70%, black); }
.c-doublure { fill: var(--c2); }
.c-ombre { fill: oklch(10% 0 0 / 0.2); }
.c-lumiere { fill: oklch(100% 0 0 / 0.16); }
.c-reflet { fill: none; stroke: color-mix(in oklab, var(--c) 15%, white); stroke-width: 3.4; stroke-dasharray: 9 7; opacity: 0.9; }
.c-couture { fill: none; stroke: color-mix(in oklab, var(--c) 45%, white); stroke-width: 1.8; stroke-dasharray: 7 5; }
.c-boucle { fill: oklch(97% 0.004 85); stroke: oklch(84% 0.008 85); stroke-width: 1.5; }
.c-boucle-face { fill: oklch(93% 0.006 85); stroke: oklch(86% 0.008 85); stroke-width: 1.2; }
.c-boucle-fente { fill: oklch(82% 0.008 85); }
.c-anneau { fill: none; stroke: url(#ring-acier); stroke-width: 4; }
.c-anneau-laiton { fill: none; stroke: var(--metal-gold-2); stroke-width: 6; stroke-linecap: round; }
.c-grelot-fente { fill: oklch(28% 0.005 250); stroke: oklch(28% 0.005 250); stroke-width: 2.4; stroke-linecap: round; }
.c-grelot-ligne { fill: none; stroke: var(--metal-silver-edge); stroke-width: 1.2; }
.c-support-lumiere { fill: oklch(100% 0 0 / 0.1); }
.c-plaque-biseau { fill: none; stroke: oklch(100% 0 0 / 0.55); stroke-width: 1.5; }
.c-plaque-biseau--dore { stroke: var(--metal-gold-1); }
.m-tranche--dore { fill: var(--metal-gold-edge); }
.c-rivet { stroke: var(--metal-gold-edge); stroke-width: 1.2; }
.c-maillon { fill: var(--metal-silver-2); stroke: var(--metal-silver-edge); stroke-width: 1.2; }
.m-gravure[data-plaque="noire"] { color: var(--engrave-champagne); }
.m-gravure[data-plaque="dore"] { color: var(--engrave-dark); }

/* ───────── hero: Poster ───────── */
.hero { position: relative; isolation: isolate; background: var(--color-paper-2); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center;
  column-gap: var(--space-2xl); min-height: calc(96dvh - var(--nav-height));
  padding-block: var(--space-xl) var(--space-2xl);
}
.hero__text { display: grid; gap: var(--space-lg); }
.hero h1 { max-width: 10ch; font-size: clamp(3rem, 6.4vw, 6rem); line-height: 0.95; }
.hero .lead { color: var(--color-muted); max-width: 34ch; }
.engrave { display: grid; gap: var(--space-xs); max-width: 32rem; margin-top: var(--space-xs); }
.engrave__row { display: flex; gap: var(--space-xs); }
.engrave__row .input { flex: 1 1 8rem; }

.hero__visual { display: grid; justify-items: end; align-items: center; }
.hero__stage {
  position: relative;
  height: min(660px, calc(96dvh - var(--nav-height) - var(--space-3xl) - var(--space-xl)));
  aspect-ratio: 4 / 5; max-width: 100%;
}
.hero__arch {
  position: absolute; inset: 0; z-index: 0;
  translate: var(--space-lg) var(--space-lg);
  background: var(--color-field); border-radius: var(--radius-pill) var(--radius-pill) var(--radius-card) var(--radius-card);
}
.hero__photo {
  position: absolute; inset: 0; z-index: 1; margin: 0;
  border-radius: var(--radius-pill) var(--radius-pill) var(--radius-card) var(--radius-card);
}
.hero__photo > img { outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
.hero__tag {
  position: absolute; z-index: 2; margin: 0; background: none; overflow: visible;
  width: 112%; left: -34%; bottom: -9%;
}
.hero__tag .tag { rotate: -9deg; }

@media (max-width: 60rem) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); min-height: 0; padding-block: var(--space-lg) var(--space-2xl); }
  .hero__visual { order: -1; justify-items: center; }
  .hero__stage { height: 300px; }
  .hero__tag { width: 100%; left: -30%; bottom: -12%; }
}
@media (max-width: 40rem) {
  .hero__stage { height: 236px; margin-left: var(--space-2xl); }
  .hero__arch { translate: var(--space-sm) var(--space-sm); }
  .hero__text { gap: var(--space-md); }
  .engrave__row .btn { padding: 0 var(--space-md); }
}
@media (max-width: 22rem) {
  .engrave__row { flex-direction: column; }
  .engrave__row .input { flex: none; }
}

/* ───────── sections ───────── */
.head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.head--split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--gap-columns); align-items: end; justify-content: space-between; }
.head--split .lead { color: var(--color-muted); justify-self: end; max-width: 36ch; }

/* Pinned: the tag held while three panels pass */
.pinned { padding-block: var(--section-gap) var(--section-gap-s); }
.pinned__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-2xl); align-items: start; }
.pinned__visual {
  position: sticky; top: var(--space-2xl); z-index: var(--z-raised);
  display: grid; place-items: center; height: 560px;
  border-radius: var(--radius-card); background: var(--color-paper-2);
}
.flip { position: relative; width: min(84%, 540px); aspect-ratio: 4 / 3; margin: 0; background: none; overflow: visible; perspective: 1400px; }
.flip__face { position: absolute; inset: 0; backface-visibility: hidden; transition: transform var(--dur-long) var(--ease-in-out); }
.flip__face--back { transform: rotateY(180deg); }
.flip.is-back .flip__face--front { transform: rotateY(-180deg); }
.flip.is-back .flip__face--back { transform: rotateY(0deg); }
.pinned__panels { display: grid; }
.panel { display: grid; align-content: center; gap: var(--space-md); min-height: 460px; border-top: var(--rule-hair) solid var(--color-rule); }
.panel:first-child { border-top: 0; }
.panel h3 { font-size: clamp(2rem, 1.6vw + 1rem, 2.5rem); }
.panel p { color: var(--color-muted); max-width: 46ch; font-size: var(--text-lg); }

/* The cat: an arch photo, then the collar for sale */
.cat { padding-block: var(--section-gap-s) var(--section-gap); }
.cat__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-2xl); align-items: center; }
.arch-stage { position: relative; width: min(100%, 460px); aspect-ratio: 4 / 5; justify-self: end; margin-inline-end: var(--space-lg); }
.arch-stage__arch, .arch-stage__photo { position: absolute; inset: 0; margin: 0; border-radius: var(--radius-pill) var(--radius-pill) var(--radius-card) var(--radius-card); }
.arch-stage__arch { translate: var(--space-lg) var(--space-lg); background: var(--color-field); }
.arch-stage__photo { z-index: 1; }
.arch-stage__photo > img { outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
.cat__text { display: grid; gap: var(--space-lg); justify-items: start; }
.cat__text .lead { color: var(--color-muted); max-width: 46ch; }
.cat__product { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; column-gap: var(--space-lg); width: 100%; max-width: 560px; margin-top: var(--space-md); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); }
.cat__product .tag { width: 100%; }
.cat__meta { display: grid; gap: var(--space-xs); justify-items: start; }
.cat__meta .product__name { font-size: var(--text-xl); }


/* Range: a rail of products */
.range { padding-block: var(--section-gap) var(--section-gap-s); }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(14rem, 18%); gap: var(--gap-columns);
  margin: 0; padding: 0 0 var(--space-lg); list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
}
.rail > * { scroll-snap-align: start; }
.rail:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.product {
  display: grid; grid-template-rows: auto 1fr auto; gap: var(--space-xs); height: 100%; padding: var(--space-lg);
  border-radius: var(--radius-card); background: var(--color-paper-2); color: var(--color-ink); text-decoration: none;
  transition: background-color var(--dur-short) var(--ease-out);
}
.product:hover { background: var(--color-paper-3); }
.product:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.product__visual { display: grid; place-items: center; aspect-ratio: 1; margin-bottom: var(--space-sm); }
.product__visual .tag { width: 92%; }
.product__visual--photo { border-radius: var(--radius-control); }
.product__name { font: 800 var(--text-title)/1.15 var(--font-display); letter-spacing: var(--tracking-display); }
.product__price { font: 700 var(--text-md)/1.3 var(--font-body); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.product__meta { font-size: var(--text-sm); line-height: 1.4; color: var(--color-muted); }

/* Statement */
.statement { padding-block: var(--section-gap-l) var(--section-gap); }
.statement__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: var(--space-2xl); align-items: center; }
.statement__figure {
  font: var(--display-weight) clamp(7rem, 16vw, 15rem)/0.85 var(--font-display); letter-spacing: -0.04em;
  font-variant-numeric: lining-nums tabular-nums; white-space: nowrap;
}
.statement__text { display: grid; gap: var(--space-lg); }
.statement .lead { color: var(--color-muted); }

/* FAQ rows */
.faq { padding-block: var(--section-gap) var(--section-gap); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gap-columns); align-items: start; }
.faq__rows details { border-top: var(--rule-hair) solid var(--color-rule); }
.faq__rows details:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq__rows summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg);
  min-height: 96px; cursor: pointer; list-style: none;
}
.faq__rows summary::-webkit-details-marker { display: none; }
.faq__rows summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }
.faq__rows summary:hover h3 { text-decoration: underline; text-decoration-color: var(--color-accent-2); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.faq__rows summary svg { width: 24px; height: 24px; flex-shrink: 0; transition: transform var(--dur-short) var(--ease-out); }
.faq__rows details[open] summary svg { transform: rotate(180deg); }
.faq__rows details p { padding-bottom: var(--space-xl); color: var(--color-muted); }

/* Close: the offer again */
.close { padding-block: var(--section-gap-s) var(--section-gap-l); }
.offer {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: var(--space-2xl); align-items: center;
  padding: var(--space-2xl); border-radius: var(--radius-card); background: var(--color-card); color: var(--color-card-ink); box-shadow: var(--shadow-card);
}
.offer__visual { position: relative; margin: 0; aspect-ratio: 4 / 3; background: none; overflow: visible; }
.offer__visual .tag { position: absolute; }
.offer__medal { width: 82%; left: 0; top: 4%; rotate: -8deg; }
.offer__key { width: 58%; right: 0; bottom: 0; rotate: 10deg; }
.offer__text { display: grid; gap: var(--space-md); justify-items: start; }
.offer__price { font: var(--display-weight) var(--text-xl)/1 var(--font-display); }
.offer__price .figure { font-size: clamp(4rem, 8vw, 7rem); letter-spacing: -0.04em; font-variant-numeric: lining-nums tabular-nums; }
.offer__text p:not(.offer__price) { color: var(--color-muted); max-width: 46ch; }
.offer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); margin-top: var(--space-sm); }

/* Footer: a statement */
.footer { padding-block: var(--section-gap-s) var(--space-2xl); background: var(--color-deep); color: var(--color-deep-ink); }
.footer__statement {
  max-width: 16ch; font: var(--display-weight) var(--text-display)/0.98 var(--font-display);
  letter-spacing: var(--tracking-display); text-wrap: balance; overflow-wrap: break-word; min-width: 0;
}
.footer__sign { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl); }
.footer__symbole { flex: none; width: clamp(84px, 11vw, 152px); height: auto; color: var(--color-accent); rotate: -6deg; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin-top: var(--space-2xl); padding-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-deep-rule); }
.footer__label { margin-bottom: var(--space-sm); font: 700 var(--text-sm)/1.3 var(--font-body); color: var(--color-deep-muted); }
.footer ul { display: grid; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; }
.footer a { color: var(--color-deep-ink); text-decoration-color: transparent; text-underline-offset: 0.2em; transition: text-decoration-color var(--dur-micro) var(--ease-out); }
.footer a:hover { text-decoration-color: var(--color-accent); }
.footer a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 2px; }
.footer__legal { display: grid; gap: var(--space-2xs); margin-top: var(--space-2xl); font-size: var(--text-sm); color: var(--color-deep-muted); }
.footer__legal a { color: var(--color-deep-muted); text-decoration-color: currentColor; }

@media (max-width: 60rem) {
  .head--split { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-md); }
  .head--split .lead { justify-self: start; }
  .pinned__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); }
  .pinned__visual { position: relative; top: auto; height: 340px; }
  .panel { min-height: 0; padding-block: var(--space-xl); }
  .cat__grid, .statement__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); }
  .arch-stage { justify-self: center; width: min(78%, 360px); }
  .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .offer { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); padding: var(--space-xl); }
  .footer__cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .rail { grid-auto-columns: minmax(15rem, 78%); }
  .offer { padding: var(--space-lg); }
  .cat__product { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-md); }
  .cat__product .tag { width: 70%; justify-self: center; }
}
/* ───────── product page template ───────── */
.fiche { padding-block: var(--space-lg); }
.fiche__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-2xl); align-items: start; }
.fiche__opts, .fiche__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--space-xl); align-items: start; }
.fiche__fields { padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.fiche__visual { position: sticky; top: var(--space-lg); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
.preview {
  position: relative; display: grid; place-items: center; gap: var(--space-lg);
  min-height: 560px; padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  border-radius: var(--radius-card); background: var(--color-paper-2);
}
.flip--fiche { width: min(92%, 600px); }
.caption { font-size: var(--text-sm); color: var(--color-muted); }
.caption.is-masquee { visibility: hidden; }

/* Carrousel de la fiche ([data-vitrine], extension medaillou-gravure) : l'aperçu en direct, puis les photos du produit.
 * Glisser (aimantation CSS) partout ; flèches avec une souris ; miniatures au-dessus de 60rem, compteur en dessous. */
.vitrine { position: relative; }
.vitrine__piste {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: var(--radius-card);
}
.vitrine__piste::-webkit-scrollbar { display: none; }
.vitrine__diapo { min-width: 0; aspect-ratio: 1; max-height: 36rem; overflow: hidden; border-radius: var(--radius-card); scroll-snap-align: start; scroll-snap-stop: always; }
.vitrine__diapo:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -4px; }
.vitrine .preview { height: 100%; min-height: 0; border-radius: 0; }
.vitrine__agrandir {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0;
  background: #fff; cursor: zoom-in;
}
.vitrine__agrandir img { width: 100%; height: 100%; object-fit: contain; }
.vitrine__agrandir:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -4px; }
.vitrine__badge {
  position: absolute; top: var(--space-sm); right: var(--space-sm); display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-card) 90%, transparent); color: var(--color-ink);
  box-shadow: 0 6px 14px -8px oklch(30% 0.06 40 / 0.45); transition: background-color var(--dur-micro) var(--ease-out);
}
.vitrine__badge svg { width: 18px; height: 18px; }
.vitrine__agrandir:hover .vitrine__badge { background: var(--color-accent); }
.vitrine__fleche {
  position: absolute; top: 50%; z-index: var(--z-raised); display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: var(--radius-pill); background: var(--color-card); color: var(--color-ink); box-shadow: var(--shadow-card);
  translate: 0 -50%; cursor: pointer; transition: opacity var(--dur-short) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}
.vitrine__fleche svg { width: 22px; height: 22px; }
.vitrine__fleche:hover { background: var(--color-accent); }
.vitrine__fleche[disabled] { opacity: 0; pointer-events: none; }
.vitrine__fleche--prec { left: var(--space-sm); }
.vitrine__fleche--suiv { right: var(--space-sm); }
.vitrine__compteur {
  position: absolute; top: var(--space-sm); left: var(--space-sm); z-index: var(--z-raised); display: none;
  padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--color-card) 90%, transparent); color: var(--color-ink);
  font: 700 var(--text-sm)/1.3 var(--font-body); font-variant-numeric: tabular-nums; pointer-events: none;
}
.vitrine__miniatures {
  display: flex; gap: var(--space-xs); margin-inline: calc(-1 * var(--space-2xs)); padding: var(--space-2xs) var(--space-2xs) var(--space-xs);
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--color-rule) transparent;
}
.vitrine__mini {
  flex: 0 0 72px; aspect-ratio: 1; display: grid; padding: 3px; overflow: hidden;
  border: var(--rule-bar) solid var(--color-rule); border-radius: var(--radius-control); background: var(--color-card); cursor: pointer;
  transition: border-color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}
.vitrine__mini img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius-control) - 5px); }
.vitrine__mini:hover { border-color: var(--color-muted); }
.vitrine__mini[aria-current="true"] { border-color: var(--color-ink); background: var(--color-accent); }
.vitrine__mini-dessin { display: grid; place-items: center; border-radius: calc(var(--radius-control) - 5px); background: var(--color-paper-2); }
.vitrine__mini-dessin .tag { width: 94%; filter: drop-shadow(0 3px 3px var(--color-tag-shadow)); }
@media (hover: none), (pointer: coarse) {
  .vitrine__fleche { display: none; }
}

/* Agrandissement d'une photo (<dialog data-loupe>) : plein écran, zoom au toucher. */
html:has(.loupe[open]) { overflow: hidden; }
.loupe {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--color-deep); color: var(--color-deep-ink);
}
.loupe[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; animation: loupe-entree var(--dur-long) var(--ease-out); }
.loupe::backdrop { background: var(--color-deep); }
@keyframes loupe-entree { from { opacity: 0; } }
.loupe__cadre {
  /* une seule case de taille fixe : le max-height: 100% de la photo s'y rapporte (une rangée « auto » l'ignorerait) */
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; overflow: hidden;
  padding: calc(var(--space-2xl) + var(--space-md)) var(--space-xl) var(--space-md); touch-action: pan-y pinch-zoom;
}
.loupe__img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: var(--radius-card); background: #fff;
  cursor: zoom-in; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.loupe__cadre.is-zoom { display: block; overflow: auto; padding: 0; touch-action: auto; overscroll-behavior: contain; }
.loupe__cadre.is-zoom .loupe__img { max-width: none; max-height: none; border-radius: 0; cursor: zoom-out; }
.loupe__barre { display: flex; align-items: center; justify-content: center; gap: var(--space-lg); padding: var(--space-sm) var(--space-md) 0; }
.loupe__compteur { min-width: 4.5em; text-align: center; font: 700 var(--text-md)/1 var(--font-body); font-variant-numeric: tabular-nums; }
.loupe__aide {
  padding: var(--space-xs) var(--space-md) max(var(--space-lg), env(safe-area-inset-bottom));
  text-align: center; font-size: var(--text-sm); color: var(--color-deep-muted);
}
.loupe__bouton {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: var(--radius-pill);
  background: var(--color-card); color: var(--color-ink); cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), opacity var(--dur-short) var(--ease-out);
}
.loupe__bouton svg { width: 22px; height: 22px; }
.loupe__bouton:hover { background: var(--color-accent); }
.loupe__bouton[disabled] { opacity: 0.3; background: var(--color-card); cursor: default; }
.loupe__fermer { position: absolute; top: var(--space-md); right: var(--space-md); z-index: var(--z-raised); }
.loupe :focus-visible { outline-color: var(--color-accent); outline-offset: 3px; }

.fiche__card {
  display: grid; gap: var(--space-lg); padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-card); background: var(--color-card); color: var(--color-card-ink); box-shadow: var(--shadow-card);
}
.fiche__head { display: grid; gap: var(--space-sm); }
.fiche__head h1 { font-size: var(--text-section); max-width: 18ch; }
.fiche__price { font: var(--display-weight) var(--text-2xl)/1 var(--font-display); font-variant-numeric: lining-nums tabular-nums; }
.fiche__lead { color: var(--color-muted); max-width: 40ch; }
.opt { display: grid; gap: var(--space-2xs); min-width: 0; margin: 0; padding: 0; border: 0; }
.opt__label-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); }
.count { font-size: var(--text-sm); color: var(--color-muted); font-variant-numeric: tabular-nums; }

.choices { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: 0; padding: 0; border: 0; min-width: 0; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices label {
  display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-sm);
  border: var(--rule-bar) solid var(--color-field-edge); border-radius: var(--radius-control);
  background: var(--color-card); color: var(--color-ink); font: 700 var(--text-sm)/1.2 var(--font-body); cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}
.choices label:hover { background: var(--color-paper); border-color: var(--color-muted); }
.choices input:checked + label { background: var(--color-paper-3); border-color: var(--color-ink); box-shadow: inset 0 0 0 3px var(--color-accent); }
.choices input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.choices input:disabled + label { opacity: 0.55; cursor: not-allowed; }
.choice__icon { width: 22px; height: 22px; flex-shrink: 0; fill: currentColor; color: inherit; }
.choice__detail { font-weight: 500; color: var(--color-muted); }
.choice__police { font-size: var(--text-lg); line-height: 1; }
.choices__list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xs); }
/* swatches: round chips, the colour name stays in the legend and for screen readers */
.choices--swatches { gap: var(--space-xs); }
.choices label.choice--swatch { justify-content: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: var(--radius-pill); }
.choice--swatch .swatch { width: 30px; height: 30px; }
/* motifs: a grid of icon chips */
.choices--icones { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: var(--space-xs); }
.choices--icones label { justify-content: center; width: 100%; height: 44px; padding: 0; }
.choices--icones .choice__icon { width: 26px; height: 26px; }
.opt--large { grid-column: 1 / -1; }
.opt__value, .opt__hint { font-weight: 500; color: var(--color-muted); }
.lignes { display: grid; gap: var(--space-xs); }
.fiche__mention { font-size: var(--text-sm); color: var(--color-muted); }
.fiche__extras { display: grid; gap: var(--space-xs); }
/* size guide, inside the size option */
.guide { margin-top: var(--space-xs); }
.guide summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: var(--text-sm); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; text-decoration-color: var(--color-rule); cursor: pointer; }
.guide summary:hover { text-decoration-color: var(--color-accent-2); }
.guide summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }
.guide__body { display: grid; gap: var(--space-xs); padding-top: var(--space-xs); }
.guide table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.guide th, .guide td { padding: var(--space-2xs) var(--space-xs); text-align: left; border-bottom: var(--rule-hair) solid var(--color-rule); }
.guide thead th { color: var(--color-muted); font-weight: 700; }
.guide p { font-size: var(--text-sm); color: var(--color-muted); }
.choices--flip { justify-content: center; }
.choices--flip label { min-height: 44px; background: var(--color-paper-2); }
.choices--flip input:checked + label { background: var(--color-card); }

.swatch { width: 16px; height: 16px; flex-shrink: 0; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-ink) 25%, transparent); }
.swatch { background: var(--swatch, var(--color-paper-3)); }
.swatch--metal { background: linear-gradient(135deg, color-mix(in oklab, var(--swatch) 55%, white), var(--swatch) 55%, color-mix(in oklab, var(--swatch) 70%, black)); }
.swatch--paillettes {
  background:
    radial-gradient(circle, oklch(100% 0 0 / 0.95) 0 0.7px, transparent 1.2px) 0 0 / 5px 5px,
    radial-gradient(circle, oklch(100% 0 0 / 0.5) 0 0.6px, transparent 1px) 2px 3px / 4px 4px,
    radial-gradient(circle at 30% 25%, color-mix(in oklab, var(--swatch) 55%, white), var(--swatch) 60%, color-mix(in oklab, var(--swatch) 70%, black));
}
.swatch--doublure { background: linear-gradient(var(--swatch) 0 62%, var(--swatch-2) 62%); }

.addon { position: relative; }
.addon input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.addon label {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 56px; padding: var(--space-sm) var(--space-md) var(--space-sm) var(--space-2xl);
  border: var(--rule-bar) dashed var(--color-field-edge); border-radius: var(--radius-control); cursor: pointer; font-weight: 700;
  transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}
.addon label::before {
  content: ""; position: absolute; left: var(--space-md); top: 50%; width: 20px; height: 20px; translate: 0 -50%;
  border: var(--rule-bar) solid var(--color-muted); border-radius: 6px; background: var(--color-card);
}
.addon input:checked + label { border-style: solid; border-color: var(--color-ink); background: var(--color-paper-2); }
.addon input:checked + label::before { background: var(--color-ink); box-shadow: inset 0 0 0 3px var(--color-card); }
.addon input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.addon label:hover { background: var(--color-paper); }
.addon__price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.addon__text { display: grid; gap: var(--space-3xs); }
.addon__detail { font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); }

.fiche__buy {
  position: sticky; bottom: 0; z-index: var(--z-sticky);
  display: grid; gap: var(--space-2xs);
  margin: 0 calc(-1 * var(--space-xl)) calc(-1 * var(--space-lg));
  padding: var(--space-md) var(--space-xl) var(--space-sm);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  background: var(--color-card); box-shadow: var(--shadow-bar);
}
[data-slot][data-kind="product"] { background: none; overflow: visible; }
.btn--block { width: 100%; font-size: var(--text-lg); }
.help { min-height: 1lh; font-size: var(--text-sm); color: var(--color-muted); }
.fiche__note { font-size: var(--text-sm); color: var(--color-muted); }

.infos { padding-block: var(--section-gap) var(--section-gap); }
.infos__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-2xl); align-items: center; }
.infos__photo { margin: 0; aspect-ratio: 4 / 5; min-height: 440px; border-radius: var(--radius-card); }
.infos__photo > img { outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
.infos__text { display: grid; gap: var(--space-xl); }
.infos__list { margin: 0; }
.infos__list > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--gap-columns); padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.infos__list > div:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.infos__list dt { font: 800 var(--text-title)/1.2 var(--font-display); letter-spacing: var(--tracking-display); }
.infos__list dd { margin: 0; color: var(--color-muted); }

.associes { padding-block: var(--section-gap-s) var(--section-gap-l); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; padding: 0; list-style: none; }

@media (max-width: 75rem) {
  .fiche__opts, .fiche__fields { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 60rem) {
  .fiche__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); }
  .fiche__visual { position: relative; top: auto; }
  .preview { min-height: 360px; padding: var(--space-xl) var(--space-md) var(--space-lg); }
  /* La diapo suivante dépasse à droite (--peek) : on voit qu'on peut glisser. La piste va jusqu'au bord de l'écran. */
  .vitrine { --peek: 2.75rem; }
  .vitrine__piste {
    grid-auto-columns: calc(100vw - 2 * var(--gutter) - var(--peek)); gap: var(--space-sm);
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter) calc(var(--gutter) + var(--peek));
    scroll-padding-inline: var(--gutter); border-radius: 0;
  }
  .vitrine__compteur { display: block; }
  .vitrine__miniatures { display: none; }
  .vitrine + .caption { min-height: 2lh; }
  .loupe__cadre { padding: calc(var(--space-2xl) + var(--space-sm)) var(--space-sm) var(--space-sm); }
  .infos__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); }
  .infos__photo { min-height: 0; }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .fiche__card { padding: var(--space-lg); }
  .fiche__buy { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; padding: var(--space-sm) var(--space-md) var(--space-2xs); border-radius: 0; }
  body:has(.fiche__buy) .footer { padding-bottom: calc(var(--space-2xl) + var(--space-3xl)); }
  .grid3 { grid-template-columns: minmax(0, 1fr); }
  .infos__list > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
}

/* ───────── collection ───────── */
.shop-head { padding-block: var(--space-2xl) var(--space-xl); background: var(--color-paper-2); }
.shop-head__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-2xl); align-items: end; }
.shop-head h1 { font-size: var(--text-display); }
.shop-head .lead { color: var(--color-muted); justify-self: end; }
.shop { padding-block: var(--section-gap-s) 0; }
.shop + .shop { padding-top: var(--section-gap); }
.product--tall .product__visual { aspect-ratio: 4 / 3; }
.product--tall .product__visual .tag { width: 78%; }
.shop-close { padding-block: var(--section-gap-l) var(--section-gap); }
.shop-close__inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: var(--space-2xl); align-items: center; }
.shop-close__text { display: grid; gap: var(--space-xl); }
.shop-close h2 { max-width: 16ch; }
.shop-close__tag { margin: 0; min-height: 360px; display: grid; place-items: center; border-radius: var(--radius-card); background: var(--color-paper-2); overflow: visible; }
.shop-close__tag .tag { width: 82%; rotate: -6deg; }
@media (max-width: 60rem) {
  .shop-head__inner, .shop-close__inner { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-lg); }
  .shop-head .lead { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .flip__face, .faq__rows summary svg, .btn, .product, .link, .footer a, .choices label, .addon label, .guide summary { transition: none; }
}

/* ═════════ Adaptations WordPress (thème à blocs) ═════════ */

/* (la remise à zéro des marges des blocs Groupe est en tête de fichier) */
body .wp-site-blocks { padding: 0; }
.wp-block-template-part { margin: 0; }
/* Lien d'évitement ajouté par WordPress (« Aller au contenu ») : même rendu que .skip de la maquette */
body .skip-link.screen-reader-text:focus {
  left: var(--space-md); top: var(--space-md); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-control); background: var(--color-ink); color: var(--color-paper);
  font: 700 var(--text-md)/1.3 var(--font-body); text-decoration: none; outline: 2px solid var(--color-focus); outline-offset: 2px;
}

/* Photos posées en bloc Image (remplaçables depuis l'éditeur) : même rendu que les emplacements data-slot */
body :is(.hero__photo, .arch-stage__photo, .infos__photo) { overflow: hidden; margin: 0; background: linear-gradient(160deg, var(--color-paper-2), var(--color-paper-3)); }
body .infos__photo { position: relative; }
body :is(.hero__photo, .arch-stage__photo, .infos__photo) img {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; max-width: none; object-fit: cover;
  filter: saturate(1.06) contrast(1.04); outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px;
}
body .hero__photo img { object-position: 50% 38%; }
body .arch-stage__photo img { object-position: 50% 30%; }
body .infos__photo img { object-position: 50% 38%; }

/* En-tête : le mini-panier WooCommerce prend la place de l'icône panier de la maquette */
.nav__bar > .wp-block-woocommerce-mini-cart { flex: none; }
@media (min-width: 60.0625rem) { .nav__bar > .wp-block-woocommerce-mini-cart { margin-inline-start: calc(var(--space-xs) - var(--space-lg)); } }
.nav .wc-block-mini-cart__button {
  display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md);
  border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink);
  font: 700 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out);
}
.nav .wc-block-mini-cart__button:hover { background: var(--color-paper-3); opacity: 1; }
.nav .wc-block-mini-cart__button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.nav .wc-block-mini-cart__quantity-badge { display: inline-flex; align-items: center; gap: var(--space-xs); position: static; }
.nav .wc-block-mini-cart__icon { width: 20px; height: 20px; margin: 0; color: var(--color-ink); }
.nav .wc-block-mini-cart__badge {
  position: static; transform: none; display: inline-grid; place-items: center; min-width: 24px; height: auto; margin: 0;
  padding: var(--space-3xs) var(--space-xs); border: 0; border-radius: var(--radius-pill);
  background: var(--color-ink) !important; color: var(--color-paper) !important;
  font: 700 var(--text-xs)/1.2 var(--font-body); font-variant-numeric: tabular-nums; visibility: visible;
}
.nav .wc-block-mini-cart__amount, .nav .wc-block-mini-cart__tax-label { display: none; }

/* FAQ en blocs Détails : la question garde le style h3 de la maquette, chevron dessiné en CSS */
.faq__rows summary { font: var(--display-weight) var(--text-title)/1.2 var(--font-display); letter-spacing: var(--tracking-display); text-wrap: balance; }
.faq__rows summary::after {
  content: ""; flex-shrink: 0; width: 24px; height: 24px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--dur-short) var(--ease-out);
}
.faq__rows details[open] > summary::after { transform: rotate(180deg); }
.faq__rows summary:hover { text-decoration: underline; text-decoration-color: var(--color-accent-2); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.faq__rows summary::marker { content: ""; }
.faq__rows details > :not(summary) { padding-bottom: var(--space-xl); color: var(--color-muted); }
.faq__rows details > p:not(:last-child) { padding-bottom: var(--space-sm); }

/* Cartes produit alimentées par WooCommerce (photo du produit, ou symbole Médaillou s'il n'y a pas de photo) */
.product__visual--photo { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper), var(--color-paper-3)); }
.product__visual--photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.product--tall .product__visual--photo { aspect-ratio: 4 / 3; }
.product__visual--vide { border-radius: var(--radius-control); background: var(--color-paper); }
.product__visual--vide svg { width: 38%; height: auto; color: var(--color-paper-3); rotate: -6deg; }
.grid3 > li { min-width: 0; }
.shop-empty { display: grid; gap: var(--space-md); justify-items: start; margin-bottom: var(--space-2xl); padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); }
.shop-empty p { color: var(--color-muted); }

/* Dessins des produits : remplis par l'extension medaillou-gravure (classe medaillou-dessins sur <body>).
 * Sans elle, la place du dessin garde le symbole Médaillou, en filigrane. */
body:not(.medaillou-dessins) svg.tag[data-dessin] {
  aspect-ratio: 4 / 3; filter: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-6.11 10.4 111.11 102.6'%3E%3Cpath fill='%23edd6b1' d='M102 68A42 42 0 1 0 18 68A42 42 0 1 0 102 68ZM96 50C99 39 98 25 94 17Q91 11 85 15C79 19 74 25 70 32ZM50 30C40 18 20 14 8 23C-2 31 -5 47 -2 62C0 73 8 77 13 70C16 65 15 56 17 50C19 44 23 40 28 38ZM65.5 38A5.5 5.5 0 1 1 54.5 38A5.5 5.5 0 1 1 65.5 38Z'/%3E%3C/svg%3E") center / 34% no-repeat;
}

/* Configurateur (extension medaillou-gravure) : messages en haut de la carte, mention légale */
.medaillou-notices { display: grid; gap: var(--space-xs); }
.medaillou-notice {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin: 0;
  padding: var(--space-sm) var(--space-md); border: var(--rule-bar) solid var(--color-accent); border-radius: var(--radius-control);
  background: var(--color-paper-2); color: var(--color-ink); font-size: var(--text-sm); line-height: 1.45;
}
.medaillou-notice--error { border-color: var(--color-error); }
.medaillou-notice--success { border-color: var(--color-success); }
.medaillou-notice a { color: inherit; font-weight: 700; }
.medaillou-notice .wc-forward {
  order: 2; margin-left: auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-md);
  border: var(--rule-bar) solid var(--color-ink); border-radius: var(--radius-control); text-decoration: none; white-space: nowrap;
}
.medaillou-notice .wc-forward:hover { background: var(--color-card); }
.fiche__legal a { color: var(--color-ink); font-weight: 700; text-decoration-color: var(--color-rule); text-decoration-thickness: 2px; }
.select { appearance: auto; font-size: var(--text-md); font-weight: 500; }

/* Fiche produit : description en lignes « Libellé : texte », ou texte libre */
.infos__desc { display: grid; gap: var(--space-md); color: var(--color-muted); }
.infos__desc :is(h2, h3, h4) { color: var(--color-ink); }
.infos__desc :is(ul, ol) { margin: 0; padding-left: 1.2em; }

/* Pages (mentions légales, CGV, compte…) : bandeau de titre + texte courant */
.page-head { padding-block: var(--space-2xl) var(--space-xl); background: var(--color-paper-2); }
.page-head h1 { font-size: var(--text-display-s); max-width: 22ch; }
.page-body { padding-block: var(--section-gap-s) var(--section-gap); }
.page-body--wide { padding-block: var(--space-2xl) var(--section-gap); }
.prose > :where(h2, h3, h4) { margin-block-start: var(--space-xl); }
.prose :where(h2) { font-size: var(--text-2xl); max-width: 30ch; }
.prose :where(h3) { font-size: var(--text-xl); }
.prose :where(p, li) { max-width: 70ch; }
.prose :where(ul, ol) { padding-left: 1.2em; }
.prose a:not(.wp-element-button):not(.btn) { color: var(--color-ink); text-decoration-color: var(--color-accent-2); text-decoration-thickness: 2px; }
.prose a:not(.wp-element-button):not(.btn):hover { color: var(--color-focus); }

/* 404 */
.lost { padding-block: var(--section-gap) var(--section-gap-l); }
.lost__inner { display: grid; gap: var(--space-lg); justify-items: start; }
.lost__inner .lead { color: var(--color-muted); }
.lost__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); margin-top: var(--space-sm); }
.lost__symbole { width: clamp(84px, 11vw, 152px); height: auto; color: var(--color-accent); rotate: -6deg; }

/* Index (articles) */
.posts { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.posts .wp-block-post { display: grid; gap: var(--space-xs); padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.posts .wp-block-post-title { font-size: var(--text-xl); }
.posts .wp-block-post-title a { text-decoration: none; }
.posts .wp-block-post-excerpt { color: var(--color-muted); }

/* Notices WooCommerce au-dessus du contenu */
.notices:empty, .notices > :empty { display: none; }

/* Éditeur : les aperçus de blocs HTML n'ont pas le sprite SVG, on garde une hauteur lisible */
.editor-styles-wrapper .hero__stage { min-height: 320px; }
