/*
 * Bonuit, direction "Quartier" with the night fade (Tom, 2026-09-14),
 * rebuilt in plain CSS from the React plugin (GEN-24, 2026-09-23).
 * Palette: night, paper, map blue, brick (the one accent), ink, dim, line.
 */

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atkinson-400.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/atkinson-700.woff2") format("woff2");
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("fonts/sora.woff2") format("woff2");
}

:root {
  --night: #1e2a3a;
  --paper: #faf7f0;
  --map: #3e5c76;
  --brick: #c4553b;
  --ink: #1f1f1d;
  --dim: #6b6b66;
  --line: #d9d2c3;
  --sans: "Atkinson Hyperlegible", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", "Segoe UI", Helvetica, Arial, sans-serif;
  --t-1: 1.25rem;
  --t-2: 1.5625rem;
  --t-3: 1.953rem;
  --t-4: 2.441rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-size: 17px;
}

@media (min-width: 768px) {
  html {
    font-size: 18px;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

main {
  flex: 1;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.measure {
  max-width: 62ch;
}

.dim {
  color: var(--dim);
}

.hover-line {
  text-decoration: none;
}

.hover-line:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- type ---------------------------------------------------------------- */
.t-display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

.t-title {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-wrap: balance;
}

.t-name {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
}

.size-3 {
  font-size: var(--t-3);
}

.size-4 {
  font-size: var(--t-4);
}

.size-1 {
  font-size: var(--t-1);
}

/* --- header -------------------------------------------------------------- */
.site-header {
  background: var(--night);
  color: var(--paper);
}

.header-bar {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  white-space: nowrap;
  text-decoration: none;
}

.brand-name {
  font-size: 1.5rem;
}

.brand-line {
  display: none;
  font-size: 0.875rem;
  color: rgba(250, 247, 240, 0.7);
}

.nav-main {
  display: none;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
}

.nav-main a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-main a:not(.btn):hover,
.nav-main a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-bars {
  display: block;
  width: 1.25rem;
}

.menu-bars span {
  display: block;
  height: 2px;
  background: currentColor;
}

.menu-bars span + span {
  margin-top: 0.25rem;
}

.nav-mobile {
  border-top: 1px solid rgba(250, 247, 240, 0.2);
  padding: 0.75rem 1.25rem;
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile a {
  display: block;
  padding: 0.5rem 0;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-mobile a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 768px) {
  .nav-main {
    display: flex;
  }

  .nav-phone,
  .nav-mobile {
    display: none !important;
  }
}

@media (min-width: 1280px) {
  .brand-line {
    display: inline;
  }
}

/* --- the map: the first screen ------------------------------------------
 * The picture keeps its crop's aspect ratio so the pins, placed in percent
 * of it, stay true. The fade comes from the left on wide screens (the
 * words sit on it), from the top on phones.
 */
.hero {
  background: var(--night);
}

.hero-wide {
  display: none;
  position: relative;
  aspect-ratio: 1920 / 900;
  overflow: hidden;
}

.hero-narrow {
  display: block;
}

@media (min-width: 1024px) {
  .hero-wide {
    display: block;
  }

  .hero-narrow {
    display: none;
  }
}

.fill {
  position: absolute;
  inset: 0;
}

.map-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.map-tall {
  position: relative;
  aspect-ratio: 1080 / 1440;
  overflow: hidden;
}

.map-fade-wide {
  background: linear-gradient(90deg, rgba(30, 42, 58, 0.98) 0%, rgba(30, 42, 58, 0.95) 30%, rgba(30, 42, 58, 0.45) 52%, rgba(30, 42, 58, 0) 66%);
}

.map-fade-top {
  background: linear-gradient(180deg, rgba(30, 42, 58, 0.92) 0%, rgba(30, 42, 58, 0.6) 12%, rgba(30, 42, 58, 0) 24%);
}

.map-fade-tall {
  background: linear-gradient(180deg, rgba(30, 42, 58, 0.98) 0%, rgba(30, 42, 58, 0.92) 30%, rgba(30, 42, 58, 0.3) 46%, rgba(30, 42, 58, 0) 56%);
}

.hero-words-wide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-words-wide .wrap {
  width: 100%;
  padding-block: 2.5rem;
}

.hero-words-wide .words {
  max-width: 34rem;
}

@media (min-width: 1024px) {
  .hero-words-wide .wrap {
    padding-block: 3.5rem;
  }
}

.words {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .words {
    gap: 1.25rem;
  }
}

.hero-title {
  color: var(--paper);
  font-size: 2.2rem;
  max-width: 14ch;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.7rem;
  }
}

@media (min-width: 1280px) {
  .hero-title {
    font-size: 3.2rem;
  }
}

.hero-line {
  color: rgba(250, 247, 240, 0.85);
  max-width: 44ch;
  line-height: 1.625;
}

.hero-price {
  color: var(--paper);
  font-size: 1.05rem;
}

.hero-price-amount {
  font-size: 1.6rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-narrow-words {
  padding: 2rem 1.25rem 1.5rem;
}

.osm {
  position: absolute;
  right: 0.5rem;
  bottom: 0.25rem;
  font-size: 0.65rem;
  color: rgba(31, 31, 29, 0.7);
}

.map-tall .osm {
  font-size: 0.6rem;
}

.pin {
  position: absolute;
  transform: translate(0, -50%);
  margin-left: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  background: #fff;
  border: 1.5px solid var(--map);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(31, 31, 29, 0.22);
}

.pin-left {
  transform: translate(-100%, -50%);
  margin-left: -0.4rem;
}

.pin-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--map);
  flex: none;
}

.pin-home {
  margin-left: 0;
  border-color: var(--brick);
  font-size: 0.85rem;
}

.pin-home .pin-dot,
.pin-far .pin-dot {
  background: var(--brick);
}

.pin-far {
  border-color: var(--brick);
}

/* the building's marker, under its label */
.home-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--brick);
  border: 4px solid #fff;
  box-shadow: 0 3px 10px rgba(31, 31, 29, 0.4);
}

/* the phone's numbered dots, and the legend's numbers under the map */
.pin-num,
.legend-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--map);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}

.pin-num {
  position: absolute;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(31, 31, 29, 0.28);
}

.pin-num-far,
.legend-num-far {
  border-color: var(--brick);
  color: var(--brick);
}

.legend-num {
  flex: none;
}

.legend {
  padding: 1rem 1.25rem 1.5rem;
  display: grid;
  row-gap: 0.375rem;
  font-size: 0.9rem;
  color: rgba(250, 247, 240, 0.9);
}

.legend li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

/* the line over the map */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(250, 247, 240, 0.1);
  border: 1.5px solid rgba(250, 247, 240, 0.45);
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.pill-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--brick);
  flex: none;
}

/* --- buttons and fields -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.btn-brick {
  background: var(--brick);
  color: #fff;
}

.btn-brick:hover {
  background: #ad4a33;
}

.btn-ink {
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-ink:hover {
  background: rgba(31, 31, 29, 0.06);
}

.btn-paper {
  border: 1.5px solid var(--paper);
  color: var(--paper);
  background: transparent;
}

.btn-paper:hover {
  background: rgba(250, 247, 240, 0.12);
}

.btn-small {
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
}

.btn:focus-visible,
.field:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brick);
  outline-offset: 3px;
}

.field {
  display: block;
  width: 100%;
  border: 1.5px solid rgba(62, 92, 118, 0.55);
  border-radius: 0;
  background: #fff;
  padding: 0.65rem 0.8rem;
  font: inherit;
  color: var(--ink);
}

.field:focus {
  outline: 3px solid var(--brick);
  outline-offset: 2px;
  border-color: var(--map);
}

textarea.field {
  min-height: 140px;
  resize: vertical;
}

.form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form label > span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.form-error {
  font-size: 0.875rem;
  color: #b91c1c;
}

.form-sent {
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.5rem;
}

.form-sent p:first-child {
  font-size: 1.125rem;
  font-weight: 700;
}

.form-sent p + p {
  margin-top: 0.5rem;
  opacity: 0.8;
}

/* a section opens with a rule; the apartment rows are ruled too */
.rule {
  border-top: 1px solid var(--line);
}

/* --- sections ------------------------------------------------------------ */
.section {
  padding-top: 4rem;
  scroll-margin-top: 4rem;
}

.section-first {
  padding-top: 3rem;
  scroll-margin-top: 4rem;
}

.page {
  padding-top: 3.5rem;
}

.opened {
  padding-top: 2rem;
}

.grid-12 {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .grid-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }

  .col-5 {
    grid-column: span 5 / span 5;
  }

  .col-7 {
    grid-column: span 7 / span 7;
  }
}

.cols-3 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* the apartments */
.apt-list {
  margin-top: 1.25rem;
}

.apt {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 640px) and (max-width: 767px), (min-width: 1024px) {
  .apt {
    grid-template-columns: 9rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
  }
}

.apt h3 {
  font-size: 1.15rem;
}

.apt p {
  font-size: 0.95rem;
  color: var(--dim);
}

.apt-links {
  display: flex;
  gap: 0.5rem;
}

/* the Airbnb and Booking.com buttons stand off the page (client, 2026-10-05) */
.apt-links .btn {
  box-shadow: 0 3px 10px rgba(31, 31, 29, 0.28);
}

.small-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--dim);
}

/* the owner's line of the moment */
.notice {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--brick);
  background: #fff;
  font-size: 0.95rem;
  line-height: 1.625;
}

.photos {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.photo {
  width: 100%;
  object-fit: cover;
}

.ratio-3-2 {
  aspect-ratio: 3 / 2;
}

.ratio-1 {
  aspect-ratio: 1 / 1;
}

.ratio-3-4 {
  aspect-ratio: 3 / 4;
}

.ratio-4-5 {
  aspect-ratio: 4 / 5;
}

@media (min-width: 768px) {
  .md-ratio-5-4 {
    aspect-ratio: 5 / 4;
  }
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.pair {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.proof {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.75rem;
  row-gap: 0.25rem;
}

.proof-score {
  font-size: 2rem;
  color: var(--map);
}

.proof-line {
  font-size: 0.9rem;
  color: var(--dim);
}

.step-num {
  font-size: var(--t-3);
  color: var(--brick);
}

.step h3,
.block h3 {
  font-size: var(--t-1);
}

.step h3 {
  margin-top: 0.5rem;
}

.step p:last-child,
.block p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.625;
}

.narrow {
  max-width: 42rem;
}

/* --- the about and contact pages ----------------------------------------- */
.prose-site p {
  line-height: 1.65;
}

.prose-site a {
  color: var(--map);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.facts {
  margin-top: 2rem;
  font-size: 0.95rem;
}

.facts > div + div {
  margin-top: 1.25rem;
}

.facts dt {
  font-weight: 700;
}

.facts dd {
  margin-top: 0.25rem;
}

.facts .phone-big {
  font-size: 1.3rem;
}

.week {
  margin-top: 0.5rem;
  display: grid;
  row-gap: 0.125rem;
}

.week li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  column-gap: 0.75rem;
}

.week li > span:first-child {
  color: var(--ink);
}

.week [data-content-kind="hours"] span + span::before {
  content: ", ";
}

/* --- footer -------------------------------------------------------------- */
.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  padding-top: 3rem;
  padding-bottom: 3rem;
  display: grid;
  gap: 2.5rem;
  font-size: 0.95rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.footer-grid address {
  font-style: normal;
}

.footer-list li + li {
  margin-top: 0.25rem;
}

.footer-bottom p {
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--dim);
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.bold {
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}

/* tablets: the phone's tall map, held to a readable width */
@media (min-width: 640px) and (max-width: 1023px) {
  .hero-narrow-words,
  .map-tall,
  .legend {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
  }
}

/* --- "Arriver" and "Le quartier" on one night-blue band, the map faint behind (client, GEN-591, 2026-10-06) */
.night-band {
  margin-top: 4rem;
  padding-bottom: 4.5rem;
  background: linear-gradient(rgba(30, 42, 58, 0.94), rgba(30, 42, 58, 0.97)), url("photos/carte-large.webp") center / cover;
  color: var(--paper);
}

.night-band .section {
  padding-top: 3.5rem;
}

.night-band .rule {
  border-top-color: rgba(250, 247, 240, 0.16);
}

.night-band p {
  color: rgba(250, 247, 240, 0.82);
}

.night-band h2,
.night-band h3 {
  color: var(--paper);
}

/* the three steps: big numbers in a ring, on one dotted line */
.night-steps {
  position: relative;
}

.night-steps .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 2px solid var(--brick);
  background: var(--night);
  color: #e98b72;
  font-size: 1.6rem;
}

.night-steps h3 {
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .night-steps::before {
    content: "";
    position: absolute;
    top: 1.75rem;
    left: 3.5rem;
    right: calc((100% - 4rem) / 3);
    border-top: 2px dashed rgba(250, 247, 240, 0.3);
  }
}

/* the neighbourhood: the figure first, big */
.night-card {
  padding: 1.5rem;
  border-radius: 14px;
  background: rgba(250, 247, 240, 0.06);
  border: 1px solid rgba(250, 247, 240, 0.12);
}

.night-band .block .night-figure {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 700;
  color: #e98b72;
}
