/* Plomberie Cour et Colonne — site styles.
   Every colour, font and radius is a custom property on :root (theme.css holds the token contract, generated by kit/ui/theme.mjs).
   Finish "Net": flat fills, 1px hairlines, 4px corners, no shadow anywhere. */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Merriweather"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/merriweather/merriweather-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Merriweather"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/merriweather/merriweather-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Merriweather"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/merriweather/merriweather-latin-700-normal.woff2") format("woff2"); }
/* DM Mono is not in the studio's font table: DM Sans 500, the nearest listed family (same foundry), carries the labels. See HANDOFF.md. */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/dm-sans/dm-sans-latin-500-normal.woff2") format("woff2"); }

/* ---------- Tokens: the client's palette under the names of DESIGN.md, mapped onto the contract ---------- */
:root {
  --radius: 4px;
  --font-label: "DM Sans", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --stage: #0E2A3A;
  --on-stage: #F8FAFC;
  --material: #2B9BB8;
  --bg: var(--background);
  --surface: var(--card);
  --text: var(--foreground);
  --muted-text: var(--muted-foreground);
  --accent-line: var(--primary);
  --on-accent: var(--primary-foreground);
  --accent-2: var(--brand-accent);
  --tint: var(--border);
  /* derived tints, always mixes of two tokens */
  --line-soft: color-mix(in oklab, var(--primary) 70%, var(--background));
  --line-faint: color-mix(in oklab, var(--primary) 30%, var(--background));
  --tint-soft: color-mix(in oklab, var(--border) 45%, var(--background));
  --stage-line: color-mix(in oklab, var(--on-stage) 22%, var(--stage));
  --btn-hover: color-mix(in oklab, var(--primary), var(--foreground) 12%);
  --btn-active: color-mix(in oklab, var(--primary), var(--foreground) 20%);
  /* motion */
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1); /* power2.out */
  --ease-in-out: cubic-bezier(0.455, 0.03, 0.515, 0.955); /* power2.inOut */
  --dur-1: 300ms;
  --dur-2: 600ms;
  --dur-3: 900ms;
  /* grid: the riser sits in column 2, content starts in column 3 */
  --riser-x: 14.444%;
  --content-left: calc(14.444% + 78px);
  --content-right: clamp(1.25rem, 4.4vw, 4rem);
  --header-h: 64px;
  --measure: 62ch;
  --h-size: clamp(2.4rem, 5.6vw, 5.2rem);
  --h2-size: clamp(2rem, 3.9vw, 3.6rem);
  --label-size: 12px;
}
@media (max-width: 760px) {
  :root {
    --riser-x: 16px;
    --content-left: 44px;
    --content-right: 18px;
    --header-h: 56px;
    --label-size: 12px;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-feature-settings: "lnum" 1, "pnum" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: var(--heading-weight); color: var(--foreground); text-wrap: balance; }
p { text-wrap: pretty; }
.tnum { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--card); color: var(--primary); padding: 10px 14px;
  border: 1px solid var(--primary); border-radius: var(--radius);
  font-family: var(--font-heading); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus { outline: none; }
::selection { background: var(--border); color: var(--foreground); }

/* the registry wrapper: our sections handle their own inline padding so the riser stays locked in column 2 */
main > .cms-b { padding-inline: 0; position: relative; }
main > .cms-b > .cms-in { max-width: none; margin: 0 var(--content-right) 0 var(--content-left); }

/* ---------- Kit components, restyled through the tokens (Net finish) ---------- */
.btn {
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  border-radius: var(--radius);
  box-shadow: none !important;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.005em;
  position: relative;
  text-decoration: none;
  isolation: isolate;
}
.btn[data-variant="primary"] { background-color: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.btn[data-variant="primary"]:hover { background-color: var(--btn-hover); }
.btn[data-variant="primary"]:active { background-color: var(--btn-active); translate: none; }
.btn[data-variant="outline"] { background-color: var(--card); color: var(--foreground); border-color: var(--border); }
.btn[data-variant="outline"]:hover { background-color: var(--card); border-color: var(--primary); color: var(--foreground); }
.btn[data-variant="outline"]:active { background-color: color-mix(in oklab, var(--card), var(--background) 20%); }
.btn:focus-visible { box-shadow: none; border-color: var(--foreground); }
.btn[data-size="lg"], .hero-call, .end-call, .contact-btn { height: auto; min-height: 52px; padding: 14px 22px; font-size: 1.0625rem; }

/* one language for hover, tap and focus: border turns accent, a 2px underline grows from the left, a 6px water drop appears at the left edge */
.btn::after, .hv::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left center;
  transition: transform var(--dur-1) var(--ease-out);
  pointer-events: none;
}
.hv::after { left: 0; right: 0; bottom: -5px; background: var(--primary); }
.btn::before, .hv::before, .hv-row::before {
  content: ""; position: absolute; width: 6px; height: 6px; left: -12px; top: 50%;
  margin-top: -3px; background: var(--material);
  border-radius: 50% 0 50% 50%; transform: rotate(-45deg) scale(0.2); opacity: 0;
  transition: transform var(--dur-1) var(--ease-out), opacity var(--dur-1) var(--ease-out);
  pointer-events: none;
}
.btn:hover::after, .btn:focus-visible::after, .hv:hover::after, .hv:focus-visible::after, .hv.is-near::after { transform: scaleX(1); }
.btn:hover::before, .btn:focus-visible::before, .hv:hover::before, .hv:focus-visible::before, .hv.is-near::before,
.hv-row:hover::before, .hv-row:focus-within::before, .hv-row.is-near::before { opacity: 1; transform: rotate(-45deg) scale(1); }
.hv { position: relative; text-decoration: none; }

.hv-row { position: relative; transition: border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out); }
.hv-row::before { left: -4px; top: 1.75rem; margin-top: 0; }
.hv-row h3, .hv-row summary { background: linear-gradient(var(--primary), var(--primary)) left bottom / 0% 2px no-repeat; transition: background-size var(--dur-1) var(--ease-out); }
.hv-row:hover, .hv-row:focus-within, .hv-row.is-near { border-color: var(--primary); }
.hv-row:hover h3, .hv-row:focus-within h3, .hv-row.is-near h3,
.hv-row:hover summary, .hv-row:focus-within summary, .hv-row.is-near summary { background-size: 100% 2px; }
.hv-row h3 { display: inline; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding-bottom: 3px; }

/* fields: border colour only, no glow */
.input, .input[type="checkbox"] { box-shadow: none !important; border-radius: var(--radius); border-color: var(--input); }
.input:focus-visible, .input[type="checkbox"]:focus-visible { border-color: var(--primary); }
.input[type="checkbox"]:not([role="switch"]):checked { background-color: var(--brand-accent); border-color: var(--brand-accent); color: var(--on-brand-accent); }
.input[type="checkbox"]:not([role="switch"]) { width: 20px; height: 20px; border-width: 1px; background-color: var(--card); cursor: pointer; }
.label { font-family: var(--font-body); font-weight: 400; font-size: 1rem; color: var(--foreground); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: var(--card); border-bottom: 1px solid var(--border);
  padding: 0 var(--content-right) 0 clamp(calc(var(--space-4) * 1.25), 3vw, var(--space-7));
  display: flex; align-items: center;
}
.site-header > .cms-in { width: 100%; max-width: none; flex-wrap: nowrap; }
.site-header .cms-brand {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em;
  color: var(--foreground); white-space: nowrap;
}
.site-header nav { gap: var(--space-6); margin-left: auto; margin-right: var(--space-5); flex-wrap: nowrap; }
.site-header nav a {
  font-family: var(--font-label); font-weight: 500; font-size: var(--label-size); letter-spacing: 0; text-transform: none;
  color: var(--foreground); padding: 6px 0;
}
.call-btn { height: 40px; padding: 0 var(--space-4); gap: var(--space-2); font-size: 0.95rem; }
.call-btn.is-live { animation: call-arrive var(--dur-2) var(--ease-out) both; }
@media (max-width: 960px) { .site-header nav { display: none; } .site-header .cms-in { justify-content: space-between; } }
@media (max-width: 760px) {
  .site-header { padding-left: var(--space-4); }
  .site-header .cms-brand { font-size: 0.92rem; }
  .call-num { display: none; }
  .call-btn { height: 38px; padding: 0 14px; }
}
@media (max-width: 360px) { .site-header .cms-brand { font-size: 0.82rem; } }

/* ---------- Level marks: open triangle datum on a 1px accent rule, the level in label type ---------- */
.level {
  position: relative; display: flex; align-items: center; gap: 10px; margin: 0 0 1.4rem;
  font-family: var(--font-label); font-weight: 500; font-size: var(--label-size); line-height: 1.2;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}
.level::before {
  content: ""; position: absolute; top: 50%; height: 1px; background: var(--primary);
  right: calc(100% + 0px); width: calc(var(--content-left) - var(--riser-x) - 6px);
  transform-origin: left center;
}
.datum {
  flex: none; width: 13px; height: 11px; background: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 11'%3E%3Cpath d='M1 1h11L6.5 10z' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 11'%3E%3Cpath d='M1 1h11L6.5 10z' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.level-txt { display: inline-block; padding-top: 1px; }

/* ---------- The riser that runs through every section, locked in column 2 ---------- */
.riser {
  position: absolute; top: 0; bottom: 0; left: var(--riser-x); width: 12px; margin-left: -6px; z-index: 1;
  border-left: 1px solid var(--primary); border-right: 1px solid var(--primary); background: var(--background);
  pointer-events: none;
}
.riser-water {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--material);
  transform-origin: top center; transform: scaleY(var(--fill, 1));
}
.faq-sec .riser { background: var(--border); }
.contact-sec .riser { background: var(--stage); border-color: var(--on-stage); }

/* section edges: floor slabs seen in section, two 1px accent lines 10px apart with 45° hatching */
main > section + section::before {
  content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 12px; z-index: 0;
  border-top: 1px solid var(--primary); border-bottom: 1px solid var(--primary);
  background: repeating-linear-gradient(45deg, var(--border) 0 1px, transparent 1px 7px), var(--background);
}
@media (max-width: 760px) {
  main > section + section::before { height: 8px; top: -4px; border-bottom: 0; }
}

/* ---------- Section rhythm ---------- */
main > .cms-b:not(.descent) { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.cms-b .cms-h, .faq-sec h2 { font-size: var(--h2-size); line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 1.75rem; max-width: 20ch; text-align: left; }
.cms-b h3 { font-size: 1.22rem; line-height: 1.3; letter-spacing: -0.005em; }
.cms-b p { max-width: var(--measure); }

/* ---------- Les étages ---------- */
.floors-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-5) var(--space-7); margin-bottom: 3.5rem; max-width: 74rem; }
.floors-intro p:first-child { font-size: 1.2rem; line-height: 1.6; }
.floors-intro p:last-child { color: var(--muted-foreground); padding-top: 0.3rem; }
.floors-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr); gap: var(--space-7); align-items: start; }
.floor-list { grid-template-columns: 1fr; gap: 0; counter-reset: fl; }
.floor-row {
  display: grid; grid-template-columns: 4.5rem 1fr; column-gap: 1.25rem; align-items: baseline;
  border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: var(--space-5) var(--space-4) 1.6rem var(--space-2); background: transparent;
}
.floor-row:last-child { border-bottom: 1px solid var(--border); }
.floor-row .fl-lvl {
  grid-row: span 2; font-family: var(--font-heading); font-weight: 700; font-size: 2.1rem; line-height: 1;
  color: var(--primary); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.03em;
}
.floor-row h3 { margin: 0 0 0.35rem; }
.floor-row p { grid-column: 2; margin-top: 0.45rem; color: var(--foreground); }
.floor-row.is-lit { background: var(--card); border-color: var(--primary); }
.floor-row.is-lit + .floor-row { border-top-color: var(--primary); }
.floor-row.is-lit .fl-lvl { color: var(--foreground); }
.floor-row.is-lit::after {
  content: ""; position: absolute; left: calc(-1 * (var(--content-left) - var(--riser-x)) + 6px); width: calc(var(--content-left) - var(--riser-x) - 10px);
  top: 2.2rem; height: 2px; background: var(--material); transform-origin: left center;
  animation: branch-draw var(--dur-2) var(--ease-out) both;
}
.chooser {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem var(--space-5) var(--space-5);
  box-shadow: none;
}
.chooser-title { font-size: 1.45rem; margin: 0 0 0.4rem; }
.chooser-help { color: var(--muted-foreground); font-size: 0.98rem; margin-bottom: 1.25rem; }
.chooser-tabs { gap: var(--space-4); }
.chooser-tabs > [role="tablist"] {
  justify-content: flex-start;
  display: flex; flex-wrap: wrap; gap: 6px; height: auto; width: 100%; padding: 0; background: transparent; border-radius: 0;
}
.chooser-tabs > [role="tablist"] > [role="tab"] {
  flex: 0 1 auto; height: auto; min-height: 40px; padding: var(--space-2) var(--space-3); border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); color: var(--foreground); font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem;
  box-shadow: none; position: relative; transition: border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out);
}
.chooser-tabs > [role="tablist"] > [role="tab"]::after { display: none; }
.chooser-tabs > [role="tablist"] > [role="tab"]:hover,
.chooser-tabs > [role="tablist"] > [role="tab"]:focus-visible { border-color: var(--primary); box-shadow: none; }
.chooser-tabs > [role="tablist"] > [role="tab"][aria-selected="true"] {
  background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); box-shadow: none;
}
.chooser-tabs [role="tabpanel"] {
  border-left: 2px solid var(--material); padding: var(--space-1) 0 var(--space-1) var(--space-4); margin-top: 0.4rem; min-height: 7.5rem;
}
.chooser-tabs [role="tabpanel"]:not([hidden]) { animation: say-in var(--dur-2) var(--ease-out) both; }
.say-lbl { font-family: var(--font-label); font-weight: 500; font-size: var(--label-size); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 0.35rem; }
.say { font-style: italic; font-size: 1.08rem; line-height: 1.6; }
.chooser-call { margin-top: 1.25rem; width: 100%; min-height: 48px; }

/* ---------- Ce qui distingue ---------- */
.diff-sec .cms-h { max-width: 16ch; }
.diff-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--primary); }
.diff-item {
  border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: var(--space-6) var(--space-6) 2.25rem 0; position: relative; background: transparent;
}
.diff-item:nth-child(1) { grid-column: 1 / span 7; border-right: 1px solid var(--border); }
.diff-item:nth-child(2) { grid-column: 8 / span 5; padding-left: var(--space-6); }
.diff-item:nth-child(3) { grid-column: 1 / span 5; border-right: 1px solid var(--border); }
.diff-item:nth-child(4) { grid-column: 6 / span 7; padding-left: var(--space-6); }
.diff-n {
  display: block; font-family: var(--font-label); font-weight: 500; font-size: var(--label-size); letter-spacing: 0.12em; color: var(--muted-foreground);
  margin-bottom: 1.1rem;
}
.diff-n::after { content: ""; display: inline-block; width: 36px; height: 1px; background: var(--primary); vertical-align: middle; margin-left: 10px; }
.diff-item h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.2; }
.diff-item p { margin-top: 0.8rem; }
.diff-item:nth-child(1) h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.diff-item.hv-row:hover, .diff-item.hv-row:focus-within, .diff-item.hv-row.is-near { border-bottom-color: var(--primary); }
.diff-item::before { left: -14px; top: 2.3rem; }

/* ---------- La visite ---------- */
.visit-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.85fr); gap: var(--space-7) var(--space-8); align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 18px; bottom: 30px; width: 1px; background: var(--border); }
.timeline::after {
  content: ""; position: absolute; left: 12px; top: 18px; bottom: 30px; width: 3px; background: var(--material);
  transform-origin: top center; transform: scaleY(var(--steps, 0)); transition: transform var(--dur-2) var(--ease-out);
}
.step {
  display: grid; grid-template-columns: 28px 2.6rem 1fr; gap: 0 var(--space-4); align-items: start;
  padding: 1.1rem var(--space-4) 1.4rem 0; border-bottom: 1px solid var(--border);
}
.step::before { left: 34px; top: 1.6rem; }
.step-tick { position: relative; z-index: 1; padding-top: var(--space-1); display: block; cursor: pointer; }
.step-tick .input { background: var(--card); }
.step-n { font-family: var(--font-heading); font-weight: 700; font-size: 1.7rem; line-height: 1; color: var(--primary); padding-top: 2px; }
.step h3 { margin: 0; }
.step p { margin-top: var(--space-2); }
.step.is-done .step-n { color: var(--brand-accent); }
.step.is-done .step-n { color: var(--foreground); }
.prep {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem var(--space-5) var(--space-5); box-shadow: none;
}
.prep h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.prep-help { color: var(--muted-foreground); font-size: 0.98rem; margin-bottom: 1.1rem; }
.prep-list { display: grid; gap: 0; }
.prep-item {
  display: grid; grid-template-columns: 20px 1fr; gap: var(--space-3); align-items: start; padding: var(--space-3) 0; border-top: 1px solid var(--border);
  line-height: 1.5; cursor: pointer;
}
.prep-item .input { margin-top: 2px; }
.prep-item:has(:checked) span { text-decoration: line-through; text-decoration-color: var(--brand-accent); text-decoration-thickness: 2px; }
.prep-count { font-family: var(--font-label); font-weight: 500; font-size: var(--label-size); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-foreground); margin: 0.9rem 0 var(--space-4); border-top: 1px solid var(--border); padding-top: 0.9rem; }
.prep-call { width: 100%; min-height: 48px; }

/* ---------- Les quartiers ---------- */
.zone-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; gap: var(--space-7) var(--space-8); }
.zone-copy p { margin-bottom: var(--space-4); }
.zone-check { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.zone-q { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; margin-bottom: var(--space-4) !important; }
.zone-btns { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.zone-btn { min-width: 64px; height: 44px; font-variant-numeric: tabular-nums; }
.zone-btn[aria-pressed="true"] { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }
.zone-btn[aria-pressed="true"]:hover { background: var(--btn-hover); color: var(--primary-foreground); }
.zone-answer { margin-top: var(--space-4); min-height: 3.4em; padding-left: var(--space-4); border-left: 2px solid var(--border); transition: border-color var(--dur-1) var(--ease-out); }
.zone-answer.is-yes { border-left-color: var(--brand-accent); }
.zone-answer.is-swap { animation: say-in var(--dur-2) var(--ease-out) both; }
.zone-map { margin: 0; position: relative; transform: rotate(-1.2deg); }
.zone-map svg { width: 100%; height: auto; overflow: visible; }
.map-seine { fill: none; stroke: var(--material); stroke-width: 10; stroke-linecap: round; opacity: 0.55; }
.map-seine-edge { fill: none; stroke: var(--primary); stroke-width: 1; }
.map-seine-lbl, .map-note, .arr-sub { font-family: var(--font-label); font-weight: 500; font-size: 11px; letter-spacing: 0.12em; fill: var(--muted-foreground); }
.arr path { fill: var(--card); stroke: var(--primary); stroke-width: 1; stroke-linejoin: round; transition: fill var(--dur-2) var(--ease-out), stroke-width var(--dur-1) var(--ease-out); }
.arr text { font-family: var(--font-heading); font-weight: 700; font-size: 26px; fill: var(--primary); font-variant-numeric: tabular-nums; }
.arr .arr-sub { font-size: 10px; }
.arr[data-arr="15"] path { fill: var(--tint-soft); }
.arr.is-on path { fill: var(--border); stroke-width: 2.5; }
.arr.is-on text { fill: var(--foreground); }

/* ---------- Questions simples ---------- */
.faq-sec { background: var(--border); }
.faq-sec .level { color: var(--foreground); }
.faq-sec .cms-in { max-width: none; }
.faq-sec h2 { margin-bottom: 2.25rem; }
.faq-list { max-width: 58rem; display: grid; gap: 10px; }
.faq-list details {
  background: var(--card); border: 1px solid var(--card); border-radius: var(--radius); padding: 0; margin: 0;
}
.faq-list summary {
  padding: 1.15rem 3.25rem 1.15rem 1.25rem; font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; line-height: 1.4;
  color: var(--foreground); position: relative; display: block; background-position: 1.25rem calc(100% - 0.85rem); background-size: 0% 2px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 1.25rem; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--primary), var(--primary)) center / 14px 2px no-repeat, linear-gradient(var(--primary), var(--primary)) center / 2px 14px no-repeat;
  transition: transform var(--dur-1) var(--ease-out);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details > section { padding: 0 1.25rem 1.3rem; }
.faq-list details > section p { margin: 0; }
.faq-list details[open] > section { animation: say-in var(--dur-2) var(--ease-out) both; }
.faq-list details.hv-row::before { left: -12px; top: 1.6rem; }
.faq-list .hv-row:hover, .faq-list .hv-row:focus-within, .faq-list .hv-row.is-near { border-color: var(--primary); }
.faq-list .hv-row:hover summary, .faq-list .hv-row.is-near summary, .faq-list .hv-row:focus-within summary { background-size: calc(100% - 4.5rem) 2px; }

/* ---------- Le contact, in the cellar ---------- */
.contact-sec { background: var(--stage); color: var(--on-stage); }
.contact-sec h2, .contact-sec h3 { color: var(--on-stage); }
.contact-sec .level { color: var(--on-stage); }
.contact-sec .level::before, .contact-sec .datum { background: var(--on-stage); }
.contact-sec .cms-in { text-align: left; }
.contact-lead { font-size: 1.15rem; margin-bottom: 2.25rem; }
.contact-call { position: relative; margin-bottom: var(--space-7); }
.contact-call::before {
  /* the thread curls out of the riser into the button */
  content: ""; position: absolute; top: 50%; right: 100%; width: calc(var(--content-left) - var(--riser-x) - 6px); height: 2px; margin-top: -1px;
  background: var(--material);
}
.contact-btn { border: 1px solid var(--material) !important; min-height: 60px; font-size: 1.2rem; padding: var(--space-4) 28px; }
.contact-grid { max-width: 64rem; gap: 0; }
.contact-grid .cms-card { border: 0; border-top: 1px solid var(--stage-line); border-radius: 0; padding: 1.25rem var(--space-5) 1.25rem 0; }
.contact-grid h3 { font-family: var(--font-label); font-weight: 500; font-size: var(--label-size); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.6rem; display: block; background: none; }
.contact-grid p { font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-grid a { color: var(--on-stage); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.contact-grid a:hover, .contact-grid a:focus-visible { text-decoration-thickness: 2px; text-decoration-color: var(--material); }
.phone-link { font-family: var(--font-heading); font-weight: 600; font-size: 1.5rem; letter-spacing: 0; }
.contact-grid .hv-row:hover, .contact-grid .hv-row:focus-within, .contact-grid .hv-row.is-near { border-top-color: var(--on-stage); }
.riser-end { bottom: auto; height: var(--riser-end, 50%); }

/* ---------- Footer ---------- */
.site-footer { background: var(--stage); color: var(--on-stage); border-top: 1px solid var(--stage-line); padding: var(--space-6) var(--content-right) 2.25rem var(--content-left); }
.site-footer .cms-in { max-width: none; margin: 0; }
.site-footer .cms-brand { font-family: var(--font-heading); font-weight: 700; color: var(--on-stage); }
.site-footer nav { gap: 1.75rem; }
.site-footer nav a { color: var(--on-stage); font-family: var(--font-label); font-weight: 500; font-size: var(--label-size); letter-spacing: 0; text-transform: none; }
.site-footer .hv::after { background: var(--on-stage); }
.foot-line { margin-top: 1.25rem; padding-top: var(--space-4); border-top-color: var(--stage-line); }
.site-footer .cms-small { color: var(--on-stage); font-size: 0.9rem; }

/* sticky white call bar on phones */
.callbar { display: none; }
@media (max-width: 760px) {
  .site-footer .callbar {
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; display: flex; align-items: center; gap: 10px;
    min-height: 54px; padding: 0 18px; background: var(--card); color: var(--primary); border: 1px solid var(--primary); border-radius: var(--radius);
    font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; text-decoration: none;
    transform: translateY(0); transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-1) var(--ease-out);
  }
  .site-footer .callbar:hover { background: color-mix(in oklab, var(--card), var(--foreground) 8%); }
  .site-footer .callbar:active { background: color-mix(in oklab, var(--card), var(--foreground) 14%); }
  .callbar-num { margin-left: auto; letter-spacing: 0.06em; color: var(--foreground); }
  .js .callbar.is-hidden { transform: translateY(140%); }
  body { padding-bottom: 76px; }
  .site-footer { padding-bottom: 96px; }
}

/* ---------- Tablet and phone compositions ---------- */
@media (max-width: 1100px) {
  .floors-layout, .visit-layout { grid-template-columns: 1fr; }
  .chooser, .prep { position: relative; top: 0; max-width: 40rem; }
  .zone-split { grid-template-columns: 1fr; }
  .zone-map { max-width: 34rem; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .floors-intro { grid-template-columns: 1fr; margin-bottom: var(--space-6); }
  .floors-intro p:first-child { font-size: 1.08rem; }
  .floor-row { grid-template-columns: 3rem 1fr; padding: 1.2rem var(--space-1) 1.3rem 0; column-gap: var(--space-3); }
  .floor-row .fl-lvl { font-size: 1.5rem; }
  .floor-row p { grid-column: 1 / -1; }
  .chooser, .prep { padding: 1.4rem 1.1rem 1.2rem; }
  .diff-grid { grid-template-columns: 1fr; }
  .diff-item, .diff-item:nth-child(n) { grid-column: 1; border-right: 0; padding: 1.6rem 0 1.8rem; }
  .step { grid-template-columns: 24px 2rem 1fr; gap: 0 var(--space-3); padding-right: 0; }
  .step-n { font-size: 1.35rem; }
  .timeline::before { left: 11px; } .timeline::after { left: 10px; }
  .zone-map { transform: rotate(-1deg); margin-top: var(--space-4); }
  .contact-call::before { width: calc(var(--content-left) - var(--riser-x) - 6px); }
  .contact-btn { width: 100%; }
  .phone-link { font-size: 1.3rem; }
  .site-footer .cms-flex { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .site-footer nav { gap: 1.1rem 1.4rem; flex-wrap: wrap; }
  .cms-b .cms-h, .faq-sec h2 { max-width: none; }
}

/* ---------- Pass 2 ---------- */

/* Kit buttons, tabs, accordion rows, badges and tooltips: the kit transitions "all"; here each one names what moves. */
.btn, .badge, .accordion > details > summary, .tabs > [role="tablist"] > [role="tab"], [data-tooltip]::before {
  transition-property: color, background-color, border-color, opacity, transform, translate, background-size;
}
.field > input[type="checkbox"][role="switch"], .input[type="checkbox"][role="switch"] {
  transition-property: background-color, border-color, opacity;
}
.dialog, .alert-dialog, :is(.dialog, .alert-dialog)::backdrop, :is(.dialog, .alert-dialog) > * {
  transition-property: opacity, transform, visibility;
}
@media (prefers-reduced-motion: reduce) {
  .btn, .badge, .tabs > [role="tablist"] > [role="tab"], .accordion > details > summary, [data-tooltip]::before { transition-duration: 0.01ms !important; }
}

/* header links: the section on screen takes the same state as a hovered link (underline grown from the left) */
.site-header nav a[aria-current="location"]::after { transform: scaleX(1); }
.site-header nav a[aria-current="location"] { color: var(--primary); }

/* the drawn map is a control too: keyboard focus and hover share the one language (outline in accent, no glow) */
.arr { cursor: pointer; outline: none; }
.arr:hover path, .arr:focus-visible path { stroke-width: 2.5; fill: var(--muted); }
.arr[aria-pressed="true"] path { stroke-width: 2.5; }
.arr:focus-visible text { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* static stacked version: the caption nearest the middle of the screen is underlined from the left */
.sfloor-cap, .descent .beat[data-floor] { background: linear-gradient(var(--material), var(--material)) left bottom / 0% 2px no-repeat; transition: background-size var(--dur-2) var(--ease-out); }
.sfloor.is-near .sfloor-cap, .descent .beat[data-floor].is-near { background-size: 100% 2px; }
.sfloor-cave .sfloor-cap { background-image: linear-gradient(var(--on-stage), var(--on-stage)); }
@media (prefers-reduced-motion: reduce) {
  .sfloor-cap, .descent .beat[data-floor] { transition: none; }
}

.tablet-veil { position: absolute; right: 0; bottom: 0; background: var(--ground); pointer-events: none; z-index: 1; }

/* tablet: the headline block sits on the ground colour, so no slab line or fixture of the drawing shows through the words */
@media (min-width: 761px) and (max-width: 1100px) {
  .descent .poster-text { background: color-mix(in oklab, var(--ground) calc(var(--panel, 1) * 100%), transparent); width: fit-content; max-width: 100%; margin-left: calc(var(--space-4) * -1); padding: var(--space-4) var(--space-5) var(--space-5) var(--space-4); }
  .descent .poster-text .hero-title { max-width: 11em; }
  .descent .hero-sub, .descent .hero-zone { max-width: 34rem; }
  .is-scene .poster .photo-hero { bottom: 11rem; left: auto; right: 0; width: 240px; }
  .is-scene .beat { font-size: 1.12rem; }
}

/* header rule: hairline at rest, accent once the page has moved (the same border-to-accent change as every hover) */
.site-header { transition: border-color var(--dur-2) var(--ease-out); }
.site-header.is-moved { border-bottom-color: var(--primary); }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
