@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  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: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations");
  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;
}

/* Dreamcash — système visuel « Commerce vivant », direction B+ (version PHP).
   Couleurs : bleu Dreamcash mesuré sur le logo (#3B86C3), bleu action 6,1:1 sur blanc.
   Mouvement : toutes les animations vivent sous prefers-reduced-motion: no-preference. */

:root {
  --white: #ffffff;
  --chalk: #f2f4f5;
  --ink: #20282d;
  --slate: #5e6870;
  --line: rgb(32 40 45 / 0.12);
  --line-strong: rgb(32 40 45 / 0.28);
  --brand: #3b86c3;
  --action: #1764a0;
  --action-hover: #0f4f82;
  --deep: #0f2f4a;
  --night: #0b1d2e;
  --screen: #0b9bff;
  --sky: #7cc4ff;
  --warn-bg: #fff6e5;
  --warn-ink: #7a4b00;
  --ok-bg: #e9f6ee;
  --ok-ink: #1d6b3a;
  --err-bg: #fdecec;
  --err-ink: #a12222;

  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --radius: 6px;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --step-4: clamp(2.75rem, 1.6rem + 4.6vw, 5.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--white); color: var(--ink); font-family: var(--font);
  font-size: var(--step-0); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 8px; top: 8px; transform: translateY(-200%); background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: var(--radius); }
.skip-link:focus { transform: none; }

.kicker { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--action); }
.lead { font-size: var(--step-1); line-height: 1.5; max-width: 40ch; }
.muted { color: var(--slate); }
.source { font-size: 0.75rem; color: var(--slate); font-variant-numeric: tabular-nums; white-space: nowrap; }
a.source:hover { color: var(--action); }
.placeholder-text { color: var(--slate); font-style: italic; }
.missing { display: inline-block; padding: 0 6px; border-radius: 4px; background: var(--warn-bg); color: var(--warn-ink); font-size: 0.9em; }

/* ---------- Boutons, liens, champs ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 48px; padding: 0 22px;
  background: var(--action); color: #fff; border: 1.5px solid var(--action); border-radius: var(--radius);
  font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.button:hover { background: var(--action-hover); border-color: var(--action-hover); }
.button:disabled, .button[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.button--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button--ghost:hover { background: var(--chalk); border-color: var(--ink); }
.button--light { background: #fff; color: var(--ink); border-color: #fff; }
.button--block { width: 100%; }
.button--small { min-height: 38px; padding: 0 14px; font-size: 0.9375rem; }
.button--danger { background: var(--err-ink); border-color: var(--err-ink); }
.button[data-done] { background: var(--deep); border-color: var(--deep); }

.link-arrow { font-weight: 600; color: var(--action); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.link-arrow::after { content: ""; width: 8px; height: 10px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); transition: transform 0.2s; }
.link-arrow:hover::after { transform: translateX(3px); }
.link-button { background: none; border: 0; padding: 4px 0; color: var(--action); text-decoration: underline; cursor: pointer; }

.chevrons { display: inline-flex; gap: 3px; }
.chevrons svg { width: 10px; height: 12px; fill: var(--line-strong); transition: fill 0.25s; }
.chevrons svg[data-on] { fill: var(--brand); }

.check { width: 18px; height: 18px; }
.check path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 0; }

.field { display: grid; gap: 6px; }
.field label, .field__label { font-size: 0.9375rem; font-weight: 600; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px rgb(23 100 160 / 0.18); }
.field[data-invalid] input, .field[data-invalid] select { border-color: var(--err-ink); }
.field__hint { font-size: var(--step--1); color: var(--slate); }
.field__error { font-size: 0.875rem; color: var(--err-ink); font-weight: 600; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--action); }

.notice { padding: 14px 16px; border-radius: var(--radius); border-left: 3px solid var(--brand); background: var(--chalk); font-size: 0.9375rem; display: grid; gap: 6px; }
.notice--warn { background: var(--warn-bg); border-color: #d99400; color: var(--warn-ink); }
.notice--ok { background: var(--ok-bg); border-color: var(--ok-ink); color: var(--ok-ink); }
.notice--err { background: var(--err-bg); border-color: var(--err-ink); color: var(--err-ink); }
.notice a { color: inherit; font-weight: 600; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; background: var(--chalk); color: var(--ink); white-space: nowrap; }
.badge--ok { background: var(--ok-bg); color: var(--ok-ink); }
.badge--warn { background: var(--warn-bg); color: var(--warn-ink); }
.badge--err { background: var(--err-bg); color: var(--err-ink); }
.badge--info { background: #e6f1fa; color: var(--action-hover); }

/* ---------- Bandeau préproduction ---------- */
.preprod-banner { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; padding: 6px var(--gutter); background: #fff3c4; color: #5c4400; font-size: 0.8125rem; text-align: center; }
.preprod-banner a { color: inherit; font-weight: 600; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 0.92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: var(--header-h); display: flex; align-items: center; gap: 40px; }
.site-header__logo img { width: auto; height: 38px; }
.site-header__nav { display: flex; gap: 28px; font-size: 0.9375rem; }
.site-header__nav a { text-decoration: none; }
.site-header__nav a:hover, .site-header__nav a[aria-current] { color: var(--action); }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.selection-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 0.9375rem; padding: 8px 12px; border-radius: var(--radius); }
.selection-link:hover { background: var(--chalk); }
.selection-link__count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--action); color: #fff; font-size: 0.75rem; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.account-link { border: 1.5px solid var(--line-strong); border-radius: var(--radius); padding: 8px 14px; font-size: 0.9375rem; font-weight: 600; text-decoration: none; }
.account-link:hover { border-color: var(--ink); }
.account-link--pending { width: 110px; height: 40px; border-color: var(--line); }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { list-style: none; cursor: pointer; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); font-weight: 600; font-size: 0.9375rem; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu nav { position: absolute; right: 0; top: calc(100% + 8px); width: min(80vw, 280px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; display: grid; box-shadow: 0 18px 40px rgb(15 47 74 / 0.14); }
.mobile-menu nav a { padding: 12px; text-decoration: none; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--chalk); border-top: 1px solid var(--line); }
.site-footer__inner { max-width: var(--max); margin: 0 auto; padding: 64px var(--gutter) 40px; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; }
.site-footer__brand { display: grid; gap: 14px; align-content: start; max-width: 340px; }
.site-footer__brand img { width: 160px; height: auto; }
.site-footer__brand p { font-size: 0.9375rem; color: var(--slate); }
.site-footer__title { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.site-footer ul { display: grid; gap: 6px; font-size: 0.9375rem; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { color: var(--action); }
.site-footer__legal { max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) 32px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--slate); display: grid; gap: 8px; }
.site-footer__legal nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Accueil B+ : ouverture ---------- */
.b2-hero { max-width: var(--max); margin: 0 auto; padding: clamp(28px, 5vh, 64px) var(--gutter) 0; }
.b2-hero__copy { display: grid; grid-template-columns: 8fr 4fr; gap: 24px 56px; align-items: end; margin-bottom: clamp(28px, 5vh, 56px); }
.b2-title { font-size: clamp(3rem, 1.4rem + 5.4vw, 7rem); letter-spacing: -0.05em; line-height: 0.9; }
.b2-title__mask { display: inline-block; overflow: clip; padding-bottom: 0.1em; margin-bottom: -0.1em; vertical-align: top; }
.b2-title__word { display: inline-block; }
.b2-title__word[data-accent] { color: var(--action); }
.b2-hero__side { display: grid; gap: 20px; }
.b2-hero__side .lead { font-size: var(--step-0); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.b2-notice { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--step--1); color: var(--slate); }
.b2-notice span { display: inline-flex; align-items: center; gap: 6px; }
.b2-notice span::before { content: ""; width: 6px; height: 7px; background: var(--brand); clip-path: polygon(0 0, 100% 50%, 0 100%); }

.b2-diptych { position: relative; display: grid; grid-template-columns: 5fr 7fr; height: clamp(480px, 64svh, 700px); }
.b2-photo { position: relative; overflow: hidden; border-radius: var(--radius) 0 0 var(--radius); background: #3a3127; }
.b2-photo__depth { position: absolute; inset: -9% 0; }
.b2-photo__depth img { object-fit: cover; object-position: 50% 45%; }
.b2-photo figcaption, .b2-stage__source { position: absolute; bottom: 14px; font-size: 0.75rem; padding: 4px 10px; border-radius: 999px; z-index: 2; }
.b2-photo figcaption { left: 14px; background: rgb(255 255 255 / 0.86); }
.b2-stage { position: relative; background: var(--chalk); border-radius: 0 var(--radius) var(--radius) 0; display: flex; align-items: center; }
.b2-stage__index { position: absolute; top: 20px; right: 24px; font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.b2-stage__source { right: 14px; color: var(--slate); }
.b2-stage__depth { position: relative; z-index: 3; margin-left: -15%; }
.b2-product { position: relative; display: block; height: calc(clamp(480px, 64svh, 700px) - 72px); aspect-ratio: 1055 / 1491; color: inherit; text-decoration: none; }
.b2-product > img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 28px 34px rgb(15 47 74 / 0.18)); }
.b2-callouts { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.b2-callouts path { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.b2-callouts circle { fill: var(--screen); stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.b2-callouts .b2-callouts__halo { fill: none; stroke: var(--screen); opacity: 0.35; }
.b2-callouts text { display: none; }
.b2-labels { position: absolute; inset: 0; pointer-events: none; }
.b2-labels li { position: absolute; left: calc(1180 / 1055 * 100%); width: 17ch; transform: translateY(-50%); display: grid; grid-template-columns: auto 1fr; gap: 0 10px; line-height: 1.25; }
.b2-labels__num { grid-row: span 2; color: var(--action); font-weight: 600; font-size: var(--step--1); font-variant-numeric: tabular-nums; padding-top: 2px; }
.b2-labels__text { font-weight: 600; font-size: 1rem; }
.b2-labels__detail { color: var(--slate); font-size: var(--step--1); }
.b2-cue { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 28px auto 0; width: fit-content; padding: 10px 16px; font-size: var(--step--1); font-weight: 600; text-decoration: none; color: var(--slate); }
.b2-cue__chevrons { display: inline-flex; flex-direction: column; gap: 2px; }
.b2-cue__chevrons svg { width: 12px; height: 8px; fill: var(--line-strong); }
.b2-cue:hover { color: var(--action); }

/* ---------- Accueil B+ : familles ---------- */
.fam { position: relative; overflow: hidden; background: var(--night); color: #fff; margin-top: clamp(24px, 4vh, 48px); }
.fam__motif span { position: absolute; border-radius: 999px; width: 78vw; height: 21vw; min-height: 160px; rotate: -32deg; transition: translate 1.1s var(--ease-expo); }
.fam__motif span:first-child { background: rgb(11 155 255 / 0.13); left: 30%; top: 10%; }
.fam__motif span:last-child { background: rgb(59 134 195 / 0.16); left: 52%; top: 52%; }
.fam[data-family="comptoir"] .fam__motif span:first-child { translate: -12vw 0; }
.fam[data-family="comptoir"] .fam__motif span:last-child { translate: -20vw -6vw; }
.fam[data-family="paiement"] .fam__motif span:first-child { translate: 14vw 8vw; }
.fam[data-family="paiement"] .fam__motif span:last-child { translate: 8vw -14vw; }
.fam__inner { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(72px, 12vh, 128px) var(--gutter); display: grid; grid-template-columns: 4fr 8fr; gap: 56px; align-items: start; min-height: 600px; }
.fam .kicker { color: var(--sky); margin-bottom: 24px; }
.fam__tabs { display: grid; gap: 6px; justify-items: start; }
.fam__tab {
  display: flex; align-items: center; gap: 0; background: none; border: 0; padding: 6px 0; cursor: pointer; text-align: left;
  font-size: clamp(1.75rem, 0.9rem + 1.9vw, 2.75rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; color: rgb(255 255 255 / 0.38); white-space: nowrap;
  transition: color 0.3s, gap 0.4s var(--ease-expo);
}
.fam__tab svg { width: 0; height: 0.5em; fill: var(--screen); transition: width 0.4s var(--ease-expo); flex: none; }
.fam__tab[aria-selected="true"] { color: #fff; gap: 14px; }
.fam__tab[aria-selected="true"] svg { width: 0.42em; }
.fam__tab:hover { color: rgb(255 255 255 / 0.75); }
.fam__tab-count { font-size: 0.8rem; letter-spacing: 0; align-self: flex-start; margin-left: 6px; color: rgb(255 255 255 / 0.5); font-variant-numeric: tabular-nums; }
.fam__summary { margin-top: 28px; color: rgb(255 255 255 / 0.72); max-width: 34ch; }
.fam__all { display: inline-block; margin-top: 16px; color: var(--sky); font-weight: 600; font-size: 0.9375rem; }
.fam__products { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 14px; max-width: calc(var(--n) * 240px); }
.fam__item { display: grid; gap: 4px; text-decoration: none; color: inherit; padding: 16px; border-radius: var(--radius); border: 1px solid rgb(255 255 255 / 0.08); background: rgb(255 255 255 / 0.03); height: 100%; transition: background-color 0.25s, border-color 0.25s; }
.fam__item:hover { background: rgb(255 255 255 / 0.07); border-color: rgb(124 196 255 / 0.5); }
.fam__visual { height: 220px; display: grid; place-items: center; margin-bottom: 12px; }
.fam__visual img { max-height: 100%; width: auto; object-fit: contain; transition: transform 0.4s var(--ease-out); }
.fam__item:hover .fam__visual img { transform: translateY(-6px); }
.fam__name { font-weight: 600; font-size: var(--step-1); }
.fam__tagline { color: rgb(255 255 255 / 0.66); font-size: 0.9375rem; }
.fam__more { margin-top: 8px; font-size: var(--step--1); font-weight: 600; color: var(--sky); }

/* ---------- Chapitres vidéo ---------- */
.chapter { position: relative; height: calc(var(--steps) * 70vh + 100vh); background: var(--white); }
.chapter__sticky { position: sticky; top: 0; height: 100svh; max-width: var(--max); margin: 0 auto; padding: calc(var(--header-h) + 24px) var(--gutter) 32px; display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.chapter__text { display: grid; gap: 20px; }
.chapter__text h2 { font-size: var(--step-3); letter-spacing: -0.03em; }
.chapter__steps { display: grid; gap: 4px; margin-top: 8px; }
.chapter__steps li { padding: 14px 0 14px 20px; border-left: 2px solid var(--line); transition: opacity 0.35s, border-color 0.35s; }
.chapter__steps li h3 { color: var(--slate); transition: color 0.35s; }
.chapter__steps li[data-active] { border-left-color: var(--brand); }
.chapter__steps li[data-active] h3 { color: var(--ink); }
.chapter__steps h3 { font-size: var(--step-1); margin-bottom: 4px; }
.chapter__steps p { color: var(--slate); }
.chapter__foot { display: flex; align-items: center; gap: 24px; margin-top: 8px; }
.chapter__media { display: grid; place-items: center; }
.chapter__media video, .chapter__poster img { width: 100%; max-height: calc(100svh - var(--header-h) - 64px); aspect-ratio: 1; object-fit: cover; background: #fff; }
.chapter__poster { display: grid; gap: 12px; justify-items: center; }
.chapter--static { height: auto; }
.chapter--static .chapter__sticky { position: static; height: auto; padding-block: 96px; }

/* ---------- Respiration photographique ---------- */
.breath { display: grid; grid-template-columns: 7fr 5fr; background: var(--chalk); align-items: stretch; }
.breath__media { position: relative; min-height: 520px; overflow: hidden; }
.breath__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.breath__media figcaption { position: absolute; left: 16px; bottom: 14px; right: 16px; width: fit-content; font-size: 0.75rem; background: rgb(255 255 255 / 0.88); padding: 4px 10px; border-radius: 999px; }
.breath__text { padding: clamp(40px, 8vw, 112px) var(--gutter); display: grid; gap: 20px; align-content: center; max-width: 560px; }
.breath__text h2 { font-size: var(--step-3); letter-spacing: -0.03em; }
.breath__text .muted { font-size: var(--step--1); }

/* ---------- Étapes du devis ---------- */
.devis { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 12vh, 128px) var(--gutter); }
.devis__head { display: grid; grid-template-columns: 5fr 7fr; gap: 16px 56px; align-items: end; margin-bottom: 48px; }
.devis__head .kicker { grid-column: 1 / -1; }
.devis__head h2 { font-size: var(--step-3); letter-spacing: -0.03em; }
.devis__note { color: var(--slate); max-width: 46ch; }
.devis__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.devis__steps li { border-top: 2px solid var(--ink); padding-top: 20px; display: grid; gap: 10px; align-content: start; }
.devis__num { font-size: var(--step-3); font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.devis__steps h3 { font-size: var(--step-1); }
.devis__steps p { color: var(--slate); }

/* ---------- Catalogue ---------- */
.catalogue { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vh, 80px) var(--gutter) 96px; }
.catalogue__head { display: grid; gap: 16px; margin-bottom: 40px; }
.catalogue__head h1 { font-size: var(--step-4); letter-spacing: -0.045em; line-height: 0.95; max-width: 14ch; }
.catalogue__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.catalogue__filters button, .catalogue__filter { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; font-weight: 600; cursor: pointer; }
.catalogue__filters button span, .catalogue__filter span { font-size: 0.75rem; color: var(--slate); font-variant-numeric: tabular-nums; }
.catalogue__filters button[aria-pressed="true"], .catalogue__filter[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.catalogue__filters button[aria-pressed="true"] span, .catalogue__filter[aria-current] span { color: rgb(255 255 255 / 0.7); }
.catalogue__summary { color: var(--slate); margin-bottom: 24px; }
.catalogue__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-top: 24px; }
.pcard { display: grid; gap: 4px; padding: 20px; border-radius: var(--radius); background: var(--chalk); text-decoration: none; height: 100%; transition: background-color 0.25s; }
.pcard:hover { background: #e8ecee; }
.pcard__visual { height: 260px; display: grid; place-items: center; margin-bottom: 12px; }
.pcard__visual img { max-height: 100%; width: auto; object-fit: contain; transition: transform 0.4s var(--ease-out); }
.pcard:hover .pcard__visual img { transform: translateY(-6px); }
.pcard__family { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--action); }
.pcard__name { font-size: var(--step-2); font-weight: 600; letter-spacing: -0.03em; }
.pcard__tagline { color: var(--slate); font-size: 0.9375rem; }
.pcard__meta { margin-top: 8px; font-size: var(--step--1); font-weight: 600; }

/* ---------- Fiche produit ---------- */
.product { max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 0; }
.breadcrumb { font-size: 0.875rem; color: var(--slate); margin-bottom: 24px; }
.breadcrumb a { color: var(--slate); }
.product__top { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.product__gallery { display: grid; grid-template-columns: 3fr 2fr; gap: 12px; align-items: end; }
.product__gallery--single { grid-template-columns: 1fr; }
.product__pack { background: var(--chalk); border-radius: var(--radius); padding: clamp(24px, 4vw, 56px); aspect-ratio: 4 / 5; display: grid; place-items: center; }
.product__gallery--single .product__pack { aspect-ratio: 5 / 4; }
.product__pack img { max-height: 100%; width: auto; object-fit: contain; }
.product__scene { display: grid; gap: 8px; }
.product__scene img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.product__scene figcaption { font-size: 0.75rem; color: var(--slate); }
.product__summary { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
.product__summary h1 { font-size: clamp(3.5rem, 2rem + 6vw, 7.5rem); letter-spacing: -0.05em; line-height: 0.88; }
.product__tagline { font-size: var(--step-1); font-weight: 600; }
.product__intro { color: var(--slate); }
.quote-box { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; }
.quote-box__price { font-size: var(--step-2); font-weight: 600; letter-spacing: -0.02em; }
.add { display: grid; gap: 14px; }
.add__status { font-size: 0.875rem; color: var(--slate); }
.add__status a { color: var(--action); }
.stepper { display: inline-grid; grid-template-columns: 48px 72px 48px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); width: fit-content; }
.stepper button { background: none; border: 0; font-size: 1.25rem; cursor: pointer; min-height: 46px; }
.stepper button:disabled { color: var(--line-strong); cursor: default; }
.field .stepper input { border: 0; border-inline: 1px solid var(--line); border-radius: 0; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; min-height: 46px; width: 72px; padding: 0; box-shadow: none; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.caveat { font-size: 0.875rem; color: var(--slate); border-left: 2px solid var(--brand); padding-left: 14px; }
.caveat strong { color: var(--ink); }
.product__benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: clamp(64px, 10vh, 112px) 0 32px; }
.product__benefits > div { border-top: 2px solid var(--ink); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.product__benefit-num { color: var(--action); font-weight: 600; font-variant-numeric: tabular-nums; }
.product__benefits h2 { font-size: var(--step-2); }
.product__benefits p { color: var(--slate); }
.product__chapter { margin-bottom: 48px; }

.specs { border-top: 1px solid var(--line); padding-top: 48px; display: grid; gap: 32px; }
.specs__head { display: grid; grid-template-columns: 5fr 7fr; gap: 16px 56px; align-items: end; }
.specs__head h2 { font-size: var(--step-3); letter-spacing: -0.03em; }
.specs__head p { color: var(--slate); font-size: 0.9375rem; }
.specs__head a { color: var(--action); }
.variants { display: grid; gap: 28px; }
.variants__tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.variants__tabs button { display: grid; gap: 4px; text-align: left; padding: 14px 16px; border-radius: var(--radius); border: 1.5px solid var(--line-strong); background: #fff; cursor: pointer; }
.variants__tabs button span { font-weight: 600; }
.variants__tabs button small { color: var(--slate); font-size: 0.8125rem; }
.variants__tabs button[aria-selected="true"] { border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action); background: #f3f8fc; }
.specs__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.specs__kind { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.specs__group + .specs__group { margin-top: 32px; }
.specs__group h4 { font-size: var(--step-1); margin-bottom: 8px; }
.specs dl { margin: 0; }
.specs dl > div { display: grid; grid-template-columns: 11rem 1fr auto; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.specs dt { color: var(--slate); }
.specs dd { margin: 0; }
.specs dd.specs__src { justify-self: end; }
.specs__note { display: block; margin-top: 4px; font-size: 0.8125rem; color: var(--warn-ink); }
.specs__aside { display: grid; gap: 16px; }
.specs__block { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); }
.specs__block dl > div { grid-template-columns: 7rem 1fr auto; }
.specs__block ul { display: grid; gap: 4px; margin-bottom: 8px; font-size: 0.9375rem; }
.specs__block--options { background: var(--chalk); border-color: transparent; }
.specs__block--todo { border-style: dashed; border-color: var(--line-strong); }
.specs__block--todo ul { list-style: disc; padding-left: 18px; }
.specs__hint { font-size: 0.8125rem; color: var(--slate); margin: -8px 0 12px; }
.specs__block .specs__hint:last-child { margin: 12px 0 0; }
.siblings { margin-top: 72px; }
.siblings ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 16px; }
.siblings a { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--radius); background: var(--chalk); text-decoration: none; }
.siblings img { width: 64px; height: 64px; object-fit: contain; }
.siblings span { display: grid; }
.siblings small { color: var(--slate); }
.product__cta { margin: clamp(72px, 12vh, 128px) calc(50% - 50vw) 0; padding: clamp(48px, 8vh, 88px) max(var(--gutter), calc(50vw - var(--max) / 2 + var(--gutter))); background: var(--deep); color: #fff; display: grid; gap: 16px; justify-items: start; }
.product__cta h2 { font-size: var(--step-3); letter-spacing: -0.03em; max-width: 20ch; }
.product__cta p { color: rgb(255 255 255 / 0.8); max-width: 52ch; }
.product__cta .button { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Pages étroites, sélection, formulaires ---------- */
.narrow-page { max-width: 880px; margin: 0 auto; padding: clamp(40px, 7vh, 72px) var(--gutter) 96px; display: grid; gap: 20px; align-content: start; }
.narrow-page > h1 { font-size: var(--step-3); letter-spacing: -0.035em; }
.prose h2 { font-size: var(--step-1); margin-top: 16px; }
.prose ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; }
.prose a { color: var(--action); }
.selection { display: grid; gap: 24px; }
.selection__lines li { display: grid; grid-template-columns: 72px 1fr 96px auto; gap: 20px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.selection__lines li:last-child { border-bottom: 1px solid var(--line); }
.selection__lines img { width: 72px; height: 72px; object-fit: contain; background: var(--chalk); border-radius: var(--radius); }
.selection__info { display: grid; gap: 4px; }
.selection__name { font-weight: 600; text-decoration: none; }
.selection__variant select { min-height: 40px; padding: 6px 10px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: #fff; max-width: 100%; }
.selection__qty input { width: 88px; min-height: 44px; text-align: center; border: 1.5px solid var(--line-strong); border-radius: var(--radius); }
.next-step { margin-top: 8px; padding: 24px; background: var(--chalk); border-radius: var(--radius); display: grid; gap: 14px; justify-items: start; }
.empty { display: grid; gap: 16px; justify-items: start; }

.auth-card { max-width: 560px; width: 100%; margin: 0 auto; display: grid; gap: 22px; }
.auth-card h1 { font-size: var(--step-3); letter-spacing: -0.035em; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.steps-indicator { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: var(--step--1); font-weight: 600; color: var(--slate); }
.steps-indicator [data-current] { color: var(--action); }
.otp-input { letter-spacing: 0.5em; font-size: 1.5rem !important; text-align: center; font-variant-numeric: tabular-nums; }
.company-card { padding: 18px; border-radius: var(--radius); background: var(--chalk); display: grid; gap: 4px; }
.company-card__name { font-weight: 600; font-size: var(--step-1); }
.recap { display: grid; gap: 12px; }
.recap dl { display: grid; grid-template-columns: 10rem 1fr; gap: 8px 16px; margin: 0; }
.recap dt { color: var(--slate); }
.recap dd { margin: 0; }

/* ---------- Espace client ---------- */
.account { max-width: var(--max); margin: 0 auto; padding: clamp(32px, 6vh, 64px) var(--gutter) 96px; display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.account__nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; }
.account__nav a, .account__nav button { display: block; text-align: left; padding: 10px 12px; border-radius: var(--radius); text-decoration: none; font-weight: 600; background: none; border: 0; cursor: pointer; width: 100%; }
.account__nav a[aria-current] { background: var(--chalk); color: var(--action); }
.account__nav a:hover, .account__nav button:hover { background: var(--chalk); }
.account__main { display: grid; gap: 32px; min-width: 0; }
.account__main > h1 { font-size: var(--step-3); letter-spacing: -0.035em; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; align-content: start; }
.panel h2 { font-size: var(--step-1); }
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.stat { display: grid; gap: 4px; }
.stat__value { font-size: var(--step-3); font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); font-weight: 600; background: var(--chalk); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table a { color: var(--action); font-weight: 600; }
.timeline { display: grid; gap: 10px; }
.timeline li { display: grid; grid-template-columns: 160px 1fr; gap: 16px; font-size: 0.9375rem; }
.timeline time { color: var(--slate); font-variant-numeric: tabular-nums; }

.dev-mail { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; }
.dev-mail pre { white-space: pre-wrap; font-size: 0.875rem; background: var(--chalk); padding: 12px; border-radius: var(--radius); margin: 0; font-family: ui-monospace, monospace; }

/* ---------- Tablette ---------- */
@media (max-width: 1080px) {
  .site-header__nav { display: none; }
  .mobile-menu { display: block; }
  .b2-hero__copy, .devis__head, .specs__head { grid-template-columns: 1fr; }
  .fam__inner { grid-template-columns: 1fr; gap: 32px; min-height: 0; }
  .fam__tabs { grid-auto-flow: column; justify-content: start; gap: 24px; }
  .fam__tab { font-size: var(--step-2); }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .account { grid-template-columns: 1fr; gap: 24px; }
  .account__nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .account__nav a, .account__nav button { width: auto; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .site-header__inner { gap: 12px; }
  .site-header__logo img { height: 30px; }
  .site-header__actions .account-link { display: none; }
  .selection-link { padding: 8px 6px; font-size: 0.875rem; }

  .b2-title { font-size: clamp(2.6rem, 11.5vw, 3.6rem); }
  .b2-hero__copy { margin-bottom: 24px; }
  .b2-diptych { grid-template-columns: 1fr; height: auto; }
  .b2-photo { aspect-ratio: 16 / 11; border-radius: var(--radius) var(--radius) 0 0; }
  .b2-photo figcaption { bottom: auto; top: 10px; left: 10px; }
  .b2-stage { border-radius: 0 0 var(--radius) var(--radius); padding: 0 16px 44px; }
  .b2-stage__index { top: auto; bottom: 16px; right: auto; left: 16px; font-size: 0.6875rem; }
  .b2-stage__source { display: none; }
  .b2-stage__depth { margin: -36px 0 0; width: 100%; }
  .b2-product { height: auto; aspect-ratio: auto; display: grid; grid-template-columns: 48% 1fr; gap: 12px; align-items: center; }
  .b2-product > img { height: auto; }
  .b2-callouts { width: 48%; }
  .b2-callouts path, .b2-callouts__halo { display: none; }
  .b2-callouts circle { r: 64px; stroke-width: 1.5; }
  .b2-callouts text { display: block; fill: #fff; font: 600 84px var(--font); text-anchor: middle; dominant-baseline: central; }
  .b2-labels { position: static; display: grid; gap: 14px; padding-top: 48px; }
  .b2-labels li { position: static; transform: none; width: auto; top: auto !important; }
  .b2-labels__text { font-size: 0.875rem; }

  .fam__tabs { grid-auto-flow: row; gap: 2px; }
  .fam__tab { font-size: 1.625rem; }
  .fam__products { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; max-width: none; }
  .fam__products li { flex: 0 0 64%; scroll-snap-align: start; }
  .fam__visual { height: 200px; }

  .chapter { height: calc(var(--steps) * 55svh + 100svh); }
  .chapter__sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 8px; align-items: start; padding-top: calc(var(--header-h) + 12px); }
  .chapter__media { grid-row: 1; }
  .chapter__media video { aspect-ratio: 4 / 3; max-height: 42svh; }
  .chapter__steps { position: relative; min-height: 8.5em; }
  .chapter:not(.chapter--static) .chapter__steps li { position: absolute; inset: 0 0 auto 0; opacity: 0; }
  .chapter:not(.chapter--static) .chapter__steps li[data-active] { opacity: 1; }
  .chapter--static .chapter__sticky { padding-block: 56px; }

  .breath { grid-template-columns: 1fr; }
  .breath__media { min-height: 0; aspect-ratio: 4 / 3; }
  .devis__steps, .product__benefits { grid-template-columns: 1fr; gap: 28px; }
  .product__top, .specs__grid { grid-template-columns: 1fr; }
  .product__summary { position: static; }
  .product__gallery { grid-template-columns: 1fr; }
  .product__scene { display: none; }
  .product__pack, .product__gallery--single .product__pack { aspect-ratio: 1; }
  .specs dl > div, .specs__block dl > div { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .specs dt, .specs dd { grid-column: 1; }
  .specs .source, .specs .specs__src { grid-column: 2; grid-row: 1; }
  .pcard__visual { height: 220px; }

  .site-footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .selection__lines li { grid-template-columns: 56px 1fr; gap: 12px; }
  .selection__lines img { width: 56px; height: 56px; }
  .form__row { grid-template-columns: 1fr; }
  .recap dl { grid-template-columns: 1fr; gap: 2px; }
  .recap dd { margin-bottom: 8px; }
  .timeline li { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Mouvement (uniquement si accepté) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Ouverture : titre → texte → scène → produit → annotations */
  .b2-title__word { animation: b2-rise 0.95s var(--ease-expo) both; animation-delay: calc(80ms + var(--i) * 55ms); }
  .b2-hero__side > * { animation: ui-rise 0.8s var(--ease-out) both; }
  .b2-hero__side > :nth-child(1) { animation-delay: 0.45s; }
  .b2-hero__side > :nth-child(2) { animation-delay: 0.55s; }
  .b2-hero__side > :nth-child(3) { animation-delay: 0.65s; }
  .b2-photo { animation: b2-wipe 1.15s var(--ease-expo) 0.3s both; }
  .b2-photo__depth { animation: b2-settle 1.6s var(--ease-expo) 0.3s both; }
  .b2-stage { animation: ui-rise 0.9s var(--ease-out) 0.45s both; }
  .b2-stage__depth { animation: b2-lift 1.1s var(--ease-expo) 0.6s both; }

  /* Annotations : se dessinent une à une quand le produit est visible */
  .b2-callouts path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .b2-callouts circle { scale: 0; transform-box: fill-box; transform-origin: center; }
  .b2-labels li { opacity: 0; translate: -8px 0; }
  .b2-stage[data-revealed] .b2-callouts path { transition: stroke-dashoffset 0.7s var(--ease-out); transition-delay: calc(1.25s + var(--i) * 0.18s); stroke-dashoffset: 0; }
  .b2-stage[data-revealed] .b2-callouts circle { transition: scale 0.45s var(--ease-expo); transition-delay: calc(1.15s + var(--i) * 0.18s); scale: 1; }
  .b2-stage[data-revealed] .b2-callouts__halo { animation: b2-halo 1.4s var(--ease-out) calc(1.3s + var(--i) * 0.18s) 2 both; }
  .b2-stage[data-revealed] .b2-labels li { transition: opacity 0.5s, translate 0.6s var(--ease-expo); transition-delay: calc(1.5s + var(--i) * 0.18s); opacity: 1; translate: 0 0; }

  .b2-cue__chevrons svg { animation: b2-cue 1.4s ease-in-out calc(2.2s + var(--i) * 0.12s) 3; }
  .fam__products li { animation: b2-enter 0.7s var(--ease-expo) both; animation-delay: calc(var(--i) * 70ms); }

  /* Profondeur liée au défilement, exécutée par le navigateur hors JavaScript */
  @supports (animation-timeline: scroll()) {
    .b2-photo__depth img { animation: b2-depth-back linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .b2-product { animation: b2-depth-front linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .b2-hero__copy { animation: b2-depth-copy linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
    .breath__media img { animation: b2-breath linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
  }
  @media (max-width: 760px) {
    @supports (animation-timeline: scroll()) {
      .b2-product, .b2-hero__copy { animation: none; }
    }
  }

  /* Transitions entre pages (natives, sans JavaScript) : le packshot d'une carte
     devient celui de la fiche grâce à un même view-transition-name. */
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-group(site-header) { animation: none; }
  ::view-transition-old(root) { animation: 0.25s ease-out both vt-out; }
  ::view-transition-new(root) { animation: 0.4s var(--ease-out) 0.05s both vt-in; }
  ::view-transition-group(*) { animation-duration: 0.45s; animation-timing-function: var(--ease-expo); }

  .product__summary > * { animation: ui-rise 0.7s var(--ease-expo) both; }
  .product__summary > :nth-child(2) { animation-delay: 0.06s; }
  .product__summary > :nth-child(3) { animation-delay: 0.12s; }
  .product__summary > :nth-child(4) { animation-delay: 0.18s; }
  .product__summary > :nth-child(n + 5) { animation-delay: 0.24s; }

  /* Confirmations : là où l'action produit son effet */
  .selection-link__count[data-bump] { animation: ui-bump 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
  .add__status[data-done], .notice[data-appear] { animation: ui-rise 0.45s var(--ease-expo) both; }
  .button[data-done] .check path { stroke-dashoffset: 20; animation: ui-draw 0.35s 0.05s ease-out forwards; }
}

@keyframes b2-rise { from { transform: translateY(108%); } }
@keyframes b2-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes b2-settle { from { scale: 1.14; } }
@keyframes b2-lift { from { opacity: 0; transform: translateY(56px) scale(0.95); } }
@keyframes b2-halo { 0% { scale: 0.6; opacity: 0.6; } 100% { scale: 1.8; opacity: 0; } }
@keyframes b2-cue { 0%, 100% { fill: var(--line-strong); } 45% { fill: var(--brand); } }
@keyframes b2-enter { from { opacity: 0; transform: translateX(28px); } }
@keyframes b2-depth-back { to { translate: 0 8%; } }
@keyframes b2-depth-front { to { translate: 0 -16%; } }
@keyframes b2-depth-copy { to { translate: 0 -40px; opacity: 0.35; } }
@keyframes b2-breath { from { scale: 1.12; } to { scale: 1; } }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes ui-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes ui-bump { 40% { scale: 1.35; background: var(--brand); } }
@keyframes ui-draw { to { stroke-dashoffset: 0; } }

/* ---------- Catalogue en liste + carte produit ---------- */
.plist { border-top: 1px solid var(--line); margin-top: 8px; }
.plist li { border-bottom: 1px solid var(--line); }
.plist__row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) 140px 170px 24px; gap: 24px; align-items: center;
  padding: 14px 12px; text-decoration: none; border-radius: var(--radius); transition: background-color 0.2s;
}
.plist__row:hover, .plist__row[aria-expanded="true"] { background: var(--chalk); }
.plist__visual { width: 96px; height: 96px; display: grid; place-items: center; background: var(--chalk); border-radius: var(--radius); }
.plist__row:hover .plist__visual { background: #fff; }
.plist__visual img { max-width: 84px; max-height: 84px; width: auto; height: auto; object-fit: contain; transition: transform 0.3s var(--ease-out); }
.plist__row:hover .plist__visual img { transform: scale(1.06); }
.plist__main { display: grid; gap: 2px; min-width: 0; }
.plist__name { font-size: var(--step-2); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.plist__tagline { color: var(--slate); }
.plist__family { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--action); }
.plist__meta { font-size: 0.9375rem; font-weight: 600; }
.plist__chevron { width: 10px; height: 12px; background: var(--brand); clip-path: polygon(0 0, 100% 50%, 0 100%); justify-self: end; transition: transform 0.2s; }
.plist__row:hover .plist__chevron { transform: translateX(4px); }
.catalogue__empty { padding: 24px 0; }

.pdialog {
  width: min(1180px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px);
  padding: 0; border: 0; border-radius: 12px; background: #fff; color: var(--ink);
  box-shadow: 0 40px 100px rgb(11 29 46 / 0.35); overflow: auto; overscroll-behavior: contain;
}
.pdialog::backdrop { background: rgb(11 29 46 / 0.55); backdrop-filter: blur(3px); }
.pdialog__close {
  position: sticky; top: 14px; float: right; margin: 14px 14px 0 0; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgb(255 255 255 / 0.95);
  display: grid; place-items: center; cursor: pointer;
}
.pdialog__close:hover { background: var(--chalk); }
.pdialog__close svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.pdialog__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 24px clamp(20px, 3vw, 40px) 0; }
.pdialog__open { font-size: 0.9375rem; font-weight: 600; color: var(--action); }
.pdialog__loading { padding: 80px 40px; text-align: center; color: var(--slate); }
.product--card { padding: 16px clamp(20px, 3vw, 40px) 40px; max-width: none; }
.product--card .product__top { grid-template-columns: 5fr 6fr; gap: clamp(24px, 3vw, 48px); }
.product--card .product__summary { position: static; }
.product--card .product__name { font-size: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); letter-spacing: -0.05em; line-height: 0.92; }
.product--card .product__gallery { grid-template-columns: 1fr; }
.product--card .product__scene { display: none; }
.product--card .product__pack { aspect-ratio: 1; }
.product--card .product__benefits { margin: 48px 0 24px; }
.product--card .product__chapter { display: none; }
.product--card .specs__head { grid-template-columns: 1fr; }
.product--card .specs__grid { grid-template-columns: 1fr; }

@media (max-width: 760px) {
  .plist__row { grid-template-columns: 64px minmax(0, 1fr) 16px; gap: 14px; padding: 12px 4px; }
  .plist__visual { width: 64px; height: 64px; }
  .plist__visual img { max-width: 56px; max-height: 56px; }
  .plist__name { font-size: 1.25rem; }
  .plist__tagline { font-size: 0.875rem; }
  .plist__family, .plist__meta { display: none; }
  .pdialog { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .product--card .product__top { grid-template-columns: 1fr; }
  .product--card .product__pack { aspect-ratio: 16 / 10; padding: 16px; }
  .pdialog__bar { padding-right: 72px; }
}

@media (prefers-reduced-motion: no-preference) {
  .pdialog[open] { animation: pd-in 0.42s var(--ease-expo); }
  .pdialog[open]::backdrop { animation: pd-fade 0.3s ease-out; }
  .pdialog__content > * { animation: ui-rise 0.5s var(--ease-expo) both; }
  .plist li:not([hidden]) { animation: ui-rise 0.4s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 35ms); }
  @media (max-width: 760px) { .pdialog[open] { animation: pd-up 0.42s var(--ease-expo); } }
}
@keyframes pd-in { from { opacity: 0; transform: translateY(18px) scale(0.97); } }
@keyframes pd-up { from { transform: translateY(100%); } }
@keyframes pd-fade { from { opacity: 0; } }
