/* Hallmark · shape: Workbench · genre: editorial · theme: Editorial (deal 1/3, seed outil-gratuit-kit-72h-f80c·fce1734f·2026-12-06·r0) · job: try · draw: manual (tool page, app scope)
 * hero: the tool itself, head over the working panel · nav: wordmark and a language disclosure · footer: two-line colophon · imagery: the product (localized App Store screenshot of Surv) · signature: the household water total set in the condensed display face, recomputed as the household changes
 * axes: light/display-condensed/chromatic-green · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V3 · weakest: V, the list is long text; ruled rows, the spec-sheet panel and the big total carry it */
/* waive 49b: source links are official document titles; they wrap on a phone rather than being cut */
/* waive 26b: no control is ever disabled; the steppers clamp to their min and max instead */
/* answered F26: the FR h1 at 375px breaks after "à la", the last line reads "mesure du foyer"; text-wrap: balance is on */
/* waive 49: action labels wrap only under 360px, where each button takes the full row */
:root {
  color-scheme: light;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150);
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --color-paper: oklch(97% 0.007 86); --color-paper-2: oklch(94% 0.010 86); --color-paper-3: oklch(91% 0.012 84);
  --color-ink: oklch(16% 0.012 280); --color-ink-2: oklch(29% 0.011 280); --color-muted: oklch(48% 0.010 75);
  --color-rule: oklch(85% 0.009 85); --color-rule-2: oklch(64% 0.010 80);
  --color-accent: oklch(49% 0.130 152); --color-accent-ink: oklch(98% 0.005 88); --color-focus: oklch(52% 0.135 152);
  --font-display: "Bricolage Grotesque", ui-sans-serif, sans-serif; --font-body: "Source Serif 4", ui-serif, Georgia, serif;
  --radius-card: 0; --radius-pill: 0; --rule-hair: 1px; --rule-heavy: 4px; --shadow-card: none;
  --tracking-display: -0.012em; --display-weight: 800;
}

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


@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage.woff2") format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/sourceserif4.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root { --container: 1200px; --hit: 48px; --field: 52px; }

body { font-size: 1.125rem; color: var(--color-ink-2); }
h1, h2, h3 { color: var(--color-ink); font-variation-settings: "wdth" 75, "opsz" 96; }
h1 { line-height: 0.95; max-width: 22ch; font-size: var(--text-display-s); }
.label, .field label, .seg legend, .check, .btn, .btn-text, .lang summary, .progress, .when, .total-u, .r-name, .src-org, .faq summary, .status {
  font-family: var(--font-display); font-weight: 500; font-variation-settings: "opsz" 12; letter-spacing: 0;
}
.muted { color: var(--color-muted); }
a:hover { text-decoration-color: var(--color-accent); }

.skip { position: absolute; left: var(--space-md); top: -100px; z-index: var(--z-modal); padding: var(--space-sm) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* nav */
.nav { border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav-in { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.mark { font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 75, "opsz" 96; font-size: 1.625rem; color: var(--color-ink); text-decoration: none; letter-spacing: var(--tracking-display); }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; min-height: var(--hit); display: flex; align-items: center; padding-inline: var(--space-sm); font-size: var(--text-sm); color: var(--color-ink); border: var(--rule-hair) solid var(--color-muted); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: var(--color-paper-2); }
.lang ul { position: absolute; right: 0; top: calc(100% + var(--space-2xs)); z-index: var(--z-dropdown); margin: 0; padding: var(--space-2xs) 0; list-style: none; min-width: 16rem; background: var(--color-paper); border: var(--rule-hair) solid var(--color-ink); }
.lang li { display: flex; justify-content: space-between; gap: var(--space-md); padding: 0 var(--space-md); font-size: var(--text-sm); }
.lang li a { display: block; padding-block: var(--space-sm); color: var(--color-ink); text-decoration: none; }
.lang li a:hover, .lang li a[aria-current] { text-decoration: underline; text-decoration-color: var(--color-accent); }
.lang li .muted { padding-block: var(--space-sm); }

/* outil */
.tool { padding-top: var(--space-lg); }
.lead { margin-top: var(--space-md); color: var(--color-ink-2); }
.tool-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; margin-top: var(--space-lg); }
.panel { position: sticky; top: var(--space-md); background: var(--color-paper-2); border-top: var(--rule-heavy) solid var(--color-ink); padding: var(--space-lg); }
.panel-h { font-size: var(--text-title); }
.household { margin-top: var(--space-sm); display: grid; gap: var(--space-sm); }
.steppers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); }
.field label { display: block; font-size: var(--text-sm); color: var(--color-ink-2); margin-bottom: var(--space-2xs); }
.stepper { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; height: var(--field); }
@media (pointer: coarse) { .steppers { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: var(--space-md); } .stepper { grid-template-columns: var(--hit) minmax(0, 1fr) var(--hit); } }
.step { border: var(--rule-hair) solid var(--color-muted); background: var(--color-paper); color: var(--color-ink); font-family: var(--font-display); font-weight: 600; font-variation-settings: "opsz" 24; font-size: 1.625rem; line-height: 1; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out); }
.step:hover { background: var(--color-paper-3); }
.step:active { background: var(--color-rule); }
.stepper input { min-width: 0; border: var(--rule-hair) solid var(--color-muted); border-inline: 0; background: var(--color-paper); color: var(--color-ink); text-align: center; font-family: var(--font-display); font-weight: 800; font-variation-settings: "opsz" 24; font-size: var(--text-lg); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus-visible { outline-offset: -2px; }
.checks { display: grid; gap: 0; }
.check { display: flex; align-items: center; gap: var(--space-sm); min-height: 44px; font-size: var(--text-md); color: var(--color-ink); cursor: pointer; }
.check input, .items input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--color-ink); cursor: pointer; }
.seg { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg legend { padding: 0; font-size: var(--text-sm); margin-bottom: var(--space-2xs); }
.seg-row { display: flex; flex-wrap: wrap; }
.seg-row label { flex: 1 1 4.5rem; position: relative; }
.seg-row input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-row span { display: flex; align-items: center; justify-content: center; height: var(--hit); border: var(--rule-hair) solid var(--color-muted); margin-left: -1px; font-family: var(--font-display); font-weight: 500; font-variation-settings: "opsz" 12; font-size: var(--text-sm); color: var(--color-ink); background: var(--color-paper); transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.seg-row label:first-child span { margin-left: 0; }
.seg-row input:hover + span { background: var(--color-paper-3); }
.seg-row input:checked + span { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }
.seg-row input:focus-visible + span { outline: 2px solid var(--color-focus); outline-offset: 2px; position: relative; z-index: 1; }
.fixed { font-size: var(--text-sm); color: var(--color-muted); }

.total { margin-top: var(--space-md); padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule-2); }
.total-n { font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 75, "opsz" 96; font-size: var(--text-display-s); line-height: 0.92; color: var(--color-ink); letter-spacing: var(--tracking-display); font-variant-numeric: tabular-nums lining-nums; }
.total-line { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--space-sm); }
.total-u { font-size: var(--text-lg); color: var(--color-ink); }
.total-note { margin-top: var(--space-xs); font-size: var(--text-sm); line-height: 1.45; max-width: 44ch; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--hit); padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-pill); font-size: var(--text-md); line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-ink); color: var(--color-paper); }
.btn-primary:hover { background: var(--color-ink-2); }
.btn-ghost { background: transparent; color: var(--color-ink); }
.btn-ghost:hover { background: var(--color-paper-3); }
.btn-text { background: none; border: 0; padding: 0; min-height: 44px; color: var(--color-ink-2); font-size: var(--text-sm); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; cursor: pointer; }
.btn-text:hover { text-decoration-color: var(--color-accent); }
.status { min-height: 1lh; margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink); }

.list-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-sm); border-top: var(--rule-heavy) solid var(--color-ink); padding-top: var(--space-md); }
.list-head h2 { font-size: var(--text-2xl); }
.progress { font-size: var(--text-sm); color: var(--color-ink-2); font-variant-numeric: tabular-nums; }
.list-src { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.list-src a { color: var(--color-ink-2); }
.print-head, .print-foot { display: none; }
.cat { margin-top: var(--space-xl); }
.cat h3 { max-width: none; font-size: var(--text-title); padding-bottom: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.items { list-style: none; margin: 0; padding: 0; }
.items li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--space-sm); align-items: start; padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.items input { margin-top: 0.2em; }
.items label { cursor: pointer; color: var(--color-ink); line-height: 1.45; }
.items input:checked + label > span:first-child { color: var(--color-muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.when { display: inline-block; margin-left: var(--space-xs); padding: 0 var(--space-xs); border: var(--rule-hair) solid var(--color-rule-2); font-size: var(--text-xs); color: var(--color-ink-2); vertical-align: 0.1em; line-height: 1.6; }
.list-foot { margin-top: var(--space-md); }
.no-js .household, .no-js .actions, .no-js .list-foot { display: none; }

/* sources */
.sources, .faq { margin-top: var(--section-gap-s); border-top: var(--rule-heavy) solid var(--color-ink); padding-top: var(--space-lg); }
.sources h2, .faq h2, .surv h2 { font-size: var(--text-section); }
.sources-intro { margin-top: var(--space-md); max-width: 60ch; }
.src-list { margin: var(--space-xl) 0 0; }
.src { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: var(--gap-columns); padding: var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.src:first-child { border-top: var(--rule-hair) solid var(--color-rule-2); }
.src dt { font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 75, "opsz" 48; font-size: var(--text-title); line-height: 1.15; color: var(--color-ink); }
.src dd { margin: 0; font-size: var(--text-md); }
.src-org { color: var(--color-muted); font-size: var(--text-sm); }
.upkeep { margin-top: var(--space-xl); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); }
.upkeep h3 { font-size: var(--text-xl); }

/* Surv */
.surv { margin-top: var(--section-gap-s); background: var(--color-paper-2); border-top: var(--rule-hair) solid var(--color-rule-2); border-bottom: var(--rule-hair) solid var(--color-rule-2); padding-block: var(--space-2xl); }
.surv-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: center; }
.surv-text p { margin-top: var(--space-md); max-width: 56ch; }
.surv-text .price { color: var(--color-muted); font-size: var(--text-md); }
.surv-text .btn { margin-top: var(--space-lg); }
.shot { margin: 0; justify-self: center; width: min(100%, 300px); }
.shot img { width: 100%; outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }

/* FAQ */
.faq details { border-bottom: var(--rule-hair) solid var(--color-rule); max-width: 52rem; }
.faq details:first-of-type { margin-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--space-md); align-items: center; min-height: 56px; padding-block: var(--space-sm); font-size: var(--text-lg); color: var(--color-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: var(--text-xl); line-height: 1; transition: transform var(--dur-short) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--color-ink-2); }
.faq details p { padding-bottom: var(--space-md); }

/* pied */
.foot { margin-top: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-xl); font-size: var(--text-sm); }
.foot-in p + p { margin-top: var(--space-xs); }

/* racine */
.root { padding-block: var(--space-2xl) var(--space-3xl); }
.root-list { list-style: none; margin: var(--space-xl) 0 0; padding: 0; border-top: var(--rule-heavy) solid var(--color-ink); max-width: 60rem; }
.root-list a { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: var(--space-md); align-items: baseline; padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); text-decoration: none; }
.r-name { font-size: var(--text-sm); color: var(--color-ink-2); }
.r-title { font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 75, "opsz" 48; font-size: var(--text-title); color: var(--color-ink); line-height: 1.15; transition: color var(--dur-micro) var(--ease-out); }
.root-list a:hover .r-title { color: var(--color-accent); }

@media (max-width: 60rem) {
  .tool-grid, .surv-in, .upkeep { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .panel { position: static; }
  .src { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .lang summary, .check, .faq summary { font-size: var(--text-md); }
}
@media (max-width: 40rem) {
  .root-list a { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .actions .btn { flex: 1 1 100%; }
  .panel { padding: var(--space-md); margin-inline: calc(var(--gutter) * -1); }
}

@media print {
  @page { margin: 12mm; }
  html, body { background: none; color: var(--color-ink); font-size: 10.5pt; }
  .nav, .skip, .intro, .panel, .sources, .surv, .faq, .foot, .list-foot, .list-src a, .progress, .list-head { display: none !important; }
  .tool { padding: 0; }
  .container { padding: 0; max-width: none; }
  .tool-grid { display: block; margin: 0; }
  .print-head { display: block; font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 75, "opsz" 96; font-size: 20pt; color: var(--color-ink); line-height: 1.1; padding-bottom: 2mm; border-bottom: 2pt solid var(--color-ink); }
  .list-src { margin: 2mm 0 0; font-size: 8.5pt; }
  .list { column-count: 2; column-gap: 8mm; }
  .print-head, .list-src { column-span: all; }
  .cat { margin-top: 4mm; break-inside: avoid; }
  .cat h3 { font-size: 11pt; padding-bottom: 1mm; }
  .items li { padding: 1.2mm 0; grid-template-columns: 4mm minmax(0, 1fr); gap: 2mm; }
  .items input { width: 3.6mm; height: 3.6mm; }
  .when { font-size: 7.5pt; }
  .print-foot { display: flex; align-items: center; gap: 5mm; margin-top: 6mm; padding-top: 3mm; border-top: 1pt solid var(--color-ink); font-family: var(--font-display); font-size: 9pt; color: var(--color-ink); break-inside: avoid; }
  .qr svg { width: 20mm; height: 20mm; }
}
