/* Les Maisons du Revard — graphite, beige minéral, mousse. Une seule famille : Boska. */
@font-face { font-family: 'Boska'; src: url('/fonts/boska-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Boska'; src: url('/fonts/boska-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #1b1e20;            /* gris anthracite, RAL 7016 des menuiseries */
  --surface: #262a2d;
  --ink: #eef0ee;
  --muted: #b3b8b6;
  --accent: #b5d16b;        /* la toiture végétalisée */
  --accent-ink: #1a2213;
  --field: #e4e0d7;         /* enduit minéral */
  --field-ink: #1b1e20;
  --field-muted: #4b504f;
  --paper: #f2f2ef;
  --m: clamp(20px, 2.2vw, 32px);
  --gap: 16px;
  --section: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --step-small: clamp(0.9375rem, 0.9rem + 0.12vw, 1rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1.1rem + 0.9vw, 2.1rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(4.1rem, 19vw, 18vw);
}
@media (min-width: 900px) { :root { --step-display: clamp(8.75rem, 13vw, 12.5rem); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-weight: 500; background: var(--bg); color: var(--ink); font-family: 'Boska', Georgia, 'Times New Roman', serif; font-size: var(--step-body); line-height: 1.55; letter-spacing: 0.005em; font-feature-settings: 'kern', 'liga'; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 0.06em; text-underline-offset: 0.2em; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.on-field :focus-visible { outline-color: #1b1e20; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: 12px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 12px 16px; text-decoration: none; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.skip:focus { clip-path: none; width: auto; height: auto; }

.small { font-size: var(--step-small); }
.muted { color: var(--muted); }
.on-field { background: var(--field); color: var(--field-ink); }
.on-field .muted { color: var(--field-muted); }
.on-surface { background: var(--surface); }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-inline: var(--m); }
.section { padding-block: var(--section); }
h2, .h2 { font-weight: 400; font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
p, dd { max-width: 62ch; }
.row > span, .prox li > span, .tm .c, .facts4 span, .big4 span { max-width: none; }
.lead { font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.005em; text-wrap: pretty; }

/* boutons : un seul modèle, rectangle plein */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 0; font-size: var(--step-body); font-weight: 500; text-decoration: none; cursor: pointer; transition: transform 220ms var(--ease), background-color 220ms; }
.btn:hover { transform: translateY(-2px); background: #c6e07a; }
.btn:active { transform: translateY(0) scale(0.98); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.25em; transition: text-decoration-color 250ms; }
.link:hover, .link:focus-visible { text-decoration-color: currentColor; }

/* ───────── en-tête ───────── */
.top { position: absolute; z-index: 5; top: 22px; right: var(--m); left: var(--m); display: flex; justify-content: flex-end; align-items: baseline; gap: clamp(16px, 2.4vw, 36px); font-size: var(--step-small); color: #fff; }
.top .mark { margin-right: auto; opacity: 0; pointer-events: none; }
.top a { text-decoration: none; }
.top .mark-r { font-weight: 500; }

/* ───────── hero ───────── */
.hero { position: relative; min-height: 100svh; padding: 72px var(--m) 24px; color: #fff; isolation: isolate; overflow: clip; display: flex; flex-direction: column; }
.hero-pic { position: absolute; inset: 0; z-index: -2; }
.hero-pic img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(14, 16, 17, 0.62), rgba(14, 16, 17, 0) 38%, rgba(14, 16, 17, 0) 52%, rgba(14, 16, 17, 0.7)); } /* taste-skill-ignore: scrim neutre sous le texte */
.hero h1 { font-weight: 400; flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: calc(100svh - 96px); }
.hero .line { display: block; font-size: var(--step-display); line-height: 0.88; letter-spacing: -0.03em; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; white-space: nowrap; }
.hero .line-2 { align-self: flex-end; }
.hero [data-line] { display: block; }
.hero-mid { position: absolute; left: 30vw; top: 50%; transform: translateY(-50%); max-width: 44ch; padding: 28px 28px 32px; background: rgba(14, 16, 17, 0.58); }
.hero-mid p { font-size: var(--step-body); line-height: 1.45; margin-bottom: 28px; }
.hero-mid .more { display: inline-block; margin-left: 24px; color: #fff; font-size: var(--step-body); }
@media (max-width: 899px) {
  .hero { padding-top: 88px; }
  .hero-mid { left: var(--m); right: var(--m); max-width: none; padding: 20px; }
  .hero-mid .more { display: block; margin: 18px 0 0; }
  .top .opt { display: none; }
}

/* ───────── repère de cote ───────── */
.cote { position: fixed; z-index: 20; left: var(--m); bottom: 18px; font-size: var(--step-small); color: #fff; background: rgba(20, 22, 23, 0.82); padding: 8px 12px; opacity: 0; transform: translateY(8px); transition: opacity 300ms, transform 300ms var(--ease); pointer-events: none; font-variant-numeric: tabular-nums; }
.cote.on { opacity: 1; transform: none; }
@media (max-width: 899px) { .cote { display: none; } }

/* ───────── intro : phrase fixe, photographies qui passent ───────── */
.intro { padding-block: var(--section); }
.intro .stick { grid-column: 1 / span 6; align-self: start; position: sticky; top: 18svh; height: fit-content; }
.intro .stick p { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.01em; max-width: 26em; }
.intro .reel { grid-column: 8 / -1; display: grid; gap: 14vh; }
.intro .reel figure:nth-child(1) { width: 78%; }
.intro .reel figure:nth-child(2) { width: 100%; }
.intro .reel figure:nth-child(3) { width: 62%; margin-left: auto; }
.intro .reel img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.intro .reel figure:nth-child(2) img { aspect-ratio: 16 / 10; }
.intro .reel figure:nth-child(3) img { aspect-ratio: 1; }
.intro .facts { margin-top: 56px; display: grid; grid-template-columns: repeat(3, auto); gap: 8px 40px; justify-content: start; }
.intro .facts div { display: grid; }
.intro .facts b { font-weight: 500; font-size: var(--step-lead); line-height: 1.1; font-variant-numeric: tabular-nums; }
.intro .facts span { color: var(--muted); font-size: var(--step-small); }
@media (max-width: 899px) {
  .intro .stick { grid-column: 1 / -1; position: static; margin-bottom: 40px; }
  .intro .reel { grid-column: 1 / -1; gap: 40px; }
  .intro .facts { grid-template-columns: repeat(2, auto); }
}

/* ───────── bande de panneaux inégaux ───────── */
.band-head { padding-inline: var(--m); margin-bottom: 64px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.band-head h2 { grid-column: 3 / span 8; }
.band { display: flex; height: 68svh; min-height: 460px; }
.band .p { position: relative; overflow: hidden; flex: 1 1 0; min-width: 0; transition: flex-grow 600ms var(--ease); }
.band .p:nth-child(1) { flex-grow: 5; } .band .p:nth-child(2) { flex-grow: 2; } .band .p:nth-child(3) { flex-grow: 3; } .band .p:nth-child(4) { flex-grow: 2; }
@media (hover: hover) and (min-width: 900px) { .band:hover .p { flex-grow: 2; } .band .p:hover { flex-grow: 6 !important; } }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band .title { position: absolute; left: 0; top: 0; padding: 24px 28px 64px 24px; background: linear-gradient(135deg, rgba(14, 16, 17, 0.6), rgba(14, 16, 17, 0) 85%); font-size: var(--step-lead); line-height: 1.1; color: #fff; max-width: 70%; } /* taste-skill-ignore: scrim neutre sous le titre */
.band-cap { padding: 16px var(--m) 0; color: var(--muted); font-size: var(--step-small); }
@media (max-width: 899px) {
  .band-head h2 { grid-column: 1 / -1; font-size: 1.75rem; }
  .band-head { margin-bottom: 32px; }
  .band { display: grid; height: 84svh; grid-template-columns: 64fr 36fr; grid-template-rows: 1fr 1fr; }
  .band .p:nth-child(3) { grid-column: 1; grid-row: 2; }
  .band .p:nth-child(1) { grid-column: 1; grid-row: 1; }
  .band .p:nth-child(2) { grid-column: 2; grid-row: 1; }
  .band .p:nth-child(4) { grid-column: 2; grid-row: 2; }
  .band { grid-template-columns: 64fr 36fr; }
  .band .p:nth-child(3) { grid-column: 1 / 2; }
}

/* ───────── pièces à l'échelle ───────── */
.about .head { grid-column: 1 / -1; margin-bottom: 24px; }
.about .leadwrap { grid-column: 1 / span 7; margin-bottom: 72px; }
.about .wide { grid-column: 1 / span 8; position: relative; }
.about .wide img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.about .wide .note { position: absolute; right: 0; top: 0; width: 320px; padding: 20px; background: var(--paper); color: var(--field-ink); font-size: var(--step-small); line-height: 1.45; }
.about .tile { grid-column: 9 / -1; display: flex; flex-direction: column; gap: 20px; }
.tm { display: flex; flex-direction: column; gap: 4px; background: var(--field); aspect-ratio: 4 / 5; }
.tm .r { display: flex; gap: 4px; min-height: 0; }
.tm .c { background: #c9c5ba; color: var(--field-ink); padding: 12px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; font-size: var(--step-small); line-height: 1.2; transition: background-color 250ms; }
.tm .c b { font-weight: 500; font-size: var(--step-body); font-variant-numeric: tabular-nums; }
.tm .c.hi { background: var(--accent); color: var(--accent-ink); }
.tm .c:hover { background: #d9d5ca; }
.tm .c.hi:hover { background: #c6e07a; }
.tm-cap { color: var(--muted); font-size: var(--step-small); }
.facts4 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.facts4 div { display: grid; gap: 2px; }
.facts4 b { font-weight: 500; font-size: var(--step-lead); line-height: 1.05; font-variant-numeric: tabular-nums; }
.facts4 span { color: var(--muted); font-size: var(--step-small); line-height: 1.3; }
@media (max-width: 899px) {
  .about .leadwrap, .about .wide, .about .tile { grid-column: 1 / -1; }
  .about .leadwrap { margin-bottom: 40px; }
  .about .wide .note { position: static; width: auto; margin-bottom: 0; }
  .about .wide { margin-bottom: 24px; }
  .about .wide img { aspect-ratio: 4 / 3; }
  .tm { aspect-ratio: 4 / 4.6; }
}

/* ───────── niveaux : tableau poussé à droite ───────── */
.levels .head { grid-column: 1 / -1; padding-left: 3vw; margin-bottom: 96px; }
.levels .head h2 { max-width: 14em; }
.levels .side { grid-column: 1 / span 4; align-self: end; }
.levels .side img { width: 78%; aspect-ratio: 4 / 5; object-fit: cover; }
.levels .table { grid-column: 5 / -1; }
.levels .grp + .grp { margin-top: 56px; }
.levels .grp h3 { font-weight: 400; font-size: var(--step-lead); line-height: 1.1; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.levels .grp h3 span { font-size: var(--step-small); color: var(--field-muted); }
.row { display: grid; grid-template-columns: 7rem 1fr auto; gap: 8px 24px; padding-block: 11px; align-items: baseline; }
.row .k { color: var(--field-muted); font-size: var(--step-small); }
.row .v { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.row .v:empty { display: none; }
@media (max-width: 899px) {
  .levels .head { padding-left: 0; margin-bottom: 40px; }
  .levels .head h2 { font-size: 2.2rem; }
  .levels .side, .levels .table { grid-column: 1 / -1; }
  .levels .side { order: 2; margin-top: 48px; }
  .levels .side img { width: 60%; margin-left: auto; }
  .row { grid-template-columns: 1fr auto; }
  .row .k { grid-column: 1 / -1; }
}

/* ───────── galerie : grille filtrable + visionneuse ───────── */
.gallery .gal-top { padding-inline: var(--m); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.gallery .gal-top h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); }
.gal-count { color: var(--muted); font-size: var(--step-small); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gal-filters { padding-inline: var(--m); margin-bottom: 24px; }
.chip .n { color: inherit; opacity: 0.6; font-size: var(--step-small); margin-left: 6px; font-variant-numeric: tabular-nums; }
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 16.5vw, 270px); grid-auto-flow: dense; gap: 8px; padding-inline: var(--m); }
.gal-grid li { min-width: 0; min-height: 0; max-width: none; }
.gal-grid li[hidden] { display: none; }
.gal-grid li.big { grid-column: span 2; grid-row: span 2; }
.tile { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--surface); cursor: zoom-in; overflow: hidden; position: relative; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease), filter 300ms; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile::after { content: attr(data-cat-label); position: absolute; left: 0; bottom: 0; padding: 22px 14px 10px; font-size: var(--step-small); color: #fff; opacity: 0; transition: opacity 250ms; background: linear-gradient(to top, rgba(14, 16, 17, 0.7), rgba(14, 16, 17, 0)); right: 0; text-align: left; } /* taste-skill-ignore: scrim neutre sous la légende */
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }
@media (max-width: 1100px) { .gal-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(140px, 24vw, 260px); } }
@media (max-width: 640px) { .gal-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; gap: 6px; } .gallery .gal-top { flex-direction: column; gap: 4px; } .tile::after { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .gal-grid li:not([hidden]) { animation: tilein 520ms var(--ease) both; animation-delay: calc(min(var(--k, 0), 14) * 28ms); }
}
@keyframes tilein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* visionneuse */
.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 12, 13, 0.96); color: #fff; display: none; grid-template-columns: 72px 1fr 72px; grid-template-rows: 56px 1fr auto; }
.lb[open] { display: grid; }
.lb::backdrop { background: rgba(10, 12, 13, 0.9); }
.lb-bar { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 0 var(--m); }
.lb-count { font-size: var(--step-small); font-variant-numeric: tabular-nums; color: var(--muted); }
.lb-close { min-height: 44px; padding: 0 18px; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; font-weight: 500; }
.lb-fig { grid-column: 2; grid-row: 2; display: grid; grid-template-rows: 1fr auto; min-height: 0; min-width: 0; align-items: center; justify-items: center; touch-action: pan-y; }
.lb-fig img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; min-height: 0; user-select: none; -webkit-user-drag: none; }
.lb-fig figcaption { padding: 14px 0 6px; font-size: var(--step-body); text-align: center; max-width: 70ch; }
.lb-nav { grid-row: 2; align-self: center; justify-self: center; width: 52px; height: 52px; border: 0; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 1.5rem; cursor: pointer; transition: background-color 200ms, transform 200ms var(--ease); }
.lb-nav:hover { background: var(--accent); color: var(--accent-ink); }
.lb-nav:active { transform: scale(0.94); }
.lb-prev { grid-column: 1; } .lb-next { grid-column: 3; }
.lb-strip { grid-column: 1 / -1; grid-row: 3; display: flex; gap: 6px; overflow-x: auto; padding: 10px var(--m) 14px; scrollbar-width: none; }
.lb-strip::-webkit-scrollbar { display: none; }
.lb-strip button { flex: none; width: 76px; height: 56px; padding: 0; border: 0; background: none; opacity: 0.5; cursor: pointer; transition: opacity 200ms; }
.lb-strip button[aria-current='true'] { opacity: 1; outline: 2px solid var(--accent); outline-offset: -2px; }
.lb-strip button:hover { opacity: 1; }
.lb-strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .lb { grid-template-columns: 1fr; grid-template-rows: 52px 1fr auto auto; }
  .lb-fig { grid-column: 1; }
  .lb-nav { position: absolute; top: 50%; width: 44px; height: 44px; transform: translateY(-50%); background: rgba(10, 12, 13, 0.6); }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-strip { display: none; }
}

/* ───────── extérieur ───────── */
.out .copy { grid-column: 1 / span 5; align-self: center; }
.out h2 { margin-bottom: 40px; }
.out .photo { grid-column: 6 / -1; }
.out .photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.big4 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
.big4 b { display: block; font-weight: 400; font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.big4 span { display: block; margin-top: 8px; font-size: var(--step-small); line-height: 1.35; color: var(--field-muted); max-width: 22ch; }
@media (max-width: 899px) { .out .copy, .out .photo { grid-column: 1 / -1; } .out .photo { margin-top: 40px; } }

/* ───────── quartier : outil et tableau ───────── */
.near .head { grid-column: 1 / span 7; margin-bottom: 24px; }
.near .sub { grid-column: 1 / span 6; margin-bottom: 56px; color: var(--muted); }
.near .tool { grid-column: 1 / -1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip { min-height: 48px; padding: 0 22px; border: 0; border-radius: 0; background: var(--surface); color: var(--ink); cursor: pointer; font-size: var(--step-body); transition: background-color 200ms, color 200ms, transform 200ms var(--ease); }
.chip:hover { background: #31363a; }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed='true'] { background: var(--accent); color: var(--accent-ink); }
.prox { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.prox .lhs { grid-column: 1 / span 4; }
.prox .lhs .num { font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; display: block; }
.prox .lhs .num-l { color: var(--muted); font-size: var(--step-small); margin-top: 10px; display: block; max-width: 28ch; }
.prox ul { grid-column: 5 / -1; }
.prox li { display: grid; grid-template-columns: 6.5rem 1fr auto auto; gap: 4px 24px; padding-block: 13px; align-items: baseline; }
.prox li[hidden] { display: none; }
.prox li .c { color: var(--muted); font-size: var(--step-small); }
.prox li .t { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.prox li .d { text-align: right; color: var(--muted); font-size: var(--step-small); white-space: nowrap; min-width: 7ch; font-variant-numeric: tabular-nums; }
.prox li:nth-child(4n+1) { margin-top: 18px; }
.note-est { grid-column: 5 / -1; margin-top: 32px; color: var(--muted); font-size: var(--step-small); max-width: 56ch; }
.note-est a { color: var(--accent); }
.near .rail { grid-column: 1 / -1; margin-top: 72px; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.near .rail div { padding: 8px 0 0; display: grid; gap: 8px; }
.near .rail b { font-weight: 400; font-size: var(--step-lead); line-height: 1.1; }
.near .rail span { color: var(--muted); font-size: var(--step-small); line-height: 1.4; }
@media (max-width: 899px) {
  .near .head, .near .sub { grid-column: 1 / -1; }
  .prox .lhs, .prox ul, .note-est { grid-column: 1 / -1; }
  .prox .lhs { margin-bottom: 32px; }
  .prox li { grid-template-columns: 1fr auto; }
  .prox li .c { grid-column: 1 / -1; }
  .prox li .d { display: none; }
  .near .rail { grid-template-columns: 1fr; }
}

/* ───────── permis : prévu / à confirmer ───────── */
.permit .head { grid-column: 1 / -1; margin-bottom: 72px; }
.permit .planned { grid-column: 1 / span 7; }
.permit .confirm { grid-column: 9 / -1; background: var(--bg); color: var(--ink); padding: 32px; align-self: start; }
.permit .confirm h3 { font-weight: 400; font-size: var(--step-lead); line-height: 1.1; margin-bottom: 20px; }
.permit .confirm li { padding-block: 10px; font-size: var(--step-body); line-height: 1.4; }
.permit .confirm li::before { content: '→ '; color: var(--accent); }
.permit .small-note { grid-column: 1 / -1; margin-top: 48px; font-size: var(--step-small); }
.dl { display: grid; grid-template-columns: 8.5rem 1fr; gap: 6px 24px; padding-block: 14px; }
.dl dt { color: var(--field-muted); font-size: var(--step-small); padding-top: 3px; }
@media (max-width: 899px) {
  .permit .planned, .permit .confirm { grid-column: 1 / -1; }
  .permit .confirm { margin-top: 48px; padding: 24px; }
  .dl { grid-template-columns: 1fr; }
}

/* ───────── comparaison ───────── */
.cmp .head { grid-column: 1 / span 6; }
.cmp .tbl { grid-column: 5 / -1; margin-top: -8px; }
.cmp .head p { margin-top: 24px; color: var(--muted); max-width: 30ch; }
.cmp table { width: 100%; border-collapse: collapse; }
.cmp th, .cmp td { text-align: left; padding: 15px 12px 15px 0; font-weight: 400; vertical-align: baseline; }
.cmp thead th { font-size: var(--step-lead); line-height: 1; padding-bottom: 22px; }
.cmp tbody th { color: var(--muted); font-size: var(--step-small); width: 36%; }
.cmp td { font-variant-numeric: tabular-nums; }
.cmp td.me { color: var(--accent); font-weight: 500; }
.cmp tbody tr:nth-child(even) { background: var(--surface); }
.cmp tbody tr:nth-child(even) th, .cmp tbody tr:nth-child(even) td { padding-left: 12px; }
.cmp tbody tr:nth-child(odd) th, .cmp tbody tr:nth-child(odd) td:first-of-type { padding-left: 12px; }
.cmp td { padding-left: 12px; }
.cmp .go { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
@media (max-width: 899px) { .cmp .head, .cmp .tbl { grid-column: 1 / -1; } .cmp .tbl { margin-top: 40px; } .cmp thead th { font-size: var(--step-body); } }

/* ───────── associés ───────── */
.team .head { grid-column: 1 / span 5; align-self: start; }
.team .head p { margin-top: 28px; max-width: 30ch; color: var(--field-muted); }
.team ul { grid-column: 6 / -1; display: grid; gap: 72px; }
.team li { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; align-items: end; }
.team li:nth-child(2) { margin-left: 8%; }
.team li:nth-child(3) { margin-left: 16%; }
.team img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; }
.team h3 { font-weight: 400; font-size: var(--step-lead); line-height: 1.05; margin-bottom: 4px; }
.team .role { color: var(--field-muted); font-size: var(--step-small); margin-bottom: 14px; }
.team .bio { font-size: var(--step-body); line-height: 1.45; }
.team .why { grid-column: 1 / span 6; margin-top: 48px; font-size: var(--step-body); max-width: 40ch; }
@media (max-width: 899px) {
  .team .head { grid-column: 1 / -1; position: static; margin-bottom: 48px; }
  .team ul { grid-column: 1 / -1; gap: 48px; }
  .team li { grid-template-columns: 1fr; }
  .team li:nth-child(n) { margin-left: 0; }
  .team img { width: 70%; }
  .team .why { grid-column: 1 / -1; }
}

/* ───────── partenaires ───────── */
.partners { background: #34393d; }
.partners .card { background: var(--paper); color: var(--field-ink); width: min(1180px, 100% - 2 * var(--m)); margin-inline: auto; padding: clamp(24px, 4.5vw, 64px); }
.partners h2 { font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.01em; max-width: 32em; margin-bottom: 40px; text-align: left; }
.partners .wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.partners .wall li { aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 14px; background: #fff; }
.partners .wall li.dark { background: #15181a; }
.partners .wall img { max-width: 100%; max-height: 100%; object-fit: contain; width: auto; height: auto; max-height: 88px; transition: transform 300ms var(--ease); }
.partners .wall li:hover img { transform: scale(1.06); }
.partners .after { margin-top: 32px; font-size: var(--step-small); color: var(--field-muted); max-width: 60ch; }
@media (max-width: 899px) { .partners .wall { grid-template-columns: repeat(3, 1fr); } .partners .wall li { padding: 12px; } }
@media (max-width: 520px) { .partners .wall { grid-template-columns: repeat(2, 1fr); } }

/* ───────── contact ───────── */
.visit { position: relative; min-height: max(100svh, 760px); isolation: isolate; }
.visit-pic { position: absolute; inset: 0; z-index: -1; }
.visit-pic img { width: 100%; height: 100%; object-fit: cover; }
.visit .cardwrap { padding: 60px var(--m) 60px; display: flex; justify-content: flex-end; }
.visit .card { width: 380px; max-width: 100%; background: var(--paper); color: var(--field-ink); padding: 32px 32px 0; border-radius: 8px; overflow: hidden; }
.visit .card h2 { font-size: var(--step-lead); line-height: 1.05; font-weight: 400; margin-bottom: 16px; }
.visit address { font-style: normal; margin-bottom: 20px; }
.visit dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin-bottom: 20px; font-size: var(--step-small); }
.visit dt { color: var(--field-muted); } .visit dd { text-align: right; font-variant-numeric: tabular-nums; }
.visit label { display: block; font-size: var(--step-small); color: var(--field-muted); margin-bottom: 14px; }
.visit input { display: block; width: 100%; height: 48px; margin-top: 4px; padding: 0 12px; border: 0; background: #e6e6e1; border-radius: 0; color: var(--field-ink); }
.visit .btn { width: calc(100% + 64px); margin-inline: -32px; min-height: 56px; margin-top: 8px; }
@media (max-width: 899px) {
  .visit { min-height: 0; }
  .visit-pic { position: relative; inset: auto; height: 70svh; z-index: 0; }
  .visit .cardwrap { margin-top: -80px; padding: 0 var(--m) 48px; position: relative; }
  .visit .card { width: 100%; }
}

/* ───────── pied de page ───────── */
.foot { background: var(--accent); color: var(--accent-ink); min-height: 90svh; padding: 40px var(--m) 28px; display: grid; grid-template-rows: auto 1fr auto auto; }
.foot .notes { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); font-size: var(--step-small); line-height: 1.4; }
.foot .notes > * { grid-column: span 2; }
.foot .notes > :first-child { grid-column: 1 / span 3; }
.foot .notes .up { grid-column: -3 / -1; text-align: right; }
.foot .say { align-self: end; font-size: clamp(2.6rem, 11.2vw, 12rem); line-height: 0.95; letter-spacing: -0.03em; text-decoration: none; display: block; padding-bottom: 0.1em; margin-top: 12vh; transition: letter-spacing 500ms var(--ease); }
.foot .say:hover { letter-spacing: -0.02em; }
.foot .meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--step-small); margin-top: 40px; }
.foot .credit { font-size: var(--step-small); margin-top: 18px; max-width: 90ch; opacity: 0.85; }
@media (max-width: 899px) {
  .foot .notes { display: block; } .foot .notes > * { display: block; margin-bottom: 14px; text-align: left !important; }
  .foot .say { font-size: 13vw; }
  .foot .meta { flex-direction: column; gap: 6px; }
}

/* ───────── hub : deux maisons ───────── */
.pair2 .head { grid-column: 1 / span 8; margin-bottom: 64px; }
.pair2 .h { grid-column: span 6; display: block; text-decoration: none; position: relative; }
.pair2 .h:nth-of-type(2) { margin-top: 12vw; }
.pair2 .h img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 800ms var(--ease); }
.pair2 .h .frame { overflow: hidden; }
.pair2 .h:hover img { transform: scale(1.03); }
.pair2 h3 { font-weight: 400; font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em; margin-top: 24px; }
.pair2 .h p { margin-top: 12px; max-width: 34ch; }
.pair2 .h .stats { display: flex; gap: 8px 28px; flex-wrap: wrap; margin-top: 20px; color: var(--muted); font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.pair2 .h .go { display: inline-block; margin-top: 24px; background: var(--accent); color: var(--accent-ink); padding: 14px 24px; font-weight: 500; transition: transform 220ms var(--ease); }
.pair2 .h:hover .go { transform: translateX(6px); }
.logo-intro .l { grid-column: 1 / span 5; align-self: center; }
.logo-intro .l img { width: 100%; max-width: 560px; }
.logo-intro .r { grid-column: 7 / -1; align-self: center; }
.logo-intro .r p + p { margin-top: 24px; max-width: 46ch; }
@media (max-width: 899px) {
  .pair2 .head, .pair2 .h { grid-column: 1 / -1; }
  .pair2 .h { margin-bottom: 56px; } .pair2 .h:nth-of-type(2) { margin-top: 0; }
  .logo-intro .l, .logo-intro .r { grid-column: 1 / -1; } .logo-intro .l { margin-bottom: 40px; }
}

/* ───────── mouvement ───────── */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .line [data-line] { transform: translateY(105%); animation: up 750ms var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + 60ms); }
  .js .hero-mid p, .js .hero-mid .btn, .js .hero-mid .more, .js .top > * { opacity: 0; animation: fade 700ms var(--ease) forwards; animation-delay: 500ms; }
  .js .hero-mid .btn { animation-delay: 600ms; } .js .hero-mid .more { animation-delay: 650ms; }
  .js .top > * { animation-delay: 600ms; }
  .js .hero-pic img { animation: drift 24s ease-out forwards; transform-origin: 40% 60%; }
  .js [data-reveal] { opacity: 0.3; transform: translateY(28px); transition: opacity 800ms var(--ease), transform 900ms var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .reveal-img img { transform: scale(1.06); transition: transform 1600ms var(--ease); }
  .js .reveal-img.is-in img { transform: none; }
}
@keyframes up { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .band .p { transition: none; } * { scroll-behavior: auto !important; } }
.js .top .mark { opacity: 1; }
.noscript-note { padding: 12px var(--m); background: var(--accent); color: var(--accent-ink); }
.partners h2 { margin-bottom: 4px; }
.partners .part-lead { margin-bottom: 40px; color: var(--field-muted); }
.tm-cap { margin-top: 10px; }
.facts4 { margin-bottom: 8px; }
.levels .grp + .grp { margin-top: 80px; }

/* ───────── barre fixe (après le hero) ───────── */
.bar { position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: 64px; padding-inline: var(--m); display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); background: #111416; color: #fff; transform: translateY(-100%); visibility: hidden; transition: transform 350ms var(--ease), visibility 0s linear 350ms; font-size: var(--step-small); }
.bar.on { transform: none; visibility: visible; transition: transform 350ms var(--ease); }
.bar-mark { text-decoration: none; font-size: var(--step-body); font-weight: 500; white-space: nowrap; margin-right: auto; }
.bar-links { display: flex; gap: clamp(14px, 2vw, 28px); }
.bar-links a { text-decoration: none; }
.bar-price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-price b { font-weight: 500; font-size: var(--step-body); }
.bar .bar-btn { min-height: 44px; padding: 0 20px; font-size: var(--step-small); white-space: nowrap; }
@media (max-width: 899px) { .bar-links { display: none; } .bar-price { display: none; } .bar { height: 60px; } }

/* hero : prix */
.hero-price { margin-bottom: 20px !important; font-variant-numeric: tabular-nums; }
.hero-price b { font-weight: 500; font-size: var(--step-lead); margin-right: 8px; }
.hero-price span { color: var(--muted); font-size: var(--step-small); }

/* quartier : quatre repères */
.stats4 { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-bottom: 64px; }
.stats4 div { background: var(--surface); padding: 28px 24px 26px; display: grid; gap: 10px; }
.stats4 b { font-weight: 400; font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats4 span { color: var(--muted); font-size: var(--step-small); }
@media (max-width: 899px) { .stats4 { grid-template-columns: 1fr 1fr; margin-bottom: 40px; } .stats4 div { padding: 20px 16px; } .stats4 b { font-size: 1.9rem; } }

/* hub : cartes maisons */
.pair2 .mai-sub { grid-column: 1 / span 7; margin: -40px 0 56px; color: var(--muted); }
.pair2 .price-line { margin-top: 14px; font-variant-numeric: tabular-nums; }
.pair2 .price-line b { font-weight: 500; font-size: var(--step-lead); margin-right: 8px; }
.pair2 .price-line span { color: var(--muted); font-size: var(--step-small); }
.pair2 .h .price-line + p { margin-top: 8px; }
@media (max-width: 899px) { .pair2 .mai-sub { grid-column: 1 / -1; margin: -32px 0 40px; } }

/* formulaire plus complet */
.visit select, .visit textarea { display: block; width: 100%; margin-top: 4px; padding: 0 12px; border: 0; background: #e6e6e1; border-radius: 0; color: var(--field-ink); }
.visit select { height: 48px; }
.visit textarea { padding: 10px 12px; resize: vertical; min-height: 76px; }
.visit .card { padding-bottom: 0; }
.visit label { margin-bottom: 10px; }
.visit dl { margin-bottom: 14px; }
.visit address { margin-bottom: 14px; }

.gal-lead { padding-inline: var(--m); margin: -12px 0 28px; color: var(--muted); max-width: none; font-size: var(--step-body); }
