/* maisonsavendre.net - a design annual's plate section on uncoated near-white stock.
   One grotesque for display, text and figures; mono only for labels, buttons and credits. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Fragment Mono";
  src: url("/assets/fonts/fragment-mono-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #16181a;
  --ink-soft: #4a4d52;
  --hair: #c9c7c4;
  --seal: #fbd64a;
  --seal-ink: #243084;

  /* Palette "Soleil": the yellow and night blue of the 2022 maisonsavendre.net
     logo, which are also those of the Bouc-Bel-Air town logo, plus its green,
     reserved for pictograms and nature markers. Map ramp validated with the
     dataviz validator (ordinal, light surface #f5f4f6). */
  --accent: #243084;
  --cta: #243084;
  --cta-ink: #f5f4f6;
  --icon: #1a7a36;
  --field: #fccc18;
  --field-ink: #16181a;
  --field-soft: #4a3b06;
  --field-rule: rgba(22, 24, 26, .28);
  --tint: #fdf3cc;
  --q1: #e0a21a; --q2: #c4861a; --q3: #a36a14; --q4: #7d4f0e; --q5: #55340a;

  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "Fragment Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: 40px;
  --side: clamp(16px, 3.2vw, 48px);
  --max: 1520px;
  --bar: 72px;
  --ease: cubic-bezier(.19, 1, .22, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + 16px);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--ink) var(--paper);
  scrollbar-width: thin;
}

body {
  margin: 0;
  font: 400 17px/1.45 var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  /* the sheet drifts warm at the top-left, green at the bottom-right */
  caret-color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--seal); color: var(--ink); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 3px solid var(--paper); }

img { display: block; max-width: 100%; height: auto; }
.nw { white-space: nowrap; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(48px, 6.4vw, 92px); line-height: .96; letter-spacing: -.02em; }
h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1; letter-spacing: -.02em; }
p { margin: 0; text-wrap: pretty; }

.label {
  font: 400 11px/1.4 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 14px; font: 400 12px var(--mono); }
.skip:focus { left: 8px; }

/* ---------- token bar ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--bar);
  /* logo | menu centred on the page | button */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 0 max(var(--side), calc((100% - var(--max)) / 2 + var(--side)));
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.bar.is-scrolled { border-bottom-color: var(--hair); }

/* logo: the double roofline of the 2022 logo, as one ink line, beside the domain */
.logo {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.logo-mark { width: 48px; height: 33px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: square; stroke-linejoin: miter; }
.logo-word { font: 500 23px/1 var(--sans); letter-spacing: -.02em; }
.logo-tld { font-weight: 400; color: var(--ink-soft); }
/* same yellow highlighter as the page titles, on the name only */
.logo-name { background: linear-gradient(transparent 58%, var(--field) 58%, var(--field) 92%, transparent 92%); padding: 0 .05em; }
.logo:hover .logo-word { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.logo-lg { gap: 14px; }
.logo-lg .logo-mark { width: 64px; height: 44px; stroke-width: 2; }
.logo-lg .logo-word { font-size: 30px; }

.tokens { display: flex; gap: 40px; grid-column: 2; }
.bar .logo { grid-column: 1; justify-self: start; }
.bar > .btn { grid-column: 3; justify-self: end; }
.tokens a {
  font: 400 12px/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 0;
  background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.tokens a:hover, .tokens a[aria-current="true"] { background-size: 100% 1px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 52px;
  padding: 0 24px;
  font: 400 13px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  transition: background-color .1s ease, color .1s ease;
}
.btn .ico { width: 20px; height: 20px; transition: transform .6s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn-fill { background: var(--cta); color: var(--cta-ink); border-color: var(--cta); }
.btn-fill:hover { background: var(--paper); color: var(--cta); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 12px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; cursor: progress; }

.link { font: 400 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }

.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- plates: registration furniture ---------- */

.plate { position: relative; margin: 0; }
.frame { position: relative; }
.plate-img { position: relative; overflow: hidden; background: var(--hair); }
.plate-img img { width: 100%; height: 100%; object-fit: cover; }

.x { position: absolute; width: 22px; height: 22px; pointer-events: none; }
.x::before, .x::after { content: ""; position: absolute; background: var(--ink); }
.x::before { left: 50%; top: 0; width: 1px; height: 100%; }
.x::after { top: 50%; left: 0; height: 1px; width: 100%; }
.x-tl { left: -21px; top: -21px; }
.x-tr { right: -21px; top: -21px; }
.x-bl { left: -21px; bottom: -21px; }
.x-br { right: -21px; bottom: -21px; }

.plate figcaption { margin-top: 14px; }
.plate-title { font-size: 20px; letter-spacing: -.01em; margin-bottom: 6px; }
.credit { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; font: 400 12px/1.5 var(--mono); letter-spacing: .01em; color: var(--ink-soft); }
.credit a { color: var(--ink-soft); }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 7vh, 88px) var(--side) 48px;
  align-items: start;
}
.hero-text { grid-column: 1 / span 5; position: relative; padding-top: 12px; min-height: 100%; }
.hero h1 { max-width: 7.6em; }
.lede { margin-top: 36px; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.38; max-width: 20em; }
.actions { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px 36px; }

.plate-hero { grid-column: 6 / span 7; margin-top: 30px; }
.plate-hero .plate-img { aspect-ratio: 16 / 10.4; }
.plate-hero figcaption { margin-top: 16px; padding-left: 96px; }

/* the dot matrix: faint everywhere, lit around the pointer */
.dots {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: 96px;
  height: 168px;
  --mx: 50%;
  --my: 50%;
  background: radial-gradient(circle, var(--ink) 1.05px, transparent 1.4px) 0 0 / 24px 24px;
  opacity: .5;
}
.dots::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  -webkit-mask-image: radial-gradient(70px 70px at var(--mx) var(--my), #000, transparent);
  mask-image: radial-gradient(70px 70px at var(--mx) var(--my), #000, transparent);
  transform: scale(1.04);
  opacity: 0;
  transition: opacity .4s ease;
}
.dots.is-lit::after { opacity: 1; }

/* the lavender seal, half off the plate */
.stamp {
  position: absolute;
  left: -76px;
  bottom: -48px;
  width: 152px;
  height: 152px;
  z-index: 2;
  color: var(--ink);
  transition: transform .6s var(--ease);
}
.stamp:hover { transform: translateY(-4px); }
.stamp svg { width: 100%; height: 100%; overflow: visible; }
.stamp-disc { fill: var(--seal); }
.stamp-ring { transform-origin: 80px 80px; animation: turn 25s linear infinite; }
.stamp text { font: 400 13.4px var(--mono); letter-spacing: .19em; text-transform: uppercase; fill: var(--seal-ink); }
.stamp-arrow { fill: none; stroke: var(--seal-ink); stroke-width: 2; stroke-linecap: square; }
@keyframes turn { to { transform: rotate(360deg); } }

/* registration: a lavender ghost of the plate settles onto the photograph */
.register::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--seal);
  mix-blend-mode: multiply;
  opacity: 0;
  pointer-events: none;
}
.js .register::after { animation: register 1.4s var(--ease) .15s both; }
.js .plate-hero .x { animation: settle 1.4s var(--ease) .15s both; }
@keyframes register {
  0% { opacity: .85; transform: translate(14px, -10px); }
  60% { opacity: .35; }
  100% { opacity: 0; transform: translate(0, 0); }
}
@keyframes settle { from { translate: 6px -5px; opacity: .3; } to { translate: 0 0; opacity: 1; } }

/* ---------- facts row ---------- */

.facts {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--side);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.facts::before {
  content: "";
  grid-column: 1 / -1;
  height: 1px;
  background: var(--hair);
  margin-bottom: 32px;
}
.fact { display: flex; gap: 22px; padding: 0 28px; border-left: 1px dashed var(--hair); }
.fact:nth-of-type(1) { border-left: 0; padding-left: 0; }
.fact .ico { flex: none; width: 40px; height: 40px; stroke-width: 1.25; color: var(--icon); }
.fact p:last-child { margin-top: 8px; font-size: 16px; line-height: 1.4; max-width: 18em; }

/* ---------- sheets (sections) ---------- */

.sheet {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(96px, 13vw, 176px) var(--side) 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}
.sheet-head { grid-column: 1 / span 5; display: grid; gap: 22px; align-content: start; }
.sheet-head p { max-width: 34em; color: var(--ink); }
.sheet-head h2 { margin-bottom: 10px; }
.source { font: 400 12px/1.6 var(--mono); letter-spacing: .01em; color: var(--ink-soft); max-width: 80ch; }

/* prix */
.sheet-prix .sheet-head { position: sticky; top: calc(var(--bar) + 48px); align-self: start; }
.sheet-prix .sheet-body { grid-column: 7 / span 6; display: grid; gap: 80px; }
.sheet.sheet-prix > .sheet-body { gap: 80px; }
.sheet-prix .table-wrap + .source { margin-top: -56px; }

.table-wrap { overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.data caption { text-align: left; padding-bottom: 16px; }
.data th, .data td { text-align: right; padding: 14px 0 14px 18px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.data th:first-child, .data td:first-child { text-align: left; padding-left: 0; }
.data tbody th { white-space: normal; }
.data thead th { font: 400 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); border-bottom-color: var(--ink); }
.data tbody th { font-weight: 400; }
.data tbody td, .data tbody th { font-size: 18px; }
.data tbody tr:first-child td, .data tbody tr:first-child th { font-weight: 500; }
.data-agate tbody td { font: 400 15px/1.3 var(--sans); padding-top: 10px; padding-bottom: 10px; }
.data-agate tbody tr:first-child td { font-weight: 400; }

.cmp { margin: 0; }
.cmp .label { display: block; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.cmp-list { list-style: none; margin: 0; padding: 0; }
.cmp-row {
  display: grid;
  grid-template-columns: 10.5em 1fr auto;
  grid-template-areas: "name bar val" "name meta meta";
  column-gap: 20px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
}
.cmp-name { grid-area: name; font-size: 18px; }
.cmp-bar { grid-area: bar; height: 9px; position: relative; }
.cmp-bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--hair); }
.cmp-row.is-here .cmp-bar::before { background: var(--accent); }
.cmp-row.is-here .cmp-name { font-weight: 500; }
.cmp-val { grid-area: val; font: 400 18px/1 var(--sans); font-variant-numeric: tabular-nums; }
.cmp-val small { font-size: 11px; color: var(--ink-soft); }
.cmp-meta { grid-area: meta; font: 400 12px/1.4 var(--mono); letter-spacing: .01em; color: var(--ink-soft); margin-top: 6px; }

/* quartiers index */
.index-frame { grid-column: 7 / span 6; }
.sheet-quartiers .index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.index-item {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 132px;
  padding: 22px 20px 22px 0;
  border-bottom: 1px solid var(--hair);
}
.index-item:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--hair); }
.index-name { font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.015em; line-height: 1.05; }
.index-item .label { color: var(--ink-soft); }
.index-item.is-salle { box-shadow: inset 0 3px 0 var(--accent); background: var(--tint); padding-left: 18px; }
.index-item.is-salle .index-name { font-weight: 500; }
.index-item.is-salle .label { color: var(--ink); }

/* paris */
.sheet-paris .plate-wide { grid-column: 1 / -1; }
.plate-wide .plate-img { aspect-ratio: 21 / 8; }
.paris-text { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: 72px; padding: clamp(48px, 6vw, 88px) 0; background: var(--field); color: var(--field-ink); box-shadow: 0 0 0 100vmax var(--field); clip-path: inset(0 -100vmax); }
.paris-text .trajets { border-top-color: var(--field-ink); }
.paris-text .trajets li { border-bottom-color: var(--field-rule); }
.paris-text .t-to, .paris-text .trajets .label, .paris-text .source { color: var(--field-soft); }
/* decorative white pictograms in the yellow band, under the text */
.paris-icons { grid-column: 1 / span 5; display: flex; flex-wrap: wrap; gap: 28px 40px; margin-top: 56px; align-self: start; }
.paris-icons .ico { width: 64px; height: 64px; stroke: #ffffff; stroke-width: 1.4; }
.paris-text ::selection { background: var(--field-ink); color: var(--field); }
.paris-text h2 { grid-column: 1 / span 5; }
.paris-text > p:first-of-type { grid-column: 1 / span 5; margin-top: 24px; max-width: 32em; }
.trajets { grid-column: 7 / span 6; grid-row: 1 / span 3; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.trajets li {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 8.5em;
  grid-template-areas: "from to time" "from to mode";
  column-gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hair);
}
.t-from { grid-area: from; font-size: 18px; }
.t-to { grid-area: to; font-size: 18px; color: var(--ink-soft); }
.t-to .ico { width: 16px; height: 16px; vertical-align: -2px; margin-right: 10px; }
.t-time { grid-area: time; font: 400 17px/1.2 var(--sans); text-align: right; font-variant-numeric: tabular-nums; }
.trajets .label { grid-area: mode; text-align: right; color: var(--ink-soft); margin-top: 4px; }
.paris-text .source { grid-column: 7 / span 6; margin-top: 14px; }

/* vivre */
.sheet .pair { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 5fr; gap: var(--gutter); margin-top: 72px; align-items: start; }
.sheet .pair .plate:first-child .plate-img { aspect-ratio: 3 / 2; }
.sheet .plate-low { margin-top: 160px; }
.sheet .plate-low .plate-img { aspect-ratio: 4 / 5; }

/* auteur */
.sheet-auteur { align-items: start; }
.auteur-head { grid-column: 1 / span 5; display: grid; gap: 48px; align-content: start; }
.dots-static { position: relative; right: auto; bottom: auto; width: 168px; height: 96px; opacity: .45; }
.dots-static::after { display: none; }
.auteur-text { grid-column: 7 / span 6; display: grid; gap: 22px; }
.sheet-auteur p { font-size: clamp(20px, 1.7vw, 26px); line-height: 1.38; max-width: 30em; }

/* contact */
.form { grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.field { display: grid; gap: 10px; }
.field-wide { grid-column: 1 / -1; }
.field label { font: 400 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.opt { color: var(--ink-soft); letter-spacing: .08em; text-transform: none; }
input, select, textarea {
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 0;
  padding: 14px 16px;
  width: 100%;
  transition: border-color .15s ease;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2316181a' stroke-width='1.25'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
textarea { resize: vertical; min-height: 140px; }
input::placeholder, textarea::placeholder { color: #6b6e72; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-soft); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #a12a2a; box-shadow: inset 0 0 0 1px #a12a2a; }
.consent { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.4; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--ink); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 8px; }
.form-status { font: 400 13px/1.5 var(--mono); letter-spacing: .01em; }
.form-status.is-error { color: #a12a2a; }
.form.is-sent .field, .form.is-sent .consent, .form.is-sent button { display: none; }
.form.is-sent .form-status { font: 400 22px/1.35 var(--sans); letter-spacing: -.01em; }

/* text pages */
.sheet-text { display: block; max-width: 760px; }
.sheet-text h1 { margin-bottom: 48px; }
.sheet-text h2 { font-size: 24px; margin: 40px 0 12px; }
.sheet-text p { max-width: 65ch; margin-bottom: 14px; }

/* ---------- inner pages ---------- */

.link { display: inline-flex; align-items: center; gap: 10px; }
.link .ico { width: 18px; height: 18px; color: var(--icon); }

.sheet-page-head { padding-top: clamp(40px, 7vh, 88px); align-items: start; }
.sheet-page-head .sheet-head { gap: 28px; }
.sheet-page-head .lede { margin-top: 0; }
.crumbs { font: 400 12px/1.4 var(--mono); color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.page-plate { grid-column: 7 / span 6; margin-top: 30px; }
.page-plate .plate-img { aspect-ratio: 16 / 10; }

.sheet > .sheet-body { grid-column: 7 / span 6; display: grid; gap: 24px; align-content: start; }
.prose p { max-width: 36em; }
.prose p + p { margin-top: 2px; }

.pop { margin: 0; }
.pop .label { display: block; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.pop-list {
  list-style: none;
  margin: 0;
  padding: 36px 0 0;
  height: 300px;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  border-bottom: 1px solid var(--ink);
}
.pop-bar { position: relative; height: var(--h); background: var(--hair); }
.pop-bar.is-last { background: var(--accent); }
.pop-n { position: absolute; bottom: calc(100% + 6px); left: 50%; translate: -50% 0; font: 400 11px/1 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pop-y { position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 0; font: 400 11px/1 var(--mono); color: var(--ink-soft); }
.pop + .source { margin-top: 22px; }

.list-hair { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.list-hair li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.list-hair li span:first-child { font-size: 18px; }
.list-hair li span:last-child { color: var(--ink-soft); }

.callout { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.38; max-width: 26em; padding-top: 22px; border-top: 1px solid var(--ink); }
.callout .link { margin-top: 18px; display: flex; font-size: 13px; }

/* ---------- prix par quartier ---------- */

.index-name { text-decoration: none; }
a.index-name:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.index-price { font-size: 16px; font-variant-numeric: tabular-nums; color: var(--ink); }

.map-plate .frame { background: var(--paper); }
.map { display: block; width: 100%; height: auto; }
.map .sections { fill: none; stroke: var(--hair); stroke-width: 1; vector-effect: non-scaling-stroke; }
.map .dot { stroke: var(--paper); stroke-width: 1.5; transition: r .2s var(--ease); }
.map .dot:hover { r: 9; }
.q1 { fill: var(--q1); background: var(--q1); }
.q2 { fill: var(--q2); background: var(--q2); }
.q3 { fill: var(--q3); background: var(--q3); }
.q4 { fill: var(--q4); background: var(--q4); }
.q5 { fill: var(--q5); background: var(--q5); }
.map-label { font: 500 15px var(--sans); fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; pointer-events: none; }
.map-label.is-salle { font-weight: 700; }
.legend { list-style: none; margin: 10px 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; font-variant-numeric: tabular-nums; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend .sw { width: 14px; height: 14px; border-radius: 50%; }

.sheet-wide .sheet-head { grid-column: 1 / span 6; }
.sheet.sheet-wide > .sheet-body { grid-column: 1 / -1; margin-top: 56px; }
.data-q .c-bar { position: relative; min-width: 9.5em; }
.data-q .bar { display: block; height: 5px; margin-bottom: 6px; margin-left: auto; width: var(--w); background: var(--q3); }
.data-q tr.is-salle th { font-weight: 600; }
.data-q tr.is-salle .bar { background: var(--accent); }

/* ---------- activités ---------- */

.tip { display: grid; gap: 8px; padding: 18px 20px 20px; background: var(--tint); box-shadow: inset 3px 0 0 var(--icon); max-width: 36em; }
.tip .label { color: var(--icon); }
.sheet-head .tip { margin: 6px 0; }
.pair-rev { grid-template-columns: 5fr 7fr; }
.pair-rev > .plate { grid-column: 2; margin-top: -120px; }
.mosaic { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px var(--gutter); margin-top: 88px; }
.mosaic .plate-img { aspect-ratio: 3 / 2; }
.mosaic .plate:nth-child(even) { margin-top: 96px; }

/* ---------- footer ---------- */

.foot {
  max-width: var(--max);
  margin: clamp(120px, 15vw, 200px) auto 0;
  padding: 48px var(--side) 64px;
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 40px;
  font-size: 14px;
  line-height: 1.5;
}
.foot-brand { grid-column: 1 / span 4; display: grid; gap: 20px; align-content: start; }
.foot-brand p { max-width: 24em; }
.foot-credits { grid-column: 5 / span 6; }
.foot-links { grid-column: 11 / span 2; }
.foot h2 { margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-credits p { margin-bottom: 12px; color: var(--ink-soft); }
.foot-credits ul { font: 400 12px/1.6 var(--mono); letter-spacing: .01em; color: var(--ink-soft); }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  :root { --gutter: 28px; }
  .tokens { gap: 22px; }
  .tokens a { letter-spacing: .1em; }
  .hero-text { grid-column: 1 / span 6; }
  .plate-hero { grid-column: 7 / span 6; }
  .stamp { width: 128px; height: 128px; left: -64px; }
  .fact { padding: 0 18px; gap: 14px; }
  .fact .ico { width: 32px; height: 32px; }
}

@media (max-width: 960px) {
  .tokens { display: none; }
  .bar { grid-template-columns: 1fr auto; gap: 16px; }
  .bar > .btn { grid-column: 2; }
  .hero { padding-top: 32px; }
  .hero-text, .plate-hero { grid-column: 1 / -1; }
  .hero h1 { max-width: none; }
  .plate-hero { margin-top: 72px; margin-left: 21px; margin-right: 21px; }
  .dots { display: none; }
  .stamp { left: auto; right: -14px; bottom: auto; top: -64px; }
  .plate-hero figcaption { padding-left: 0; }
  .plate-hero .plate-img { aspect-ratio: 4 / 3; }
  .sheet-prix .sheet-head { position: static; }
  .sheet-prix .source { margin-top: 0; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .fact:nth-of-type(3) { border-left: 0; padding-left: 0; }
  .sheet-head, .sheet-prix .sheet-body, .index-frame, .form,
  .auteur-head, .auteur-text { grid-column: 1 / -1; }
  .sheet-prix .sheet-body, .index-frame, .form, .auteur-text { margin-top: 48px; }
  .index-frame { margin-left: 21px; margin-right: 21px; }
  .dots-static { display: none; }
  .sheet > .sheet-body { grid-column: 1 / -1; margin-top: 40px; }
  .page-plate { grid-column: 1 / -1; margin: 56px 21px 0; }
  .pop-list { height: 240px; gap: 6px; }
  .pop-n { font-size: 9.5px; }
  .pop-bar:nth-child(even) .pop-n { bottom: calc(100% + 18px); }
  .list-hair li { grid-template-columns: 1fr; gap: 4px; }
  .map-label { font-size: 30px; stroke-width: 9px; }
  .pair-rev > .plate { grid-column: 1; margin-top: 0; }
  .mosaic { grid-template-columns: 1fr; gap: 56px; margin: 56px 21px 0; }
  .mosaic .plate:nth-child(even) { margin-top: 0; }
  .map .dot { r: 9; }
  .paris-text h2, .paris-text > p:first-of-type, .trajets, .paris-text .source { grid-column: 1 / -1; grid-row: auto; }
  .trajets { margin-top: 40px; }
  .paris-icons { grid-column: 1 / -1; margin-top: 36px; gap: 24px 28px; }
  .paris-icons .ico { width: 48px; height: 48px; }
  .plate-wide { margin: 0 21px; }
  .plate-wide .plate-img { aspect-ratio: 16 / 9; }
  .sheet .pair { grid-template-columns: 1fr; gap: 64px; margin-left: 21px; margin-right: 21px; }
  .sheet .plate-low { margin-top: 0; }
  .sheet .plate-low .plate-img { aspect-ratio: 3 / 2; }
  .foot-brand, .foot-credits, .foot-links { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  :root { --bar: 64px; }
  .logo { gap: 8px; }
  .bar .btn-small { min-height: 38px; padding: 0 12px; font-size: 11px; letter-spacing: .08em; white-space: nowrap; }
  .data tbody th { white-space: normal; }
  .logo-mark { width: 36px; height: 25px; }
  .logo-word { font-size: 18px; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-left: 0; padding: 0 0 22px; border-bottom: 1px dashed var(--hair); }
  .fact:last-child { border-bottom: 0; }
  .stamp { width: 112px; height: 112px; top: -56px; right: -10px; }
  .sheet-quartiers .index { grid-template-columns: 1fr; }
  .index-item, .index-item:nth-child(even) { padding-left: 0; border-left: 0; min-height: 0; }
  .cmp-row { grid-template-columns: 1fr auto; grid-template-areas: "name val" "bar bar" "meta meta"; row-gap: 8px; }
  .trajets li { grid-template-columns: 1fr auto; grid-template-areas: "from time" "to mode"; }
  .form { grid-template-columns: 1fr; }
  .data tbody td, .data tbody th { font-size: 16px; }
  .data .c-opt { display: none; }
  .credit { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stamp-ring, .js .register::after, .js .plate-hero .x { animation: none; }
  .stamp, .btn .ico, .tokens a { transition: none; }
}

.year-note { display: block; font: 400 12px/1.2 var(--mono); color: var(--ink-soft); letter-spacing: .02em; }

/* key words in page titles: a yellow highlighter band behind black text */
.hl {
  background: linear-gradient(transparent 60%, var(--field) 60%, var(--field) 90%, transparent 90%);
  padding: 0 .04em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
