/* ==========================================================================
   CHAUFFAGE DESIGN : couche posée sur css/style.css (la feuille du site).
   Le monde reste « Le bon d'intervention » ; s'y ajoute la salle d'exposition,
   le registre luxe des catalogues Helios et AEON : fond brun-noir, lumière
   d'appoint, métaux. Jetons du site seulement, plus les teintes des produits.
   ========================================================================== */
:root {
  --show: #15110F;          /* salle d'exposition : le brun-noir des catalogues */
  --show-2: #1E1916;
  --show-rule: rgba(245, 240, 232, 0.14);
  --show-ink: #F5F0E8;
  --show-muted: rgba(245, 240, 232, 0.66);
}

/* En-tête qui s'efface en descendant, revient en remontant */
.site-header { transition: transform 0.45s var(--ease-out); }
.site-header.is-tucked { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .site-header.is-tucked { transform: none; } }

.mock-flag {
  position: fixed; right: max(12px, env(safe-area-inset-right, 0px)); top: calc(var(--header-h) + 10px);
  z-index: 40; font: 700 0.6875rem/1 var(--font-sans); font-stretch: 75%; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--red); background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--red); padding: 0.375rem 0.5rem; border-radius: var(--radius);
  transform: rotate(3deg); pointer-events: none;
}
@media (max-width: 767.98px) { .mock-flag { display: none; } }

/* ---------- Salle d'exposition ---------- */
.showroom { background: var(--show); color: var(--show-ink); }
.showroom .t-h2, .showroom .t-h1, .showroom h2, .showroom h3 { color: var(--show-ink); }
.showroom .t-lead, .showroom p { color: var(--show-muted); }
.showroom .t-label { color: var(--show-muted); }
.showroom .devis { --rule: var(--show-rule); }
.showroom .devis dt { color: var(--show-muted); }
.showroom .devis dd { color: var(--show-ink); }
.showroom .link-act { color: var(--show-ink); }
.section.showroom { border-top: 0; }

/* Hero épinglé : la salle s'allume et s'agrandit au défilement */
.pin-hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; }
.pin-hero .wrap { position: relative; z-index: 2; height: 100%; display: grid; align-items: center; }
.pin-copy { max-width: 36rem; display: grid; gap: 1.25rem; padding-top: 2rem; }
.pin-media {
  position: absolute; z-index: 1; overflow: hidden; background: var(--show);
  right: max(var(--gutter-r), 16px); top: 14%; width: 44%; height: 72%;
}
.pin-media svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin-cap { position: absolute; left: clamp(1.25rem, 4vw, 3.5rem); bottom: clamp(1.25rem, 4vw, 3rem); display: grid; gap: 0.5rem; opacity: 0; color: var(--show-ink); }
.pin-cap .num { font: 800 clamp(3rem, 7vw, 6rem)/0.8 var(--font-sans); font-stretch: 112%; letter-spacing: -0.05em; color: var(--red); }
.pin-cap h2 { font: 800 clamp(1.75rem, 1rem + 3vw, 3.4rem)/0.98 var(--font-sans); font-stretch: 112%; letter-spacing: -0.03em; color: var(--show-ink); margin: 0; }
.pin-cap .t-label { color: var(--show-muted); }
.pin-steps { position: absolute; right: clamp(1rem, 3vw, 2.5rem); top: 50%; transform: translateY(-50%); display: grid; gap: 0.625rem; opacity: 0; }
.pin-steps i { display: block; width: 3px; height: 1.75rem; background: var(--show-rule); transition: background 0.3s, height 0.3s; }
.pin-steps i.on { background: var(--red); height: 2.75rem; }
@media (max-width: 1023.98px) {
  .pin-hero .wrap { align-items: start; padding-top: 1.5rem; }
  .pin-media { left: max(var(--gutter-l), 16px); right: max(var(--gutter-r), 16px); width: auto; top: auto; bottom: 1.25rem; height: 44%; }
}
@media (prefers-reduced-motion: reduce) { .pin-hero { height: auto; min-height: 0; padding-bottom: 46vh; } }

/* Échantillons (pastilles) : carré à filet, le stylo entoure le choisi */
.swatches { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.swatch { position: relative; cursor: pointer; touch-action: manipulation; background: none; border: 0; padding: 0; }
.swatch .c { display: block; width: 2.75rem; height: 2.75rem; border-radius: 1px; box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.16); }
.swatch.round .c { border-radius: 50%; }
.swatch .loop { position: absolute; inset: -11px; width: calc(100% + 22px); height: calc(100% + 22px); overflow: visible; pointer-events: none; opacity: 0; }
.swatch .loop path { fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 1.02; }
.swatch input:checked ~ .loop, .swatch[aria-pressed="true"] .loop { opacity: 1; }
.swatch input:checked ~ .loop path, .swatch[aria-pressed="true"] .loop path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.35s var(--ease-pen); }
.swatch input:focus-visible ~ .c { outline: 2px solid var(--red); outline-offset: 4px; }
.swatch .tip { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font: 600 0.75rem/1 var(--font-sans); padding: 0.375rem 0.5rem; border-radius: var(--radius); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s; z-index: 6; }
@media (hover: hover) { .swatch:hover .tip { opacity: 1; } }
.swatch input:focus-visible ~ .tip { opacity: 1; }
.swatch small { display: block; font-size: 0.8125rem; line-height: 1.25; color: var(--ink-2); margin-top: 0.5rem; text-align: left; }
.showroom .swatch small { color: var(--show-muted); }
@media (prefers-reduced-motion: reduce) { .swatch .loop path { transition: none !important; stroke-dashoffset: 0; } }

/* Sphères métal, comme au catalogue */
.sphere { display: block; width: 3rem; height: 3rem; border-radius: 50%; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.6); }

/* ---------- Bandeau des finitions qui défile ---------- */
.marquee { overflow: hidden; background: var(--show); border-block: 1px solid var(--show-rule); padding-block: 1.125rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 60s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 0.75rem; font: 700 1.0625rem/1 var(--font-sans); font-stretch: 112%; color: var(--show-ink); white-space: nowrap; }
.marquee-track i { width: 1.375rem; height: 1.375rem; border-radius: 50%; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; } }

/* ---------- Cartes empilées (la liasse) ---------- */
.stack { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.stack-card {
  position: sticky; top: calc(var(--header-h) + 1rem + var(--i, 0) * 14px);
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule), inset 0 1.5px 0 var(--ink);
  transform-origin: 50% 0; will-change: transform;
}
.stack-card.showroom { background: var(--show); box-shadow: inset 0 0 0 1px var(--show-rule); }
.stack-card.on-yellow { background: var(--yellow); box-shadow: 0 30px 50px -34px rgba(17, 24, 39, 0.45); }
.stack-in { display: grid; gap: 2rem; padding: clamp(1.5rem, 4vw, 3.5rem); min-height: min(76svh, 640px); }
@media (min-width: 1024px) { .stack-in.two { grid-template-columns: 5fr 7fr; gap: 3.5rem; align-items: center; } }
.stack-copy { display: grid; gap: 1.125rem; align-content: start; }
.stack-num { font: 700 0.875rem/1 var(--font-sans); font-stretch: 75%; letter-spacing: 0.07em; color: var(--muted); font-variant-numeric: tabular-nums; text-transform: uppercase; }
.showroom .stack-num { color: var(--show-muted); }
.stack-art { position: relative; min-height: 22rem; background: var(--show-2); }
.stack-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stack-art.paper { background: #ECE7DF; }
.stack-card .swatches { gap: 0.375rem; }
.stack-card .swatches .c { width: 1.25rem; height: 1.25rem; }
@media (max-width: 1023.98px) { .stack-card { top: calc(var(--header-h) + 0.5rem + var(--i, 0) * 10px); } .stack-art { min-height: 18rem; } }
@media (prefers-reduced-motion: reduce) { .stack-card { position: relative; top: auto !important; } }

/* ---------- Texte qui s'éclaire au défilement ---------- */
.reveal-words { font: 800 clamp(1.75rem, 1rem + 2.8vw, 3.5rem)/1.06 var(--font-sans); font-stretch: 112%; letter-spacing: -0.035em; color: var(--ink); max-width: 24ch; text-wrap: balance; margin: 0; }
.js .reveal-words .w { opacity: 0.14; }
.reveal-words .red { color: var(--red); }
@media (prefers-reduced-motion: reduce) { .js .reveal-words .w { opacity: 1; } }

/* ---------- Grille « bento » en feuilles réglées ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(10.5rem, auto); border-top: 1.5px solid var(--ink); border-left: 1px solid var(--rule); }
.bento > div { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 1.375rem; display: grid; gap: 0.375rem; align-content: end; background: var(--paper); transition: background 0.25s; }
.bento > div:hover { background: #fff; }
.bento b { font: 800 1.1875rem/1.1 var(--font-sans); font-stretch: 112%; color: var(--ink); }
.bento span { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.45; }
.bento .big { font: 800 clamp(2.25rem, 1.5rem + 2.4vw, 3.5rem)/1 var(--font-sans); font-stretch: 112%; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.bento .big em { font-style: normal; color: var(--red); }
.bento .span2 { grid-column: span 2; }
.bento .row2 { grid-row: span 2; }
.bento .dark { background: var(--show); }
.bento .dark:hover { background: var(--show-2); }
.bento .dark b { color: var(--show-ink); }
.bento .dark span { color: var(--show-muted); }
@media (max-width: 1023.98px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559.98px) { .bento { grid-template-columns: 1fr; } .bento .span2 { grid-column: auto; } .bento .row2 { grid-row: auto; } }
.touch-strip { display: grid; gap: 0.75rem; justify-self: start; background: #3a3634; padding: 1rem 1.125rem; margin-bottom: 1rem; }
.touch-strip div { display: flex; align-items: center; gap: 0.75rem; color: #ECE9E4; font-size: 1.0625rem; }
.touch-strip i { width: 6px; height: 6px; border-radius: 50%; background: #6b6560; }
.touch-strip i.on { background: #8fd19e; box-shadow: 0 0 8px #8fd19e; }

/* ---------- Catalogue (grille des modèles) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filters button { min-height: 2.75rem; padding: 0 1rem; border: 0; border-radius: var(--radius); background: transparent; color: var(--show-ink); box-shadow: inset 0 0 0 1px var(--show-rule); font: 600 0.9375rem/1 var(--font-sans); cursor: pointer; }
.filters button[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--show-ink); background: rgba(245, 240, 232, 0.06); }
.catalogue { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: 1.5rem 1.25rem; }
.cat-item { display: grid; gap: 0.625rem; text-decoration: none; color: var(--show-ink); }
.cat-item .fig { position: relative; aspect-ratio: 4 / 5; background: var(--show-2); overflow: hidden; }
.cat-item .fig svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 0.6s var(--ease-out); }
@media (hover: hover) { .cat-item:hover .fig svg { transform: scale(1.04); } .cat-item:hover .name { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; } }
.cat-item .row { display: flex; align-items: baseline; gap: 0.625rem; }
.cat-item .no { font: 700 0.75rem/1 var(--font-sans); font-stretch: 75%; letter-spacing: 0.06em; color: #15110F; background: #B6A27A; padding: 0.25rem 0.375rem; font-variant-numeric: tabular-nums; }
.cat-item .no.r { background: var(--red); color: #fff; }
.cat-item .name { font: 700 1.0625rem/1.2 var(--font-sans); }
.cat-item .kind { font-size: 0.8125rem; color: var(--show-muted); }
.cat-item[hidden] { display: none; }
.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2rem; font-size: 0.8125rem; color: var(--show-muted); }
.legend i { display: inline-block; width: 0.75rem; height: 0.75rem; margin-right: 0.5rem; vertical-align: -1px; }

/* ---------- Configurateur ---------- */
.cfg { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .cfg { grid-template-columns: 7fr 5fr; gap: 3rem; align-items: start; } }
.stage { position: sticky; top: calc(var(--header-h) + 1rem); z-index: 20; transition: top 0.45s var(--ease-out); }
body.header-tucked .stage { top: 1rem; }
.stage-print { background: #fff; padding: 0.625rem; box-shadow: inset 0 0 0 1px var(--rule); }
.stage-scene { position: relative; aspect-ratio: 6 / 5; background: var(--show); overflow: hidden; }
.stage-scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-cap { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.5rem; font-size: 0.75rem; color: var(--muted); }
.walls { position: absolute; right: 0.625rem; bottom: 0.625rem; display: flex; gap: 0.375rem; background: rgba(252, 253, 254, 0.94); padding: 0.375rem; box-shadow: inset 0 0 0 1px var(--rule); }
.walls label { display: block; cursor: pointer; }
.walls span { display: block; width: 1.5rem; height: 1.5rem; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); }
.walls input:checked + span { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.walls input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
@media (max-width: 1023.98px) {
  .stage { top: var(--header-h); background: var(--paper); padding-block: 0.5rem; margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); padding-inline: var(--gutter-l) var(--gutter-r); border-bottom: 1px solid var(--rule); }
  body.header-tucked .stage { top: 0; }
  .stage-scene { aspect-ratio: auto; height: 34svh; }
}
.quest { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); padding: clamp(1.25rem, 2.5vw, 2rem); }
.quest fieldset { border: 0; margin: 0; padding: 1.25rem 0; border-bottom: 1px solid var(--rule-soft); display: grid; gap: 0.875rem; min-width: 0; }
.quest fieldset:first-of-type { padding-top: 0; }
.quest fieldset:last-of-type { border-bottom: 0; }
.quest legend { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; width: 100%; padding: 0; margin-bottom: 0.875rem; }
.quest legend output { font-size: 0.9375rem; font-weight: 700; color: var(--ink); text-align: right; }
.grp { font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.75rem, 1fr)); gap: 0.5rem; }
.opts.row { display: flex; flex-wrap: wrap; }
.opt { cursor: pointer; touch-action: manipulation; }
.opt .box { display: grid; justify-items: center; gap: 0.375rem; padding: 0.625rem 0.375rem; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--rule); background: var(--paper); transition: box-shadow 0.18s, background 0.18s; text-align: center; }
.opts.row .opt .box { grid-auto-flow: column; align-items: center; gap: 0.5rem; padding: 0.625rem 0.875rem; min-height: 2.75rem; }
@media (hover: hover) { .opt:hover .box { box-shadow: inset 0 0 0 1px var(--ink); } }
.opt input:checked + .box { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink), inset 0 0 0 3px #fff, inset 0 0 0 4px var(--ink); }
.opt input:focus-visible + .box { outline: 2px solid var(--red); outline-offset: 2px; }
.opt input:disabled + .box { opacity: 0.38; cursor: not-allowed; }
.opt .sil { height: 3.25rem; display: flex; align-items: flex-end; }
.opt .sil i { display: block; border-radius: 1px; background: var(--rad, #8a8f93); transition: background 0.35s; }
.opt b { font-size: 0.875rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.opt small { font-size: 0.75rem; color: var(--muted); margin-top: -0.25rem; }
.opt .box i.dot { width: 0.875rem; height: 0.875rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); }
.opt .box span { font-size: 0.9375rem; color: var(--ink); }
.field-line { display: flex; flex-direction: column; gap: 0.375rem; }
.field-line input { min-height: 3.125rem; padding: 0 0.875rem; border: 0; border-radius: 0; background: var(--field); border-bottom: 1.5px solid var(--ink); font-size: 1rem; }
.field-line input:focus { outline: 2px solid var(--red); outline-offset: 0; background: #fff; border-bottom-color: var(--red); }
.recap { display: grid; gap: 1rem; padding-top: 1.25rem; }
.recap .devis { margin: 0; }
.ref { font: 600 0.875rem/1.3 ui-monospace, Menlo, Consolas, monospace; }

/* Formats à l'échelle */
.scale { display: flex; align-items: flex-end; gap: clamp(1rem, 3vw, 2.75rem); overflow-x: auto; padding: 1.5rem 0.25rem 0; border-bottom: 1.5px solid var(--ink); }
.showroom .scale { border-bottom-color: var(--show-ink); }
.scale label { display: grid; justify-items: center; gap: 0.5rem; padding-bottom: 0.75rem; cursor: pointer; flex: none; }
.scale label span { font-size: 0.8125rem; text-align: center; line-height: 1.3; font-variant-numeric: tabular-nums; color: var(--show-muted); }
.scale input:checked ~ span { font-weight: 700; color: var(--show-ink); }
.scale input:focus-visible ~ svg { outline: 2px solid var(--red); outline-offset: 4px; }

/* Barre du bas : composition en cours (même papier que la barre d'action du site) */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: rgba(252, 253, 254, 0.96); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateY(105%); transition: transform 0.35s var(--ease-out);
}
.dock.on { transform: none; }
.dock .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.dock i { width: 1.125rem; height: 2.75rem; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }
.dock .t { min-width: 0; flex: 1; line-height: 1.25; }
.dock .t b { display: block; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock .t span { display: block; font-size: 0.8125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 559.98px) { .dock .btn-line { display: none; } }
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }

/* Autres modèles */
.others { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.others a { display: flex; align-items: center; gap: 1.25rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); min-height: 4.5rem; }
.others i { width: 1.5rem; height: 3.5rem; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.others b { font-weight: 700; font-size: 1.1875rem; display: block; }
.others span { color: var(--muted); font-size: 0.875rem; }
.others .btn-tri { margin-left: auto; color: var(--red); fill: var(--red); }

/* Page finitions */
.finish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 1.75rem 1.25rem; }
.finish-grid .swatch { display: grid; justify-items: start; }
.finish-grid .swatch .c { width: 100%; height: auto; aspect-ratio: 1; }
.finish-grid .swatch .loop { inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); }
.finish-grid .swatch.round .loop { height: auto; aspect-ratio: 1; }

/* Guide puissance */
.calc { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .calc { grid-template-columns: 5fr 7fr; gap: 3.5rem; align-items: start; } }
.calc input[type="range"] { width: 100%; accent-color: var(--red); }
.need { font: 800 clamp(3rem, 2rem + 4vw, 5.25rem)/0.9 var(--font-sans); font-stretch: 112%; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.verdict { box-shadow: inset 0 0 0 1.5px var(--dash); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.25rem; background: #fff; }
.checks { display: grid; gap: 0.5rem; }
.check { display: flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; cursor: pointer; }
.check input { width: 1.125rem; height: 1.125rem; accent-color: var(--red); }

/* ==========================================================================
   PHOTOS DES CATALOGUES (remplace les dessins). Fondus et déplacements par
   opacité et transform seulement : la carte graphique s'en charge.
   ========================================================================== */
.photo { position: relative; overflow: hidden; background: var(--show); }
.photo img, .pin-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo img[data-layer] { opacity: 0; transition: opacity 0.5s var(--ease-out); }
.photo img[data-layer].on { opacity: 1; }
.photo img.contain { object-fit: contain; }
.stage .photo { aspect-ratio: 4 / 5; }
@media (min-width: 1024px) { .stage .photo { aspect-ratio: auto; height: min(74svh, 46rem); } }
@media (max-width: 1023.98px) { .stage .photo { aspect-ratio: auto; height: 38svh; } }
.fin-chip { position: absolute; left: 0.75rem; bottom: 0.75rem; display: flex; align-items: center; gap: 0.625rem; max-width: calc(100% - 1.5rem); background: rgba(252, 253, 254, 0.95); box-shadow: inset 0 0 0 1px var(--rule); padding: 0.5rem 0.75rem 0.5rem 0.5rem; }
.fin-chip i { width: 2.25rem; height: 2.25rem; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.fin-chip span { display: grid; line-height: 1.2; font-size: 0.75rem; color: var(--muted); }
.fin-chip b { font-size: 0.875rem; color: var(--ink); }
.fin-chip[hidden] { display: none; }
.gallery { display: flex; gap: 0.5rem; padding-top: 0.625rem; overflow-x: auto; scrollbar-width: none; }
.gallery[hidden] { display: none; }
.gallery .thumb { flex: none; width: 3.5rem; height: 4.25rem; padding: 0; border: 0; background: var(--show); cursor: pointer; box-shadow: inset 0 0 0 1px var(--rule); opacity: 0.7; transition: opacity 0.2s, box-shadow 0.2s; }
.gallery .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }
.gallery .thumb:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.fin-group { display: grid; gap: 0.625rem; }

/* Hero : toutes les photos sont posées, une seule est visible ; le cadre s'ouvre par clip-path */
.pin-media { inset: 0 !important; width: auto !important; height: auto !important; right: 0; top: 0; contain: paint; }
.js .pin-media:not(.ready) { visibility: hidden; }
.no-pin .pin-media { visibility: visible; }
.pin-slot { position: relative; height: min(72svh, 640px); background: var(--show); }
.pin-shot { opacity: 0; transform: scale(1.06); transition: opacity 0.7s var(--ease-out), transform 1.6s var(--ease-out); will-change: opacity, transform; }
.pin-shot.on { opacity: 1; transform: scale(1); }
.pin-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,17,15,0) 45%, rgba(21,17,15,.75)); pointer-events: none; }
.pin-cap, .pin-steps { z-index: 2; }
.pin-grid { display: grid; gap: 2rem; align-items: center; width: 100%; }
@media (min-width: 1024px) { .pin-grid { grid-template-columns: 7fr 5fr; gap: 3.5rem; } }
@media (max-width: 1023.98px) { .pin-slot { height: 40svh; } .pin-hero { height: auto; min-height: 100svh; } .pin-hero .wrap { padding-bottom: 1.5rem; } }
/* Sans animation (ou mouvement réduit), la photo reste dans son cadre */
.pin-hero:not(.is-live) .pin-media { display: none; }
.pin-hero:not(.is-live) .pin-slot .pin-static { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Cartes empilées : voile d'opacité au lieu d'un filtre */
.stack-card { overflow: hidden; }
.stack-card > .veil { position: absolute; inset: 0; background: #0b0f17; opacity: 0; pointer-events: none; z-index: 3; }
.stack-art { overflow: hidden; }
.stack-art img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; will-change: transform; }

/* Catalogue */
.cat-item .fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
@media (hover: hover) { .cat-item:hover .fig img { transform: scale(1.05); } }

/* Formats à l'échelle : de simples cadres, à la cote */
.scale .person { display: grid; justify-items: center; gap: 0.5rem; padding-bottom: 0.75rem; flex: none; color: var(--show-muted); font-size: 0.8125rem; }
.scale .box { display: block; box-shadow: inset 0 0 0 1.5px rgba(245,240,232,.45); background: rgba(245,240,232,.06); transition: box-shadow 0.2s, background 0.2s; }
.scale input:checked ~ .box { box-shadow: inset 0 0 0 2px var(--red); background: color-mix(in srgb, var(--rad, #b8bbbc) 55%, transparent); }
.muted { color: var(--muted); }

/* Défilement natif : apparitions déclenchées une fois à l'entrée à l'écran */
.reveal-words .w { transition: opacity 0.5s var(--ease-out); }
.reveal-words.lit .w { opacity: 1; }
.js .rise { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.js .rise.in { opacity: 1; transform: none; }
.pin-hero { height: auto; min-height: 0; padding-bottom: var(--section); }
.pin-hero .wrap { height: auto; }
.pin-slot .pin-shot { position: absolute; }
.pin-slot .pin-cap { opacity: 1; }
.pin-slot .pin-steps { opacity: 1; }
.pin-slot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,17,15,0) 50%, rgba(21,17,15,.72)); pointer-events: none; z-index: 1; }
.stack-art img { inset: 0; height: 100%; }
@media (prefers-reduced-motion: reduce) { .js .rise { opacity: 1; transform: none; } }
.pin-copy { padding-top: 0; }
.pin-slot { overflow: hidden; }
.pin-cap .pin-name { font: 800 clamp(1.5rem, 1rem + 2vw, 2.5rem)/1 var(--font-sans); font-stretch: 112%; letter-spacing: -0.03em; color: var(--show-ink); }
.pin-cap .num { font-size: clamp(2rem, 1.4rem + 2.5vw, 3.5rem); }
#heroChips .swatch .c { width: 3rem; height: 3rem; }

/* La scène montre la photo entière, sur fond de salle d'exposition */
.stage .photo img[data-layer] { object-fit: contain; }

/* ---------- Recomposition photo ---------- */
.gallery .thumb.compo { display: grid; place-items: center; background: var(--paper); color: var(--ink); font: 600 0.6875rem/1.15 var(--font-sans); text-align: center; }
.gallery .thumb.compo span { pointer-events: none; }
#stage.busy::after { content: ""; position: absolute; left: 50%; bottom: 1rem; width: 2.5rem; height: 2px; margin-left: -1.25rem; background: var(--red); animation: busy 0.9s ease-in-out infinite alternate; }
@keyframes busy { from { transform: scaleX(0.2); } to { transform: scaleX(1); } }

/* ---------- À votre échelle : silhouette 1,75 m ---------- */
.human-card { display: grid; grid-template-columns: minmax(9rem, 12rem) 1fr; align-items: end; gap: 1rem; padding: 0.75rem 1rem 0.875rem; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); border-radius: var(--radius); }
.human { height: 11rem; }
.human svg { display: block; overflow: visible; }
.human svg rect { transition: all 0.45s var(--ease-out); }
.human-card p { margin: 0; display: grid; gap: 0.25rem; font-size: 0.875rem; color: var(--ink-soft, #4B5563); }
.human-card p b { font: 400 1.5rem/1 var(--font-hand, Caveat, cursive); color: var(--red); }
@media (max-width: 30rem) { .human-card { grid-template-columns: 1fr; } .human { height: 9.5rem; } }

/* ---------- Catalogue simple ---------- */
.cat-page { display: grid; gap: 2rem; }
@media (min-width: 64rem) { .cat-page { grid-template-columns: 16rem 1fr; align-items: start; } .cat-filters { position: sticky; top: 6rem; } .cat-page > .note { grid-column: 2; } }
.cat-filters { display: grid; gap: 1.125rem; }
.cat-filters fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.cat-filters .opts.row { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.opt-t { border: 0; padding: 0; background: none; cursor: pointer; font: inherit; }
.opt-t .box { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.5rem 0.75rem; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--rule); background: var(--paper); font-size: 0.875rem; color: var(--ink); transition: box-shadow 0.18s, background 0.18s; }
.opt-t[aria-pressed="true"] .box, .cf-col[aria-pressed="true"] { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.opt-t.empty, .cf-col.empty { opacity: 0.38; }
.opt-t:focus-visible, .cf-col:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.cf-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 0.375rem; }
.cf-col { display: flex; align-items: center; gap: 0.5rem; border: 0; min-height: 2.5rem; padding: 0.375rem 0.5rem; border-radius: var(--radius); background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); cursor: pointer; font: inherit; font-size: 0.8125rem; color: var(--ink); text-align: left; }
.cf-col i { flex: none; width: 1.125rem; height: 1.125rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
@media (min-width: 40rem) and (max-width: 63.99rem) { .cf-colors { grid-template-columns: repeat(4, 1fr); } }
.cat-count { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; font-size: 0.9375rem; }
.cat-count b { font: 800 1.5rem/1 var(--font-display, var(--font-sans)); }
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); gap: 1.75rem 1.25rem; }
.cat-list[data-empty]::before { content: attr(data-empty); grid-column: 1 / -1; padding: 2rem 0; color: var(--muted, #6B7280); }
.cat-card[hidden] { display: none; }
.cat-card { opacity: 1; }
.js .cat-card { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease-out) var(--d, 0ms), transform 0.6s var(--ease-out) var(--d, 0ms); }
.js .cat-card.in { opacity: 1; transform: none; }
.cat-card.pop { animation: catPop 0.45s var(--ease-out) var(--d, 0ms) both; }
@keyframes catPop { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.cat-card a { display: grid; height: 100%; text-decoration: none; color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--rule); transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out); }
.cat-card .fig { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #EDEBE7; }
.cat-card .fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out), opacity 0.6s var(--ease-out); }
.cat-card .fig img.alt { opacity: 0; }
.cat-card .fig::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(17, 24, 39, 0.45)); opacity: 0; transition: opacity 0.4s; }
.cat-card .tag { position: absolute; top: 0.625rem; left: 0.625rem; z-index: 2; background: var(--paper); color: var(--red); font: 700 0.6875rem/1 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; padding: 0.375rem 0.5rem; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08); }
.cat-card .cnt { position: absolute; left: 0.625rem; bottom: 0.625rem; z-index: 2; background: rgba(17, 24, 39, 0.72); color: #fff; font-size: 0.75rem; padding: 0.3rem 0.5rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cat-card .go { position: absolute; right: 0.625rem; bottom: 0.625rem; z-index: 2; display: inline-flex; align-items: center; gap: 0.375rem; background: var(--yellow, #FFE500); color: var(--ink); font-weight: 700; font-size: 0.8125rem; padding: 0.45rem 0.7rem; transform: translateY(0.5rem); opacity: 0; transition: opacity 0.35s, transform 0.35s var(--ease-out); }
.cat-card .go .btn-tri { width: 0.5rem; height: 0.6rem; fill: currentColor; }
.cat-card .txt { display: grid; gap: 0.3rem; padding: 0.875rem 0.875rem 1rem; align-content: start; }
.cat-card .name { font: 800 1.25rem/1.1 var(--font-display, var(--font-sans)); letter-spacing: -0.01em; }
.cat-card .kind { font-size: 0.8125rem; color: var(--muted); }
.cat-card .spec { display: grid; gap: 0.125rem; font-size: 0.75rem; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 0.25rem; }

.cat-card .dots { display: flex; align-items: center; gap: 0.25rem; margin-top: 0.375rem; }
.cat-card .dots i { width: 0.875rem; height: 0.875rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); transition: transform 0.3s var(--ease-out); }
.cat-card .dots em { font-style: normal; font-size: 0.75rem; color: var(--muted); margin-left: 0.125rem; }
@media (hover: hover) {
  .cat-card a:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--ink), 0 18px 34px -18px rgba(17, 24, 39, 0.45); }
  .cat-card a:hover .fig img { transform: scale(1.05); }
  .cat-card a:hover .fig img.alt { opacity: 1; }
  .cat-card a:hover .fig::after { opacity: 1; }
  .cat-card a:hover .go { opacity: 1; transform: none; }
  .cat-card a:hover .dots i { transform: translateY(-2px); }
  .cat-card a:hover .dots i:nth-child(2) { transition-delay: 30ms; } .cat-card a:hover .dots i:nth-child(3) { transition-delay: 60ms; } .cat-card a:hover .dots i:nth-child(4) { transition-delay: 90ms; }
}
.cat-card a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
@media (hover: none) { .cat-card .go { opacity: 1; transform: none; } }
.cat-bar, .cat-sheet-head { display: none; }
@media (max-width: 63.99rem) {
  .cat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .cat-card .txt { padding: 0.625rem 0.625rem 0.75rem; }
  .cat-card .name { font-size: 1.0625rem; }
  .cat-card .spec { font-size: 0.6875rem; gap: 0.125rem 0.5rem; }
  .cat-card .go { padding: 0.35rem 0.5rem; font-size: 0.75rem; } .cat-card .cnt { display: none; }
  .cat-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: sticky; top: var(--header-h); z-index: 30; background: var(--paper); padding: 0.625rem 0; border-bottom: 1px solid var(--rule); }
  body.header-tucked .cat-bar { top: 0; }
  .cat-filters { position: fixed; inset: auto 0 0; z-index: 200; max-height: 82svh; overflow-y: auto; background: var(--paper); padding: 0 1rem calc(1rem + env(safe-area-inset-bottom)); box-shadow: 0 -20px 40px -10px rgba(17, 24, 39, 0.35); transform: translateY(105%); transition: transform 0.4s var(--ease-out); overscroll-behavior: contain; }
  .cat-filters.open { transform: none; }
  .cat-sheet-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--paper); padding: 0.875rem 0; border-bottom: 1px solid var(--rule); z-index: 1; }
  .cat-filters .cat-count { display: none; }
  body.cat-lock { overflow: hidden; }
}
@media (max-width: 22rem) { .cat-list { grid-template-columns: 1fr; } }

/* Fond flouté de la photo : plus de bandes noires sur les côtés */
.stage .photo::before { content: ""; position: absolute; inset: -8%; background: var(--bg, none) center / cover no-repeat; filter: blur(32px) saturate(1.05) brightness(0.92); transition: background-image 0.5s; }
.stage .photo img[data-layer] { z-index: 1; }
.stage .photo .fin-chip { z-index: 2; }

/* ---------- Téléphone : tout tient dans l'écran, la photo reste visible pendant le choix ---------- */
.cfg { grid-template-columns: minmax(0, 1fr); }
.cfg > * { min-width: 0; }
@media (min-width: 1024px) { .cfg { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
@media (max-width: 1023.98px) {
  .stage { padding-block: 0.375rem; box-shadow: 0 8px 18px -14px rgba(17, 24, 39, 0.5); }
  .stage .stage-print { padding: 0; box-shadow: none; background: none; }
  .stage .photo { height: 31svh; }
  .gallery { gap: 0.375rem; padding-top: 0.375rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery .thumb { width: 2.75rem; height: 2.75rem; }
  .gallery .thumb.compo { font-size: 0.5625rem; }
  .stage-cap { display: none; }
  .quest { padding: 1rem; }
  .quest .swatch .c { width: 2.75rem; height: 2.75rem; }
  .human-card { grid-template-columns: 7.5rem 1fr; padding: 0.5rem 0.75rem; gap: 0.75rem; }
  .human { height: 7.5rem; }
  .human-card p { font-size: 0.8125rem; }
  .human-card p b { font-size: 1.25rem; }
  .recap .btn { width: 100%; justify-content: center; min-height: 3rem; }
}
@media (max-width: 30rem) { .human-card { grid-template-columns: 7rem 1fr; } }

/* ---------- Cartes empilées : chaque carte tient dans l'écran, quelle que soit sa taille ---------- */
.stack-card:not(#bon) .stack-in.two { height: calc(100svh - var(--header-h) - 1.75rem - var(--i, 0) * 14px); min-height: 0; max-height: 52rem; }
.stack-card:not(#bon) .stack-art { min-height: 0; height: 100%; }
.stack-card.tall { position: relative; top: auto !important; }
@media (max-width: 1023.98px) {
  .stack-card:not(#bon) .stack-in.two { grid-template-rows: auto minmax(0, 1fr); gap: 1rem; padding: 1.25rem; height: calc(100svh - var(--header-h) - 1.25rem - var(--i, 0) * 10px - var(--bar-h, 0px)); }
  .stack-card:not(#bon) .stack-copy { gap: 0.625rem; }
  .stack-card:not(#bon) .stack-copy .devis { display: none; }
  .stack-card:not(#bon) .stack-copy .t-h2 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .stack-card:not(#bon) .stack-copy .t-lead { font-size: 0.9375rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .stack-card:not(#bon) .hero-actions { margin: 0; }
  .stack-card:not(#bon) .hero-actions .btn { min-height: 2.75rem; padding-block: 0.5rem; }
}
@media (max-width: 1023.98px) and (max-height: 640px) { .stack-card:not(#bon) .stack-copy .t-lead, .stack-card:not(#bon) .stack-copy .swatches { display: none; } }
@media (min-width: 1024px) and (max-height: 860px) { .stack-card:not(#bon) .stack-copy .devis { display: none; } }
@media (min-width: 1024px) and (max-height: 640px) { .stack-card:not(#bon) .stack-copy .t-lead { display: none; } }

@media (max-width: 1023.98px) { body:has(.ios-bottom-bar) { --bar-h: 4.75rem; } }
@media (min-width: 1024px) and (max-height: 860px) { .stack-card:not(#bon) .t-h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); } .stack-card:not(#bon) .stack-copy { gap: 0.75rem; } }

/* Terma : taille au choix et tableaux de références */
#fmtSel { width: 100%; min-height: 3rem; }
.ref-liste { display: grid; gap: 2rem; }
.ref-cadre { overflow-x: auto; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
.ref-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.ref-table caption { padding: 0.75rem; font-weight: 700; text-align: left; }
.ref-table th, .ref-table td { padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--rule-soft); text-align: left; white-space: nowrap; }
.ref-table thead th { border-bottom: 1.5px solid var(--ink); }
.ref-table tbody th { font-weight: 400; }
.ref-table code { font: inherit; font-weight: 600; }
.ref-table tr > :first-child { position: sticky; left: 0; background: var(--paper); }
/* La liste complète reste dans le HTML ; elle défile dans son cadre */
.ref-cadre { overflow-y: auto; max-height: 26rem; }
.ref-table thead th { position: sticky; top: 0; z-index: 1; background: var(--paper); }
.ref-table thead th:first-child { z-index: 2; }
.stack-card.on-yellow, .stack-card.on-yellow h2, .stack-card.on-yellow dt, .stack-card.on-yellow dd { color: var(--ink); opacity: 1; }
@media (max-width: 639.98px) { .catalogue-terma .catalogue { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 0.75rem; } }
.ref-notes { max-width: 44rem; margin: 1.5rem 0 0; padding-left: 1.125rem; color: var(--ink-2); font-size: 0.9375rem; }
.ref-notes li + li { margin-top: 0.375rem; }
[data-terma] .stage .photo { background: #F2F5F8; }
[data-terma] .stage .photo::before { display: none; }
.cat-search { display: grid; gap: 0.5rem; grid-column: 1 / -1; max-width: 32rem; }
.cat-search input { width: 100%; min-height: 2.75rem; padding: 0.5rem 0.75rem; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); }
.cat-search input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.taille-ligne { display: grid; gap: 0.375rem; }
.taille-ligne + .taille-ligne { margin-top: 0.75rem; }
#fmts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.875rem; }
.taille-ligne .opts.row { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.taille-ligne .opt .box { min-height: 2.5rem; padding: 0.5rem 0.75rem; white-space: nowrap; }
#plaques .swatches { row-gap: 1rem; }
#plaques .swatch small { margin-top: 1.375rem; }
/* Fiche Terma : le composeur arrive tout de suite */
.page-hero:has(+ #termaData) { padding-bottom: 0.5rem; }
.page-hero:has(+ #termaData) .hero-actions { margin-top: 0.75rem; }
.terma-mur { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; align-self: end; }
.terma-mur img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; background: #F2F5F8; display: block; }
@media (max-width: 639.98px) { .terma-mur { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.page-hero:has(+ #termaData) .t-h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
.page-hero:has(+ #termaData) .t-lead { margin-top: 0.5rem; }
.page-hero:has(+ #termaData) + script + section .cfg, .page-hero:has(+ #termaData) { padding-top: 0.75rem; }
@media (min-width: 640px) { .vitrine-terma { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .vitrine-terma { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; } }
.showroom .stack-card:not(.showroom), .showroom .stack-card:not(.showroom) h2, .showroom .stack-card:not(.showroom) h3, .showroom .stack-card:not(.showroom) b { color: var(--ink); }
.showroom .stack-card:not(.showroom) p, .showroom .stack-card:not(.showroom) .t-label, .showroom .stack-card:not(.showroom) .stack-num, .showroom .stack-card:not(.showroom) li span span { color: var(--muted); }
/* Panier du chauffage design */
.panier-dit { margin: 0; font-size: 0.875rem; color: var(--ink); min-height: 1.25rem; }
.panier-pill { position: fixed; right: 1rem; top: calc(var(--header-h) + 0.75rem); z-index: 60; padding: 0.625rem 0.875rem; font: 700 0.875rem/1 var(--font-sans); color: var(--ink); background: var(--yellow, #FFE600); border: 1.5px solid var(--ink); border-radius: var(--radius); cursor: pointer; box-shadow: 0 6px 18px rgba(17, 24, 39, 0.18); }
.panier-pill[hidden] { display: none; }
.panier-pill:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.panier-pill.pop { animation: panier-pop 0.35s var(--ease-out); }
@keyframes panier-pop { 40% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .panier-pill.pop { animation: none; } }
dialog.panier { margin: 0 0 0 auto; width: min(28rem, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 1.25rem; border: 0; background: var(--paper); color: var(--ink); overflow-y: auto; }
dialog.panier::backdrop { background: rgba(17, 24, 39, 0.45); }
dialog.panier[open] { display: flex; flex-direction: column; gap: 1rem; }
.panier-tete { display: flex; align-items: center; justify-content: space-between; }
.panier-tete h2 { margin: 0; }
.panier-x { width: 2.75rem; height: 2.75rem; font-size: 1.5rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--ink); }
.panier-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.panier-liste li { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 0.75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.panier-liste img, .panier-vide-img { width: 60px; height: 80px; object-fit: contain; background: #F2F5F8; display: block; }
.panier-txt { display: grid; gap: 0.25rem; min-width: 0; }
.panier-txt a { color: var(--ink); text-decoration: none; }
.panier-txt span { font-size: 0.8125rem; color: var(--muted); overflow-wrap: anywhere; }
.panier-qte { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem; }
.panier-qte button { min-width: 2.25rem; min-height: 2.25rem; padding: 0; text-align: center; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer; font: inherit; color: var(--ink); }
.panier-qte output { min-width: 1.5rem; text-align: center; font-weight: 700; }
.panier-qte .panier-retire { margin-left: auto; border: 0; background: none; text-decoration: underline; font-size: 0.8125rem; color: var(--muted); }
.panier-pied { display: grid; gap: 0.625rem; margin-top: auto; }
.panier-pied .btn { justify-content: center; }
.panier-pied .note { margin: 0; font-size: 0.75rem; color: var(--muted); }
.panier-rien { margin: 0; }
/* Demande de radiateur : une copie blanche et une salle de bain qui se réchauffe */
.bain-sheet { --sheet-rule: var(--rule); background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.bain-sheet .form-steps-track span.is-done { background: var(--red); }
.bain-sheet .devis-option { background: #F7F9FB; box-shadow: inset 0 0 0 1px var(--rule); }
.bain-sheet .devis-option:hover { background: #FFF3E6; }
.bain-sheet .devis-option:has(input:checked) { background: #FFE9D2; box-shadow: inset 0 0 0 1.5px var(--ink); }
.bain-sheet .field { background: #fff; }
.devis-panier li { display: flex; align-items: center; gap: 0.625rem; }
.devis-panier img { flex: none; object-fit: contain; background: #F2F5F8; }
.scene-bain { display: none; }
.scene-bain.is-ready {
  --px: 3px; --chaud: 0;
  display: block; position: relative; height: calc(44 * var(--px)); margin: 0.75rem 0 1rem; overflow: clip; pointer-events: none;
  background-color: color-mix(in srgb, #FBE3CC calc(var(--chaud) * 100%), #CFE3EF);
  background-image: linear-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px);
  background-size: calc(10 * var(--px)) calc(10 * var(--px));
  border-bottom: calc(3 * var(--px)) solid #8795A3;
  transition: background-color 1.2s ease;
}
@media (min-width: 640px) { .scene-bain.is-ready { --px: 4px; } }
.scene-bain svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bain-temp { position: absolute; top: 0.5rem; left: 0.625rem; padding: 0.125rem 0.5rem; font: 700 0.875rem/1.4 var(--font-sans); background: #fff; color: color-mix(in srgb, var(--red) calc(var(--chaud) * 100%), #2F6FD6); border: 1.5px solid var(--ink); border-radius: var(--radius); }
.bain-tub { position: absolute; bottom: 0; left: 1%; width: calc(26 * var(--px)) !important; height: calc(10.4 * var(--px)) !important; }
.bain-rad { position: absolute; bottom: calc(6 * var(--px)); left: calc(20% + 20 * var(--px)); width: calc(14 * var(--px)); height: calc(26 * var(--px)); }
.bain-rad[hidden], .bain-tech[hidden] { display: none; }
.bain-rad.is-on svg { filter: drop-shadow(0 0 calc(3 * var(--px)) rgba(255, 138, 40, 0.75)); }
.bain-vagues { position: absolute; inset: auto 0 100% 0; height: calc(9 * var(--px)); display: none; justify-content: space-around; }
.bain-rad.is-on .bain-vagues { display: flex; }
.bain-vagues i { width: 2px; height: 100%; border-radius: 2px; background: #F08A32; opacity: 0; animation: bain-vague 2.2s ease-in-out infinite; }
.bain-vagues i:nth-child(2) { animation-delay: 0.5s; }
.bain-vagues i:nth-child(3) { animation-delay: 1s; }
@keyframes bain-vague { 0% { transform: translateY(6px); opacity: 0; } 40% { opacity: 0.9; } 100% { transform: translateY(-8px); opacity: 0; } }
.bain-tech { position: absolute; bottom: 0; left: 20%; width: calc(20 * var(--px)); height: calc(25 * var(--px)); }
.bain-perso { position: absolute; bottom: 0; right: 3%; width: calc(20 * var(--px)); height: calc(30 * var(--px)); transform-origin: 50% 100%; }
.bain-perso[data-humeur="froid"] { animation: bain-grelotte 3s linear infinite; }
@keyframes bain-grelotte { 0%, 24%, 100% { transform: none; } 3%, 9%, 15%, 21% { transform: translateX(-1px); } 6%, 12%, 18% { transform: translateX(1px); } }
.bain-perso.is-content { animation: bain-saute 0.65s ease-in-out 3; }
@keyframes bain-saute { 40% { transform: translateY(-10px); } }
.bain-bulle { position: absolute; right: 20%; bottom: calc(100% - 1 * var(--px)); white-space: nowrap; z-index: 2; width: max-content; max-width: 13rem; margin: 0; padding: 0.25rem 0.5rem; background: #fff; border: 1.5px solid var(--ink); border-radius: var(--radius); font-size: 1.0625rem; line-height: 1.1; color: var(--ink); }
.bain-bulle[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .bain-perso[data-humeur="froid"], .bain-perso.is-content, .bain-vagues i { animation: none; opacity: 0.9; } .scene-bain.is-ready { transition: none; } }
/* La page de demande de radiateur n'a ni thermomètre de canicule ni neige de la clim */
.page-chauffage-devis .rail, .page-chauffage-devis .snow, [data-heat] { display: none !important; }
.page-chauffage-devis .panier-pill { top: auto; bottom: 1rem; }
.bain-sheet .form-step-count { margin: 0 0 0.5rem; }
