/* Catanéo page layer: tokens only (theme.css holds the palette). */
:root { --header-height: 76px; }
body { background: var(--bg); color: var(--ink); }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; }
em { font-style: italic; }
.display em, .h2 em { font-weight: 400; color: var(--accent-text); background: linear-gradient(transparent 72%, color-mix(in srgb, var(--key) 75%, transparent) 72%, color-mix(in srgb, var(--key) 75%, transparent) 92%, transparent 92%); padding-inline: .04em; }
.band-ink .h2 em, .hero-home .display em { color: inherit; }
.display-sm { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); }
.eyebrow { color: var(--accent-text); }
.band-ink .eyebrow { color: var(--key); }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { gap: 16px; }
.brand { display: inline-flex; color: var(--ink); margin-right: auto; }
.logo { height: 40px; width: auto; }
.nav-links { gap: 22px; }
@media (max-width: 1179px) { .nav-links { display: none !important; } }
@media (min-width: 1180px) { .nav-links { display: flex; } .menu-main { display: none; } }
.nav-links a { font-size: .9375rem; }
.nav-links a[aria-current] { color: var(--accent-text); box-shadow: inset 0 -2px 0 var(--key); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.button-sm { min-height: 44px; padding: 10px 18px; font-size: .875rem; }
.theme-toggle { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
.theme-toggle:hover { border-color: var(--accent); }
.menu { position: relative; }
.menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); cursor: pointer; font-weight: 700; font-size: .875rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(92vw, 880px); max-height: calc(100svh - 100px); overflow: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-menu); padding: 24px; z-index: 60; }
.menu-main { list-style: none; padding: 0 0 16px; margin: 0 0 16px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.menu-main a { display: block; padding: 8px 0; font-family: var(--font-display); font-size: 1.375rem; text-decoration: none; }
.menu-more { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.menu-more ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.menu-more a { display: block; padding: 6px 0; text-decoration: none; color: var(--muted-strong); font-size: .9375rem; }
.menu-more a:hover, .menu-main a:hover { color: var(--accent-text); }
.menu-h { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
@media (max-width: 640px) {
  .header-actions .button-sm { display: none; }
  .logo { height: 34px; }
  .menu summary span { display: none; }
  .menu summary { padding: 0; width: 44px; justify-content: center; }
  .menu-panel { position: fixed; left: 0; right: 0; top: var(--header-height); width: auto; border-radius: 0; max-height: calc(100svh - var(--header-height)); }
}

/* Crumbs */
.crumbs ol { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-small); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted-strong); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Home hero */
.hero-home { min-height: min(92svh, 860px); color: var(--on-photo); align-content: end; padding-bottom: clamp(40px, 6vw, 88px); }
.hero-home .hero-bleed { z-index: 0; }
.hero-home .hero-inner { z-index: 2; max-width: 100%; }
.hero-wash { position: absolute; inset: 0; z-index: 1; background: var(--photo-wash); }
.hero-home .display { color: var(--on-photo); max-width: 14ch; font-size: clamp(2.75rem, 1.6rem + 5vw, 6rem); }
.hero-home .display em { background: none; color: var(--key); }
.hero-home .lead { color: var(--on-photo-muted); max-width: 52ch; }
.hero-home .eyebrow { color: var(--key); }
.hero-home .button-quiet { color: var(--on-photo); border-color: var(--on-photo-line); }
.hero-home .button-quiet:hover { background: var(--on-photo-hover); }
.hero-proof { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); color: var(--on-photo-muted); font-weight: 600; }
.stars { display: inline-flex; color: var(--key); }
.hero-caption { position: absolute; z-index: 2; right: max(16px, calc((100vw - 1320px) / 2)); bottom: 14px; font-size: var(--fs-micro); color: var(--on-photo-muted); }
@media (max-width: 640px) { .hero-caption { left: 20px; right: 20px; } .hero-home { padding-bottom: 56px; } }

/* Key band (yellow) */
.band-key { background: var(--key); color: var(--key-ink); }
.band-key .label { color: var(--key-ink); opacity: .8; }
.band-key .facts > div { border-top-color: color-mix(in srgb, var(--key-ink) 30%, transparent); }
.facts dd { margin: 0; display: grid; gap: 4px; }
.facts dd span { font-size: var(--fs-small); }
.band-key .facts strong { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); }

/* Compact hero */
.hero-compact { border-bottom: 1px solid var(--line); }
.hero-compact .display { max-width: 22ch; }
.hero-compact .hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-text { display: grid; gap: 18px; align-content: start; }
.hero-addr { display: flex; gap: 8px; align-items: center; color: var(--muted-strong); font-weight: 600; }
.hero-price { font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); color: var(--accent-text); }

/* Poles fields */
.pole { text-decoration: none; transition: transform .25s var(--ease-out); }
.pole:hover { transform: translateY(-3px); }
.pole p { max-width: 46ch; margin-top: 10px; }
.pole-num { font-family: var(--font-display); font-size: 1rem; opacity: .7; }
.pole-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; }

/* Project + listing cards */
.card-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: clamp(16px, 2vw, 28px); overflow-x: auto; padding-bottom: 12px; margin-top: clamp(28px, 4vw, 48px); scroll-snap-type: x mandatory; }
.card-row > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .card-row { grid-auto-columns: calc((100% - 2 * 28px) / 3); } }
.card-row-3 { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); overflow: visible; }
.pcard a, .acard a { display: grid; gap: 10px; text-decoration: none; color: inherit; }
.pcard-media, .acard-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.pcard-media img, .acard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.pcard a:hover img, .acard a:hover img { transform: scale(1.04); }
.pcard-meta { font-size: var(--fs-small); color: var(--muted); font-weight: 600; }
.pcard-title, .acard-title { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.2; }
.pcard a:hover .pcard-title, .acard a:hover .acard-title { color: var(--accent-text); }
.pcard-figs { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 22px; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.pcard-figs dt { font-size: var(--fs-micro); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.pcard-figs dd { margin: 0; font-weight: 700; }
.bcard-price { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent-text); display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.bcard-price span { font-family: var(--font-body); font-size: var(--fs-small); color: var(--muted); }
.tag { position: absolute; left: 12px; top: 12px; background: var(--key); color: var(--key-ink); font-size: var(--fs-micro); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 6px 10px; border-radius: 999px; }
.acard-ex { color: var(--muted-strong); font-size: var(--fs-small); }
.grid-cards { display: grid; gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.js .grid-cards > .is-hidden { display: none; }
.more-wrap { display: flex; justify-content: center; margin-top: 40px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.no-js .filters .chips { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; }
.chip span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.chip[aria-pressed="true"] { background: var(--ink-field); color: var(--on-ink); border-color: var(--ink-field); }
.chip[aria-pressed="true"] span { color: var(--on-ink-muted); }
.filter-count { margin-left: auto; color: var(--muted); font-weight: 600; }

/* Index list, link list */
.index-list .h4 { margin-bottom: 6px; }
.link-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-strong); }
.link-list li { border-bottom: 1px solid var(--line-strong); }
.link-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0; text-decoration: none; align-items: center; }
.link-list a .muted { grid-column: 1; font-size: var(--fs-small); }
.link-list a .icon { grid-column: 2; grid-row: 1 / span 2; color: var(--accent-text); transition: transform .25s var(--ease-out); }
.link-list a:hover .icon { transform: translateX(4px); }
.link-list a:hover .h4 { color: var(--accent-text); }

/* Reviews */
.reviews { display: grid; gap: clamp(24px, 3vw, 40px); margin-top: clamp(28px, 4vw, 48px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.review { margin: 0; padding-top: 20px; border-top: 2px solid var(--ink); display: grid; gap: 14px; align-content: start; }
.review blockquote { margin: 0; font-family: var(--font-display); font-size: 1.1875rem; line-height: 1.45; }
.review figcaption { font-weight: 700; font-size: var(--fs-small); color: var(--muted-strong); }
.pull { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.4; max-width: 40ch; border-left: 3px solid var(--key); padding-left: 20px; }

/* Price teaser */
.price-teaser { margin: 0; display: grid; border-top: 1px solid var(--line-strong); }
.price-teaser > div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-strong); align-items: baseline; }
.price-teaser dt { color: var(--muted-strong); }
.price-teaser dd { margin: 0; font-family: var(--font-display); font-size: 1.375rem; white-space: nowrap; }
.price-ink { border-color: var(--on-photo-line); }
.band-ink .price-teaser > div { border-color: color-mix(in srgb, var(--on-ink) 22%, transparent); }
.band-ink .price-teaser dt, .band-ink .small { color: var(--on-ink-muted); }
.band-ink .ticks li::before { border-color: var(--key); }
.band-ink a { color: var(--on-ink); }
@media (max-width: 560px) { .price-teaser > div { flex-direction: column; gap: 4px; } .price-teaser dd { white-space: normal; } }

/* Prose pages */
.prose { max-width: 70ch; }
.prose-intro { max-width: 72ch; }
.prose-short { max-width: 72ch; display: grid; gap: 14px; }
.flow > * + * { margin-top: 14px; }
.flow .flow-h { margin-top: 30px; }
.flow > .flow-h:first-child { margin-top: 0; }
.flow-media { margin: 24px 0; }
.flow-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.step-num { font-family: var(--font-display); color: var(--accent-text); font-size: 1.5rem; margin-top: 26px; }
.kv { margin: 0; }
.kv-tight > div { padding-block: 10px; }
.big-line { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.2; }
.board-wrap { overflow-x: auto; }
.board td, .board th { vertical-align: top; }
.article { max-width: 72ch; margin-inline: auto; }
.article-head { max-width: 72ch; margin-inline: auto; width: 100%; }
.article-h2 { margin-top: 44px !important; }
.article-cover { margin: clamp(24px, 4vw, 48px) auto 0; max-width: 1100px; }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.legal { font-size: .9375rem; }
.legal p { overflow-wrap: anywhere; }
.narrow { max-width: 860px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.toc a { font-weight: 700; text-decoration: none; color: var(--muted-strong); min-height: 44px; display: inline-flex; align-items: center; }
.toc a:hover { color: var(--accent-text); }
.contact-line { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 24px !important; padding-top: 16px; border-top: 1px solid var(--line); }
.band-ink .contact-line { border-color: color-mix(in srgb, var(--on-ink) 22%, transparent); }
.contact-line a { display: inline-flex; gap: 6px; align-items: center; }

/* Detail gallery */
.gallery { display: grid; gap: 12px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (min-width: 800px) {
  .gallery-2 { grid-template-columns: 3fr 2fr; }
  .gallery-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
  .gallery-3 figure:first-child { grid-row: span 2; }
  .gallery-3 figure:first-child img { aspect-ratio: auto; }
  .gallery-4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .gallery-4 figure:first-child { grid-row: span 2; }
  .gallery-4 figure:first-child img { aspect-ratio: auto; }
  .gallery-4 figure:last-child { grid-column: span 2; }
  .gallery-4 figure:last-child img { aspect-ratio: 2 / 1; }
}
@media (max-width: 799px) { .gallery figure:nth-child(n+3) { display: none; } }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.tl-year { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent-text); }

/* People */
.people { display: grid; gap: 36px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.person { display: grid; gap: 6px; align-content: start; }
.person-media { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); margin-bottom: 8px; }
.person-media img { width: 100%; height: 100%; object-fit: cover; }
.person-initials { display: grid; place-items: center; font-family: var(--font-display); font-size: 2.5rem; color: var(--accent-text); }
.person-links { display: grid; gap: 2px; font-size: var(--fs-small); overflow-wrap: anywhere; }

/* Agencies, contact */
.agences { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 32px; }
.agence { display: grid; gap: 12px; align-content: start; padding-top: 20px; border-top: 2px solid var(--ink); }
.agence dd { display: grid; gap: 4px; margin: 0; }
.agence dd a { display: inline-flex; gap: 8px; align-items: center; min-height: 32px; }
.mail-form { display: grid; gap: 16px; }
.field-row { display: grid; gap: 6px; }
.field-row label { font-weight: 700; font-size: var(--fs-small); }
.field-row input, .field-row select, .field-row textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px; width: 100%; }
.form-error { color: var(--accent-text); font-weight: 700; }
.cta-brief { display: grid; gap: 28px; }
@media (min-width: 900px) { .cta-brief { grid-template-columns: 1.4fr 1fr; align-items: end; } }

/* Footer */
.site-footer { background: var(--ink-field); color: var(--on-ink); padding-block: clamp(48px, 6vw, 88px) 32px; }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: grid; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid color-mix(in srgb, var(--on-ink) 18%, transparent); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1fr 2fr; } }
.footer-brand .logo { height: 46px; color: var(--on-ink); }
.footer-brand p { color: var(--on-ink-muted); max-width: 40ch; margin-top: 14px; }
.social { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 700; font-size: var(--fs-small); }
.social a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-agences { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); font-size: var(--fs-small); color: var(--on-ink-muted); }
.f-agence-nom { color: var(--on-ink); font-weight: 700; margin-bottom: 4px; }
.site-footer .footer-cols { padding-block: 40px; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.site-footer .footer-cols h2 { color: var(--key); }
.site-footer .footer-cols a { color: var(--on-ink-muted); display: inline-block; padding-block: 3px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--on-ink) 18%, transparent); font-size: var(--fs-small); color: var(--on-ink-muted); }
.footer-legal ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }

@media (prefers-reduced-motion: reduce) { .pcard img, .acard img, .pole, .link-list .icon { transition: none !important; } }
.hero-compact .display { font-size: clamp(2.25rem, 1.5rem + 3vw, 4.25rem); }
.hero-compact .display-sm { font-size: clamp(1.9rem, 1.4rem + 2vw, 3.2rem); }
/* DPE scale */
.dpe-wrap { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.dpe { display: grid; gap: 8px; }
.dpe-scale { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dpe-scale li { height: 30px; display: grid; place-items: center; font-weight: 800; font-size: .8125rem; color: var(--dpe-ink); opacity: .35; border-radius: 3px; }
.dpe-scale li.is-on { opacity: 1; height: 40px; outline: 2px solid var(--ink); outline-offset: 1px; }
.dpe-a { background: var(--dpe-a); } .dpe-b { background: var(--dpe-b); } .dpe-c { background: var(--dpe-c); } .dpe-d { background: var(--dpe-d); } .dpe-e { background: var(--dpe-e); } .dpe-f { background: var(--dpe-f); } .dpe-g { background: var(--dpe-g); }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; }
