/* Maison de bourg à Matha — one-page sales site. Colours are taken from the house itself:
   limestone walls, grey-blue shutters, roof tiles, the Atlantic. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/fraunces-latin-wght-normal.woff2) format("woff2-variations"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(fonts/fraunces-latin-wght-italic.woff2) format("woff2-variations"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/manrope-latin-wght-normal.woff2) format("woff2-variations"); }

:root {
  color-scheme: light;
  --stone: #f5f0e7;
  --stone-2: #ebe3d4;
  --paper: #fffdf8;
  --ink: #1d2629;
  --ink-2: #4a5559;
  --line: #d9cfbd;
  --shutter: #5d7686;
  --shutter-deep: #3e5563;
  --tile: #b85c38;
  --sea: #2c6a80;
  --radius: 14px;
  --gutter: 16px;
  --max: 1180px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--stone); color: var(--ink); font: 400 17px/1.6 var(--sans);
  overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* one language at a time: <span data-l="fr"> / <span data-l="en"> */
html[lang="fr"] [data-l="en"], html[lang="en"] [data-l="fr"] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px;
  border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; }

/* ---- header ---- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 40; transition: background .25s, box-shadow .25s; }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.top.solid { background: rgba(245, 240, 231, .94); box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.brand { font: 600 19px/1 var(--serif); text-decoration: none; color: #fff; white-space: nowrap;
  letter-spacing: .01em; }
.brand em { font-style: italic; font-weight: 400; }
.top.solid .brand { color: var(--ink); }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { color: rgba(255,255,255,.92); text-decoration: none; font-size: 14px; font-weight: 600; }
.top.solid .nav a { color: var(--ink-2); }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 980px) { .nav { display: flex; } }
.top-actions { display: flex; gap: 8px; margin-left: auto; align-items: center; }
@media (min-width: 980px) { .top-actions { margin-left: 8px; } }
.lang { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.55); background: transparent; color: #fff; font: 700 13px/1 var(--sans);
  cursor: pointer; }
.top.solid .lang { border-color: var(--line); color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 10px 20px; border-radius: 999px; font: 700 15px/1.2 var(--sans); text-align: center; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-main { background: var(--tile); color: #fff; }
.btn-main:hover { background: #a24f2e; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; background: rgba(0,0,0,.12); }
.btn-ghost:hover { background: rgba(0,0,0,.25); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--stone); }
.top .btn-call { min-height: 38px; padding: 0 14px; font-size: 14px; }
.top .btn-call .txt { display: none; }
@media (min-width: 560px) { .top .btn-call .txt { display: inline; } }

/* ---- hero ---- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff;
  background: #2b2a26; overflow: hidden; }
.hero-media, .hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,22,22,.55) 0%, rgba(20,22,22,0) 22%, rgba(20,22,22,0) 42%, rgba(20,22,22,.78) 100%); }
@media (max-width: 719px) {
  .hero::after { background: linear-gradient(180deg, rgba(20,22,22,.5) 0%, rgba(20,22,22,0) 18%, rgba(20,22,22,.25) 36%, rgba(20,22,22,.85) 70%); }
}
.hero .wrap { position: relative; z-index: 1; padding-top: 110px; padding-bottom: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1.2 var(--sans);
  letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { font: 500 clamp(36px, 7vw, 76px)/1.02 var(--serif); letter-spacing: -.015em; margin: 14px 0 16px;
  max-width: 15ch; text-wrap: balance; }
.hero h1 em { font-weight: 400; }
.hero .lede { font-size: clamp(17px, 2.2vw, 20px); max-width: 46ch; margin: 0 0 26px; color: rgba(255,255,255,.92); }
.hero-foot { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: flex-end; justify-content: space-between; }
.price { display: grid; gap: 2px; }
.price strong { font: 600 clamp(30px, 4.4vw, 42px)/1 var(--serif); }
.price small { font-size: 13.5px; color: rgba(255,255,255,.86); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.clip-note { position: absolute; right: max(var(--gutter), env(safe-area-inset-right)); top: 76px; z-index: 1;
  font-size: 12px; color: rgba(255,255,255,.85); display: inline-flex; gap: 6px; align-items: center; }

/* ---- facts ---- */
.facts { background: var(--paper); border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0; padding: 22px 0; display: grid; gap: 18px 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .facts ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .facts ul { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.facts li { display: flex; gap: 12px; align-items: center; min-width: 0; }
.facts .i { width: 26px; height: 26px; color: var(--shutter); stroke-width: 1.5; }
.facts b { display: block; font: 600 19px/1.1 var(--serif); }
.facts span { font-size: 13.5px; color: var(--ink-2); line-height: 1.3; }

/* ---- sections ---- */
section { scroll-margin-top: 64px; }
.sec { padding: 72px 0; }
@media (min-width: 900px) { .sec { padding: 104px 0; } }
.kicker { font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--tile); margin: 0 0 14px; }
h2 { font: 500 clamp(30px, 4.6vw, 50px)/1.08 var(--serif); letter-spacing: -.01em; margin: 0 0 20px; text-wrap: balance; }
h2 em { font-weight: 400; color: var(--shutter-deep); }
h3 { font: 600 26px/1.15 var(--serif); margin: 0 0 12px; }
p { margin: 0 0 16px; }
.muted { color: var(--ink-2); }

.intro { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .intro { grid-template-columns: 1.05fr .95fr; gap: 64px; } }
.intro p { font-size: 18.5px; }
.intro figure { margin: 0; }
.intro .clip { aspect-ratio: 16 / 9; }
figcaption { font-size: 13px; color: var(--ink-2); margin-top: 10px; }

/* ---- rooms ---- */
.rooms { background: var(--paper); }
.room { display: grid; gap: 22px; align-items: center; margin-top: 56px; }
.room:first-of-type { margin-top: 36px; }
@media (min-width: 900px) {
  .room { grid-template-columns: 1.35fr 1fr; gap: 56px; margin-top: 88px; }
  .room.flip { grid-template-columns: 1fr 1.35fr; }
  .room.flip .clip { order: 2; }
}
.clip { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--stone-2);
  aspect-ratio: 16 / 9; }
.clip video, .clip img { width: 100%; height: 100%; object-fit: cover; }
.clip-btn { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; display: grid; place-items: center; background: rgba(20,22,22,.55); color: #fff; cursor: pointer; }
.clip-btn:hover { background: rgba(20,22,22,.75); }
.tag { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; background: rgba(255,253,248,.92); color: var(--ink);
  font: 600 12px/1.2 var(--sans); }
.tag .i { width: 14px; height: 14px; }
.room-num { font: 400 15px/1 var(--serif); font-style: italic; color: var(--tile); margin: 0 0 10px; }
.room ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.room li { font-size: 13.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--stone);
  border: 1px solid var(--line); }

/* ---- gallery ---- */
/* 2 wide tiles (2x2) + 8 small ones fill 2 or 4 columns with no gap; rows keep the photos' 3:2 */
.gallery { --cols: 2; --gap: 10px; display: grid; gap: var(--gap); grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: calc((min(100vw, var(--max) + 2 * var(--gutter)) - 2 * var(--gutter) - (var(--cols) - 1) * var(--gap)) / var(--cols) * 2 / 3);
  grid-auto-flow: dense; margin-top: 32px; }
@media (min-width: 900px) { .gallery { --cols: 4; --gap: 14px; } }
.gallery button { position: relative; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in;
  background: var(--stone-2); }
.gallery button.wide { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery .tag { left: 8px; top: 8px; font-size: 11.5px; padding: 4px 9px; }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin-top: 18px; max-width: 70ch; }
.note .i { margin-top: 3px; color: var(--tile); }

/* ---- lightbox ---- */
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(12,14,14,.94); display: grid;
  grid-template-rows: 1fr auto; padding: max(12px, env(safe-area-inset-top)) 0 max(12px, env(safe-area-inset-bottom)); }
.lb figure { margin: 0; display: grid; place-items: center; min-height: 0; padding: 48px 8px 0; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lb figcaption { color: #eee; text-align: center; padding: 10px 16px 0; font-size: 14px; }
.lb button { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid;
  place-items: center; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.lb button:hover { background: rgba(255,255,255,.24); }
.lb .lb-x { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
.lb .lb-prev { left: max(10px, env(safe-area-inset-left)); top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: max(10px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); }

/* ---- around ---- */
.around { display: grid; gap: 40px; }
@media (min-width: 900px) { .around { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; } }
.dist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.dist li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line); }
.dist .ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper);
  color: var(--sea); border: 1px solid var(--line); }
.dist b { font-weight: 700; display: block; line-height: 1.3; }
.dist small { color: var(--ink-2); font-size: 13.5px; line-height: 1.35; display: block; }
.dist .km { font: 600 20px/1.1 var(--serif); text-align: right; white-space: nowrap; }
.dist .km small { font: 600 12.5px/1.2 var(--sans); }

/* ---- energy ---- */
.energy { background: var(--paper); }
.scales { display: grid; gap: 28px; margin-top: 28px; }
@media (min-width: 800px) { .scales { grid-template-columns: 1fr 1fr; gap: 48px; } }
.scale h3 { font-size: 21px; }
.bars { display: grid; gap: 4px; margin: 14px 0 10px; }
.bar { display: flex; align-items: center; gap: 12px; }
.bar > span { height: 26px; display: flex; align-items: center; padding: 0 10px; color: #fff; font: 800 14px/1 var(--sans);
  border-radius: 4px; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); }
.bar.on > span { height: 34px; font-size: 17px; outline: 3px solid var(--ink); outline-offset: 2px; clip-path: none; }
.bar.on em { font: 700 14px/1.2 var(--sans); font-style: normal; white-space: nowrap; }
.small { font-size: 13.5px; color: var(--ink-2); }

/* ---- contact ---- */
.contact { background: var(--shutter-deep); color: #f4f1ea; }
.contact h2 em { color: #f6d8c6; }
.contact .grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact .grid { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; } }
.card { background: #fffdf8; color: var(--ink); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; }
.card .agency { font: 600 22px/1.2 var(--serif); }
.card .row { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.card .row .i { margin-top: 4px; color: var(--shutter); }
.card .btn { width: 100%; }
.contact .lede { font-size: 18px; color: #e6e1d6; max-width: 46ch; }
.contact .price-line { font: 600 28px/1.2 var(--serif); margin: 18px 0 4px; }
.contact .small { color: #cfd6d9; }
.contact .card .small { color: var(--ink-2); }

footer { background: #24323a; color: #b9c3c7; font-size: 13px; padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
footer p { margin: 0 0 8px; max-width: 90ch; }
footer a { color: #e2e8ea; }

/* video and photo placeholders before media arrives */
video[poster] { background: var(--stone-2); }
@media print { .top, .clip-btn, .lb { display: none !important; } .hero { min-height: 0; } }
