/* =============================================================================
   BIBI HOUSE · styles.css
   The site looks like the house: the green of its beams, of the arch and of the gym wall, the yellow of the
   lamps and stools of the kitchen, the white of the walls. Colours are sampled from the photos of the house.
   Type: Anton (the sign: wordmark, titles, room names, prices) and Archivo (everything that is read).
   ============================================================================= */

[hidden] { display: none !important; }


/* ==== 01 · TOKENS ================================================= */

:root {
  --green:      #1B4F52;   /* the beams, the arch, the wall of the gym: the nav and every green band */
  --green-deep: #123638;   /* the same in the shade: the foot of the page, the phone's bar, a hover */
  --yellow:     #F2B632;   /* the lamps and the stools of the kitchen */
  --yellow-hi:  #FFCB52;
  /* A trial asked by the owner (2026-11-20): vert sariette, the pale water green of the Chromatic chart (CH2 0332,
     about #D6E8E1). --accent is that tint and fills the band of the prices, which was yellow. Everything else that
     was yellow is yellow again, at the owner's word: the button of the visit (--btn-bg: in sariette it no longer
     stood out), and the small touches that --mark draws (an underline, a ring, the "Toi ?" plate, a dot, a tag),
     "pour relever un peu". On the sariette band the button is green and the marks are dark. */
  --accent:     #D6E8E1;
  --mark:       var(--yellow);
  --btn-bg:     var(--yellow);
  --btn-fg:     var(--ink);
  --btn-hi:     var(--yellow-hi);
  --wall:       #FBFAF6;   /* the walls */
  --floor:      #EEEBE4;   /* the resin floor of La Grange */
  --ink:        #0E2A2C;   /* text, the green pushed to black */
  --ink-2:      #40585A;
  --line:       rgba(14, 42, 44, .16);
  --line-wall:  rgba(251, 250, 246, .24);
  --oak:        #B98A5A;
  --mahogany:   #8A4630;

  --f-mark: 'Anton', 'Anton Fallback', Impact, 'Arial Narrow', sans-serif;
  --f-sans: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --fs-0: .86rem;
  --fs-1: 1rem;
  --fs-2: 1.14rem;
  --fs-3: clamp(1.2rem, 1.08rem + .55vw, 1.5rem);
  --fs-4: clamp(1.5rem, 1.2rem + 1.3vw, 2.3rem);
  --fs-title: clamp(2.6rem, 1.5rem + 4.4vw, 5.4rem);

  --nav-h:  68px;
  --gutter: clamp(20px, 4vw, 48px);
  --band:   clamp(64px, 8vw, 128px);
  --wrap:   1344px;
  --radius: 6px;

  --t-fast: 160ms;
  --t-mid:  380ms;
  --ease:   cubic-bezier(.2, .7, .2, 1);

  /* What a section sets for what stands on it. */
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --rule: var(--line);
  --focus: var(--green);
}


/* ==== 02 · RESET + BASE =========================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  background: var(--green);
}
/* Smooth scrolling for in-page links only: site.js sets the class once the page has loaded, so a deep link jumps
   straight to its section instead of gliding through the whole page. */
html.is-loaded { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  overflow-x: hidden;
  /* The green of the nav, not the white of the pages: Safari tints its own bars from this colour (and, on the outer
     screen of an iPhone Duo, the strip of controls it keeps beside the page), and it is what shows when a page is
     pulled past its top. The white of the pages is on main. */
  background: var(--green);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
strong { font-weight: 600; }
address { font-style: normal; }
h1, h2, h3, h4 { font-weight: inherit; font-size: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

::selection { background: var(--yellow); color: var(--ink); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: fixed; top: 10px; left: 10px; z-index: 2000;
  background: var(--yellow); color: var(--ink);
  padding: 10px 16px; border-radius: 999px; font-size: var(--fs-0); font-weight: 600;
  transform: translateY(-200%); transition: transform var(--t-mid) var(--ease);
}
.skip:focus { transform: translateY(0); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }


/* ==== 03 · LAYOUT + TYPE ========================================== */

main { position: relative; background: var(--wall); }

.wrap {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.band { padding-block: var(--band); color: var(--fg); }

/* The colours of a band: what stands on it follows. */
.on-green { background: var(--green); --fg: var(--wall); --fg-2: rgba(251, 250, 246, .78); --rule: var(--line-wall); --focus: var(--yellow); }
.on-deep { background: var(--green-deep); --fg: var(--wall); --fg-2: rgba(251, 250, 246, .72); --rule: var(--line-wall); --focus: var(--yellow); }
.on-accent { background: var(--accent); --fg: var(--ink); --fg-2: rgba(14, 42, 44, .78); --rule: rgba(14, 42, 44, .9); --focus: var(--ink); --mark: var(--green); }
/* On the sariette band the button of the visit is green: the yellow would be pale on pale. */
.on-accent { --btn-bg: var(--green); --btn-fg: var(--wall); --btn-hi: var(--green-deep); }
.on-floor { background: var(--floor); }
.on-green, .on-deep, .on-accent, .on-floor { color: var(--fg); }

/* A title is painted like the sign of the house. */
.t-title {
  font-family: var(--f-mark);
  font-size: var(--fs-title);
  line-height: 1.1;
  letter-spacing: .008em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--fg);
}
.lede {
  font-size: var(--fs-3);
  line-height: 1.4;
  color: var(--fg-2);
  max-width: 40ch;
  text-wrap: pretty;
}
.t-title + .lede { margin-top: clamp(16px, 2vw, 24px); }

/* A link in a sentence. */
.link, .prose a:not(.btn), .lede a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--mark);
  transition: text-decoration-color var(--t-fast) var(--ease);
}
.link:hover, .prose a:not(.btn):hover, .lede a:hover { text-decoration-color: currentColor; }
.link--more { font-weight: 600; }

.prose { max-width: 64ch; color: var(--ink-2); font-size: var(--fs-2); line-height: 1.7; }
.prose > * + * { margin-top: 1.15em; }


/* ==== 04 · BUTTONS ================================================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--f-sans); font-weight: 600;
  font-size: 16px; line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }

/* The one action of the site, in the yellow of the lamps. On the yellow band it turns green. */
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.btn--primary:hover { background: var(--btn-hi); border-color: var(--btn-hi); }
.btn--dark { background: var(--green); color: var(--wall); border-color: var(--green); }
.btn--dark:hover { background: var(--green-deep); border-color: var(--green-deep); }

.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: color-mix(in srgb, currentColor 12%, transparent); }

.btn--small { min-height: 42px; padding: 0 18px; font-size: 14px; }


/* ==== 05 · NAV ==================================================== */

/* The fascia of the house: a green band that stays at the top of every page. */
.nav {
  position: sticky; top: 0; z-index: 400;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  min-height: var(--nav-h);
  padding: 10px max(var(--gutter), calc((100% - var(--wrap)) / 2));
  background: var(--green);
  color: var(--wall);
  --focus: var(--yellow);
}

.nav__mark { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; line-height: 1; }
.nav__mark-bh {
  font-family: var(--f-mark);
  font-size: 30px; letter-spacing: .02em;
  text-transform: uppercase;
}
.nav__mark-word {
  padding-left: 12px; border-left: 1px solid var(--line-wall);
  font-weight: 500; font-size: 13px; line-height: 1.25;
  white-space: nowrap;
  opacity: .9;
}
.nav__mark-word span { display: block; }

.nav__menu { display: flex; justify-content: center; gap: clamp(18px, 2.4vw, 36px); font-size: 15px; font-weight: 500; }
.nav__menu a {
  padding: 8px 0;
  background: linear-gradient(var(--mark), var(--mark)) left bottom 4px / 0 2px no-repeat;
  transition: background-size var(--t-mid) var(--ease);
}
.nav__menu a:hover, .nav__menu a[aria-current="page"] { background-size: 100% 2px; }

.nav__actions { display: inline-flex; align-items: center; gap: clamp(12px, 1.6vw, 22px); justify-self: end; }
/* The music of the home page: the icon says whether it plays. */
.nav__sound { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-inline: -8px; border-radius: 50%; color: inherit; opacity: .82; transition: opacity var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.nav__sound[hidden] { display: none; }
.nav__sound:hover, .nav__sound[aria-pressed="true"] { opacity: 1; }
.nav__sound:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.nav__sound svg { width: 22px; height: 22px; }
.nav__sound[aria-pressed="true"] .nav__sound-off, .nav__sound[aria-pressed="false"] .nav__sound-on { display: none; }
.nav__login { font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav__login:hover { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav__menu-login { display: none; }

/* The two languages side by side; the one being read is underlined in yellow. */
.lang-switch { display: inline-flex; gap: 2px; font-size: 13px; font-weight: 600; line-height: 1; }
.lang-switch > .lang-switch__opt {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 38px;
  border-radius: 4px;
}
.lang-switch > [aria-current] { background: linear-gradient(var(--mark), var(--mark)) center bottom 7px / 18px 2px no-repeat; }
.lang-switch > a { opacity: .78; transition: opacity var(--t-fast) var(--ease); }
.foot__legal .lang-switch { color: var(--wall); }
.lang-switch > a:hover { opacity: 1; }

.nav__burger { display: none; width: 44px; height: 44px; margin-right: -10px; position: relative; }
.nav__burger i {
  position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor;
  transition: transform var(--t-mid) var(--ease);
}
.nav__burger i:nth-child(1) { top: 17px; }
.nav__burger i:nth-child(2) { top: 25px; }
.nav__burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] i:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1080px) {
  :root { --nav-h: 60px; }
  .nav { gap: 10px; padding-block: 8px; }
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; gap: 0;
    padding: 4px var(--gutter) 22px;
    background: var(--green);
    box-shadow: 0 24px 40px -24px rgba(8, 26, 28, .6);
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform var(--t-mid) var(--ease), visibility var(--t-mid) var(--ease);
    z-index: -1;
  }
  .nav__menu.is-open { transform: translateY(0); visibility: visible; }
  .nav__menu a {
    padding: 14px 0; border-bottom: 1px solid var(--line-wall);
    font-family: var(--f-mark); font-size: 1.7rem; font-weight: 400; line-height: 1.1; letter-spacing: .01em; text-transform: uppercase;
    background: none;
  }
  .nav__menu a:last-child { border-bottom: 0; }
  .nav__menu a[aria-current="page"] { color: var(--mark); }
  .nav__burger { display: block; }
  .nav__login { display: none; }
  .nav__menu-login { display: block; }
  .nav .btn--nav { display: none; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 420px) { .nav__mark-word { display: none; } }


/* ==== 06 · HERO: THE FACADE ======================================= */

/* The first screen is the front of the house, whole: its name painted across the green wall, the words that say what
   it is, one button, and four windows, one per room. The section is exactly as tall as the screen, so nothing is cut
   at its foot (owner, 2026-11-20: the first screen shows something whole, not a page caught mid-scroll). What stands
   under the name is arranged by the height that is left under it (the stage, a size container):
   - plenty of it: the words in a row, then the four windows in a row (stack);
   - less: the words on the left, the four windows beside them (the default);
   - too little for windows (a short laptop, a phone): the name and the words fill the screen, the windows follow. */
.hero {
  display: flex;
  min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h));
  padding-top: clamp(8px, 1.6vw, 24px); padding-bottom: clamp(26px, 3.2vw, 44px);
  overflow: hidden;
}
.hero__frame { flex: 1 1 auto; min-width: 0; width: 100%; display: flex; flex-direction: column; }

/* A trial (owner, 2026-11-20): the water of the Côte des Basques plays under the green of the wall. The video is grey
   with the calm water at black and is blended as a screen: the flat colour stays what it is, the same as the nav, and
   only the foam and the lines of swell light it (scripts/site/make-waves.sh). */
.hero { position: relative; isolation: isolate; }
/* The blend is on the layer, not on the video: a positioned layer is a group of its own, and what is inside it would
   only blend with the layer's own emptiness. */
.hero__sea { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; opacity: .42; mix-blend-mode: screen; }
.hero__waves { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 75%; }

/* The name fills the width whatever the screen: its size is the width of its frame divided by the width of
   "BIBI HOUSE" in Anton (3.92 em of ink), or, stacked on a phone, by the width of each word. */
.hero__sign { flex: none; container-type: inline-size; }
.hero__mark {
  font-family: var(--f-mark);
  font-size: calc((100vw - 2 * var(--gutter)) / 3.92);
  font-size: calc(100cqi / 3.92);
  line-height: .86;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  margin-left: -.038em;
  padding-top: .07em;
  color: var(--wall);
  user-select: none;
}
.hero__mark span { display: inline-block; }

.hero__stage {
  flex: 1 1 auto; display: flex;
  min-height: 232px;
  margin-top: clamp(18px, 2.4vw, 34px);
  container: stage / size;
}
.hero__floor {
  flex: 1 1 auto; min-width: 0;
  display: grid; grid-template-columns: minmax(0, 34fr) minmax(0, 66fr); grid-template-rows: minmax(0, 1fr);
  gap: clamp(24px, 3.6vw, 56px);
}

/* Beside the windows: the title at the top, the button at the foot. */
.hero__say { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-width: 0; min-height: 0; }
.hero__title {
  font-weight: 600;
  font-size: clamp(1.9rem, 2.9vw, 3rem);
  font-size: clamp(1.9rem, min(13cqh, 3.3cqw), 3.1rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  text-wrap: balance;
  max-width: 17ch;
}
.hero__side { display: grid; gap: 12px; justify-items: start; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.hero__note { font-size: var(--fs-0); color: var(--fg-2); }

/* Four windows, one per room, standing on the same line as the button. The panes share one row, the names the next
   (subgrid), so a name on two lines does not shorten its window; a pane takes the height that is left, up to a tall
   window's proportions (--tall, its width over its height at the tallest). */
.windows {
  --wg: clamp(10px, 1.2vw, 18px); --cols: 4; --tall: .58;
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) auto;
  gap: 0 var(--wg);
  min-height: 0;
  container: windows / inline-size;
}
.windows > li, .window { grid-row: span 2; display: grid; grid-template-rows: subgrid; min-width: 0; min-height: 0; }
.window__pane {
  align-self: end;
  height: 100%; min-height: 0;
  max-height: calc((100cqi - (var(--cols) - 1) * var(--wg)) / var(--cols) / var(--tall));
  display: block; overflow: hidden;
  border-radius: var(--radius);
  background: var(--green-deep);
}
.window__pane img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.window:hover .window__pane img { transform: scale(1.035); }
.window__label { display: block; padding-top: 10px; }
.window__name {
  display: block;
  font-family: var(--f-mark); font-size: clamp(1.1rem, .7rem + .95vw, 1.55rem); line-height: 1.1; letter-spacing: .01em;
  text-transform: uppercase;
}
.window__line { display: none; margin-top: 4px; font-size: 15px; line-height: 1.4; color: var(--fg-2); }
.window:hover .window__name { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* Plenty of height, or a narrow screen: the words in a row, the windows in a row under them. */
@container stage (min-height: 470px) or (max-width: 900px) {
  .hero__floor { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: clamp(22px, 2.8vw, 38px); }
  .hero__say { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 64px); align-items: end; }
  .hero__title { font-size: clamp(2rem, 4.1cqw, 3.4rem); max-width: 26ch; }
  .windows { --tall: .6; }
  .window__label { padding-top: 14px; }
  .window__name { font-size: clamp(1.3rem, .9rem + 1.2vw, 2rem); }
  .window__line { display: block; }
}
/* A narrow screen held upright (a tablet): the words one under the other, the windows two by two. */
@container stage (max-width: 900px) {
  .hero__say { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hero__title { font-size: clamp(2rem, 5.6cqw, 3rem); max-width: 20ch; }
  .windows { --cols: 2; --tall: .75; grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr) auto; }
  .windows > li:nth-child(n+3) { margin-top: var(--wg); }
}
/* A narrow screen on its side: a little more room for the words. */
@container stage (max-width: 1040px) and (max-height: 469.9px) {
  .hero__floor { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); gap: 24px; }
  .hero__title { font-size: clamp(1.7rem, min(11cqh, 3.6cqw), 2.4rem); }
  .window__name { font-size: 1.05rem; }
}
@media (min-width: 701px) and (max-width: 996px) {
  .hero__stage { min-height: 470px; }
}

/* Too little height for the windows (a short laptop, or a phone held on its side, the outer screen of an iPhone Duo
   among them: 594 by 368): the name on one line and the words fill the screen, the windows come right after. */
@media (min-width: 701px) and (max-height: 719px), (min-width: 520px) and (max-width: 700px) and (orientation: landscape) {
  .hero { --mark-h: calc(min(100vw - 2 * var(--gutter), var(--wrap)) * .237); display: block; min-height: 0; padding-bottom: clamp(48px, 6vw, 88px); }
  .hero__frame, .hero__stage, .hero__floor { display: block; }
  .hero__stage { container-type: normal; min-height: 0; margin-top: 0; }
  .hero__say {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 64px); align-items: center;
    min-height: calc(100vh - var(--nav-h) - clamp(8px, 1.6vw, 24px) - var(--mark-h));
    min-height: calc(100svh - var(--nav-h) - clamp(8px, 1.6vw, 24px) - var(--mark-h));
    padding-block: 18px 26px;
  }
  .hero__title { font-size: clamp(1.9rem, 3.4vw, 3rem); max-width: 26ch; }
  .windows { grid-template-rows: auto auto; margin-top: var(--under-bar, clamp(18px, 2.4vw, 32px)); }
  .window__pane { height: auto; max-height: none; aspect-ratio: 3 / 4; }
  .window__label { padding-top: 14px; }
  .window__name { font-size: clamp(1.3rem, .9rem + 1.2vw, 2rem); }
  .window__line { display: block; }
}
@media (min-width: 520px) and (max-width: 700px) and (orientation: landscape) {
  .hero__say { gap: 16px 28px; padding-block: 10px 18px; }
  .hero__title { font-size: clamp(1.4rem, 4.2vw, 1.8rem); }
  /* The link to the plans goes under the button, so that the title keeps two lines. */
  .hero__actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero__note { display: none; }
  .window__name { font-size: 1.05rem; }
  .window__line { font-size: 13px; }
}

/* On a phone Safari draws the page behind its floating bar: the small viewport ends above the bar, the screen goes on
   under it (98 px more on the outer screen of an iPhone Duo: 580 of small viewport, 618 of large, 678 of screen). The
   wall goes on as far, so that the first screen is whole and the photos start under the screen, not under the bar. */
@media (hover: none) and (pointer: coarse) {
  .hero { --under-bar: calc(100lvh - 100svh + 66px); }
}

/* While the first screen and its button are up (the class at-arrival, on the home page alone), the nav does not
   repeat that button: one yellow button on the screen. */
.nav .btn--nav {
  max-width: 16rem; overflow: hidden;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), opacity var(--t-mid) var(--ease),
    visibility var(--t-mid) var(--ease), max-width var(--t-mid) var(--ease), padding var(--t-mid) var(--ease), margin var(--t-mid) var(--ease);
}
.at-arrival .nav .btn--nav { opacity: 0; visibility: hidden; max-width: 0; padding-inline: 0; border-width: 0; margin-left: calc(-1 * clamp(12px, 1.6vw, 22px)); }

/* One orchestrated moment as the page opens: the name comes up the wall, then the lights go on behind the windows,
   one room after the other. */
@keyframes mark-up { from { clip-path: inset(0 0 100% 0); transform: translateY(12%); } to { clip-path: inset(-10% 0 -10% 0); transform: none; } }
@keyframes light-on { from { filter: brightness(.28) saturate(.4); } to { filter: none; } }
@keyframes say-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero__mark span { animation: mark-up 800ms var(--ease) both; }
.hero__mark span + span { animation-delay: 90ms; }
.hero__say > * { animation: say-in 600ms var(--ease) 260ms both; }
.hero__say > * + * { animation-delay: 340ms; }
.windows > li .window__pane { animation: light-on 1100ms ease-out 500ms both; }
.windows > li:nth-child(2) .window__pane { animation-delay: 680ms; }
.windows > li:nth-child(3) .window__pane { animation-delay: 860ms; }
.windows > li:nth-child(4) .window__pane { animation-delay: 1040ms; }

@media (max-width: 519px), (max-width: 700px) and (orientation: portrait) {
  /* A phone: the name stacked, each word as wide as the screen (BIBI stands taller than HOUSE), then the words and
     the button, and the screen is full. On a short phone the name gives way so that the button stays on it. The
     windows are a row to swipe, right after. */
  .hero { --name-w: min(100vw - 2 * var(--gutter), 89svh - 232px); display: block; min-height: 0; padding-bottom: clamp(40px, 9vw, 56px); }
  .hero__frame, .hero__stage, .hero__floor { display: block; }
  .hero__stage { container-type: normal; min-height: 0; margin-top: 0; }
  .hero__mark { white-space: normal; font-size: 0; line-height: 0; margin-left: 0; padding-top: 0; }
  .hero__mark span { display: block; line-height: .86; padding-top: .07em; }
  .hero__mark span:first-child { font-size: calc((100vw - 2 * var(--gutter)) / 1.342); font-size: calc(min(100cqi, 89svh - 232px) / 1.342); margin-left: -.038em; }
  .hero__mark span + span { font-size: calc((100vw - 2 * var(--gutter)) / 2.276); font-size: calc(min(100cqi, 89svh - 232px) / 2.276); margin-left: -.038em; margin-top: .04em; }
  .hero__say {
    display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
    min-height: calc(100vh - var(--nav-h) - 8px - 1.12 * (100vw - 2 * var(--gutter)));
    min-height: calc(100svh - var(--nav-h) - 8px - 1.12 * var(--name-w));
    padding-block: 16px 20px;
  }
  .hero__title { font-size: clamp(1.5rem, 7.4vw, 2.2rem); font-size: clamp(1.5rem, min(7.4vw, 4.4svh), 2.2rem); max-width: 17ch; }
  .hero__side { display: block; }
  /* The link to the plans stays beside the button where there is room; where it would wrap it is left out. */
  .hero__actions { max-height: 52px; overflow: hidden; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__note { display: none; }
  .windows {
    display: flex; gap: 12px;
    margin-top: var(--under-bar, 6px);
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .windows::-webkit-scrollbar { display: none; }
  /* Plain blocks here, not the shared rows of the wide layout: in a row to swipe the frames collapsed to a strip. */
  .windows > li { display: block; flex: 0 0 66%; scroll-snap-align: start; }
  .window { display: block; }
  .window__pane { height: auto; max-height: none; aspect-ratio: 3 / 4; }
  .window__label { padding-top: 14px; }
  .window__name { font-size: 1.45rem; }
  .window__line { display: block; }
}
@media (max-width: 519px) and (max-height: 600px), (max-width: 700px) and (max-height: 600px) and (orientation: portrait) {
  /* A short phone: the title on two lines, and the name a little narrower than the screen. */
  .hero { --name-w: min(100vw - 2 * var(--gutter), 89svh - 196px); }
  .hero__mark span:first-child { font-size: calc(min(100cqi, 89svh - 196px) / 1.342); }
  .hero__mark span + span { font-size: calc(min(100cqi, 89svh - 196px) / 2.276); }
  .hero__title { font-size: clamp(1.25rem, 6.3vw, 1.5rem); max-width: none; }
}


/* ==== 07 · PHOTOS OF THE HOUSE ==================================== */

/* assets/img/house/*, 3:4 portraits (the shot fragment of layout.html). */
.shot { display: block; margin: 0; }
.shot img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius);
  background: var(--floor);
}
.shot figcaption { margin-top: 10px; font-size: 15px; line-height: 1.4; color: var(--fg-2); }

/* Every photo of the house goes through the same grade: the whites of the walls warm up and stop glaring, blacks and
   wood get deeper, the whole sits warmer. One setting for all, so that photos taken on different days and in
   different lights hold together (owner, 2026-11-20: "plus pro, plus enveloppantes, moins cheap", then "tu peux
   encore faire mieux"). Plain filter functions on purpose: every browser composites them, and the files stay as they
   were shot. The photos of the coast are the exception: they are retouched in their files (scripts/site/grade-coast.py),
   so that the sea stays blue, and shown as they are. */
img[src*="/img/house/"] { filter: brightness(.88) sepia(.28) saturate(1.04) contrast(1.12); }
img[src*="/img/house/cote-des-basques"] { filter: none; }


/* ==== 08 · THE HOUSE IN A FEW LINES =============================== */

/* What the house is, said once, and beside it the facts a visitor looks for: where, when, what is included. */
.intro__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 112px);
  align-items: start;
}
.intro__say {
  font-weight: 500;
  font-size: clamp(1.55rem, 1.05rem + 2vw, 2.7rem);
  line-height: 1.16;
  letter-spacing: -.018em;
  text-wrap: pretty;
  max-width: 21ch;
}
.intro__more { margin-top: clamp(18px, 2vw, 28px); font-size: var(--fs-2); color: var(--ink-2); max-width: 46ch; }

.fiche { border-top: 2px solid var(--ink); }
.fiche > div {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 4px 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.fiche dt { font-size: var(--fs-0); font-weight: 600; color: var(--ink-2); padding-top: 3px; }
.fiche dd { font-size: var(--fs-1); line-height: 1.45; }
@media (max-width: 860px) {
  .intro__grid { grid-template-columns: 1fr; }
  .fiche > div { grid-template-columns: 6.6rem 1fr; }
}
@media (max-width: 620px) {
  :root { --band: 54px; }
}


/* ==== 09 · A DAY AT THE HOUSE ===================================== */

/* Five moments in the order of the day, strung on one line like the hours on a rail. */
.day__list {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.7vw, 24px);
  margin-top: clamp(28px, 4vw, 56px);
}
.moment { position: relative; padding-top: 22px; }
.moment::before {
  content: ""; position: absolute; top: 4px; left: 0; right: calc(-1 * clamp(12px, 1.7vw, 24px));
  height: 2px; background: var(--ink);
}
.moment:last-child::before { right: 0; }
.moment::after {
  content: ""; position: absolute; top: 0; left: 0;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--yellow); border: 2px solid var(--ink);
}
.moment__when { font-weight: 600; font-size: var(--fs-1); }
.moment .shot { margin-top: 12px; }
.moment__what { margin-top: 10px; font-size: var(--fs-1); line-height: 1.4; color: var(--ink-2); max-width: 22ch; }

@media (max-width: 860px) {
  .day__list {
    display: flex; gap: 12px;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .day__list::-webkit-scrollbar { display: none; }
  .moment { flex: 0 0 56%; scroll-snap-align: start; }
  .moment::before { right: -12px; }
}


/* ==== 10 · THE MEMBERS ============================================ */

/* The names at the door of the house: a face, a first name, what they do. The last plate is still blank. */
.members__head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(16px, 4vw, 72px); align-items: end;
}
.plates {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 40px);
  margin-top: clamp(28px, 4vw, 56px);
  border-top: 2px solid var(--wall);
}
.plate {
  display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; align-items: center; align-content: center;
  min-height: 92px; height: 100%; padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.plate__photo {
  grid-row: 1 / span 2;
  width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
  background: var(--green-deep);
}
.plate__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); transition: filter var(--t-mid) var(--ease); }
.plate:hover .plate__photo img { filter: none; }
.plate__name { align-self: end; font-weight: 600; font-size: 1.12rem; line-height: 1.2; }
.plate__role { align-self: start; font-size: 14px; line-height: 1.3; color: var(--fg-2); }
.plate:hover .plate__name { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 2px; text-underline-offset: 4px; }
/* The blank plate: the visitor's own. */
.plate--you .plate__photo {
  display: grid; place-items: center;
  background: none; border: 2px dashed var(--mark); color: var(--mark);
  font-family: var(--f-mark); font-size: 26px; line-height: 1.1;
}
.plate--you .plate__name { color: var(--mark); }

@media (max-width: 1080px) { .plates { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .members__head { grid-template-columns: 1fr; }
  .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .plate { grid-template-columns: 44px 1fr; column-gap: 10px; min-height: 80px; padding: 12px 0; }
  .plate__photo { width: 44px; height: 44px; }
  .plate__name { font-size: 1rem; }
  .plate__role { font-size: 13px; }
  .plate--you .plate__photo { font-size: 22px; }
}


/* ==== 11 · SPORT AND SURF ========================================= */

/* The gym and its classes, then the surf room: two photos side by side, one a step lower than the other. */
.move__grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 104px);
  align-items: start;
}
.move__photos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.7vw, 24px); }
.move__photos .shot + .shot { margin-top: 22%; }
.move__sub { margin-top: clamp(28px, 3.4vw, 44px); font-weight: 600; font-size: var(--fs-2); }
.move__text { margin-top: 8px; color: var(--ink-2); max-width: 46ch; }

/* The next sessions, as the club's calendar has them. */
.slots { margin-top: 12px; border-top: 2px solid var(--ink); }
.slots li {
  display: grid; grid-template-columns: minmax(0, 12.5rem) 4rem 1fr; gap: 2px 16px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.slots__when { color: var(--ink-2); }
.slots__when::first-letter { text-transform: uppercase; }
.slots__hour { font-weight: 600; font-variant-numeric: tabular-nums; }
.slots__name { font-weight: 600; }
.slots__host { color: var(--ink-2); font-weight: 400; }
.move__all { margin-top: 16px; }

@media (max-width: 860px) {
  .move__grid { grid-template-columns: 1fr; }
  .move__photos { order: 2; }
  .slots li { grid-template-columns: 4rem 1fr; }
  .slots__when { grid-column: 1 / -1; }
}


/* ==== 12 · THE PLANS ============================================== */

/* The price board of the house, painted yellow: two plans side by side, the price as large as the name, then what
   both include, said once. */
.board {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 72px);
  margin-top: clamp(28px, 4vw, 56px);
}
.plan { display: grid; align-content: start; justify-items: start; padding: clamp(20px, 2.4vw, 32px) 0; border-top: 3px solid var(--fg); }
.plan__name { font-family: var(--f-mark); font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.8rem); line-height: 1.1; letter-spacing: .01em; text-transform: uppercase; }
.plan__what { margin-top: 6px; font-weight: 600; font-size: var(--fs-2); }
.plan__price { margin-top: clamp(14px, 2vw, 26px); display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 12px; font-size: var(--fs-1); font-weight: 500; }
.plan__price strong { font-family: var(--f-mark); font-weight: 400; font-size: clamp(4.4rem, 2.4rem + 7vw, 9rem); line-height: .9; letter-spacing: 0; }
.plan__desc { margin-top: 14px; max-width: 36ch; color: var(--fg-2); }
.plan__flag { margin-top: 12px; font-size: var(--fs-0); font-weight: 600; }
.plan__flag::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--fg); }
.plan .btn { margin-top: 22px; }

.board__both { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 12px clamp(24px, 4vw, 72px); padding-top: clamp(20px, 2.4vw, 32px); border-top: 3px solid var(--fg); margin-top: clamp(8px, 1.4vw, 20px); }
.board__label { font-family: var(--f-mark); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.1; letter-spacing: .01em; text-transform: uppercase; max-width: 12ch; }
.ticks { columns: 2; column-gap: clamp(24px, 4vw, 72px); }
.ticks li { break-inside: avoid; padding: 9px 0 9px 28px; border-bottom: 1px solid color-mix(in srgb, var(--fg) 26%, transparent); position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 15px;
  width: 13px; height: 7px; border-left: 2.5px solid var(--fg); border-bottom: 2.5px solid var(--fg);
  transform: rotate(-45deg);
}
.board__terms { grid-column: 2; margin-top: 10px; font-size: var(--fs-0); color: var(--fg-2); max-width: 70ch; }
.board__terms a { text-decoration: underline; text-underline-offset: 3px; }
.board__cta { display: none; }

@media (max-width: 860px) {
  .board__both { grid-template-columns: 1fr; }
  .board__terms { grid-column: 1; }
}
/* A phone keeps the two plans side by side, to compare them at a glance, with one button for both. */
@media (max-width: 620px) {
  .board { column-gap: 16px; }
  .plan { padding: 16px 0 18px; }
  .plan__what { font-size: var(--fs-1); }
  .plan__price { display: grid; gap: 4px; margin-top: 12px; font-size: 13px; }
  .plan__price strong { font-size: clamp(3.3rem, 17vw, 4.4rem); }
  .plan__desc { font-size: 14px; line-height: 1.45; }
  .plan .btn { display: none; }
  .board__cta { display: block; grid-column: 1 / -1; padding-bottom: 22px; }
  .board__cta .btn { width: 100%; }
  .board__both { margin-top: 0; }
  .ticks { columns: 1; }
  .ticks li { padding-block: 7px; }
  .ticks li::before { top: 13px; }
}


/* ==== 13 · QUESTIONS ============================================== */

.faq__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 6vw, 104px);
  align-items: start;
}
.faq__head { position: sticky; top: calc(var(--nav-h) + 28px); }
.faq__ask { margin-top: 18px; color: var(--ink-2); max-width: 34ch; }

/* A theme and its questions: the theme folds too (a phone keeps only the first one open, site.js). */
.faq__set + .faq__set { margin-top: clamp(22px, 3vw, 36px); }
.faq__set > summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px;
  padding-bottom: 10px; border-bottom: 2px solid var(--ink);
}
.faq__set > summary::-webkit-details-marker { display: none; }
.faq__set > summary::after {
  content: ""; width: 9px; height: 9px; margin-right: 3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg); transition: transform var(--t-mid) var(--ease);
}
.faq__set[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.faq__group { font-family: var(--f-mark); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); line-height: 1.1; letter-spacing: .01em; text-transform: uppercase; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item > summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px;
  padding: 17px 0;
  font-weight: 600; font-size: var(--fs-2); line-height: 1.3;
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary h4 { font: inherit; }
/* A plus that turns into a minus. */
.faq__item > summary::after {
  content: ""; width: 14px; height: 14px; flex: none;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  transition: transform var(--t-mid) var(--ease);
}
.faq__item[open] > summary::after { transform: rotate(180deg); background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat; }
.faq__item > summary:hover { color: var(--green); }
.faq__answer { padding: 0 0 22px; color: var(--ink-2); max-width: 62ch; }
.faq__answer > * + * { margin-top: .9em; }
.faq__answer a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--mark); }
.faq__answer a:hover { text-decoration-color: currentColor; }

.steps__list { counter-reset: step; }
.steps__list li { counter-increment: step; position: relative; padding-left: 2.2em; }
.steps__list li + li { margin-top: .8em; }
.steps__list li::before { content: counter(step); position: absolute; left: 0; top: -.08em; font-family: var(--f-mark); font-size: 1.3em; color: var(--green); }
.steps__list strong { color: var(--ink); }

.founder__portrait { float: right; width: 112px; margin: 4px 0 12px 20px; }
.founder__portrait img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; }
.founder__sign { font-weight: 600; color: var(--ink); }

@media (max-width: 860px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
}


/* ==== 14 · THE VISIT ============================================== */

/* The invitation, the address and the map of the walk from the door to the sand. */
.visit__grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 104px);
  align-items: center;
}
.visit__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: clamp(22px, 2.6vw, 34px); }
.visit__facts { margin-top: clamp(28px, 3.4vw, 44px); border-top: 2px solid var(--wall); }
.visit__facts > div { display: grid; grid-template-columns: 7rem 1fr; gap: 4px 20px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.visit__facts dt { font-size: var(--fs-0); font-weight: 600; color: var(--fg-2); padding-top: 3px; }
.visit__facts dd { line-height: 1.45; }
.visit__where { margin-top: clamp(22px, 2.6vw, 32px); font-weight: 600; font-size: var(--fs-2); line-height: 1.3; max-width: 30ch; }

/* The map of the Côte des Basques (fragments/map.html, drawn by scripts/site/make-map.js). */
.map { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--wall); }
.map__ocean { fill: var(--green-deep); }
.map__rock { fill: var(--wall); }
.map__sand { fill: #E3CFA6; }
.map__swell { fill: none; stroke: var(--wall); stroke-width: 1.2; stroke-dasharray: 26 18; stroke-linecap: round; }
.map__swell--1 { opacity: .5; }
.map__swell--2 { opacity: .36; }
.map__swell--3 { opacity: .22; }
.map__green { fill: var(--green); fill-opacity: .2; }
.map__wood { fill: var(--green); fill-opacity: .12; }
.map__block { fill: var(--ink); fill-opacity: .06; }
.map__cliff { fill: none; stroke: var(--ink); stroke-opacity: .18; stroke-width: 2; stroke-dasharray: 1 4; }
.map__street, .map__road, .map__lamartine { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.map__street { stroke-opacity: .1; stroke-width: 1; }
.map__road { stroke-opacity: .2; stroke-width: 1.6; }
.map__lamartine { stroke-width: 3; }
.map__walk { fill: none; stroke: var(--mahogany); stroke-width: 3.5; stroke-dasharray: 0 8; stroke-linecap: round; }
/* The walk draws itself from the house to the sand once the map is on screen (site.js, is-in). */
.map__walk-reveal { fill: none; stroke: #fff; stroke-width: 10; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) .4s; }
.map.is-in .map__walk-reveal { stroke-dashoffset: 0; }
.map__pin-halo { fill: var(--yellow); fill-opacity: .55; transform-box: fill-box; transform-origin: center; animation: map-pulse 2.8s var(--ease) infinite; }
.map__pin-house { fill: var(--yellow); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.map__compass circle { fill: var(--wall); fill-opacity: .85; stroke: var(--ink); stroke-opacity: .25; }
.map__compass path { fill: var(--ink); fill-opacity: .7; }
.map__compass text { font-family: var(--f-sans); font-size: 10px; letter-spacing: .08em; fill: var(--ink); fill-opacity: .7; }
.map__spot { fill: var(--ink); fill-opacity: .75; stroke: var(--wall); stroke-width: 1.5; }
@keyframes map-pulse { 0%, 100% { transform: scale(.8); } 50% { transform: scale(1.15); } }
.map__label { font-family: var(--f-sans); font-weight: 500; font-size: 13px; letter-spacing: .02em; fill: var(--ink); fill-opacity: .8; }
.map__label--sea { fill: var(--wall); fill-opacity: .9; paint-order: stroke; stroke: var(--green-deep); stroke-width: 5px; stroke-linejoin: round; }
.map__label--house { font-family: var(--f-mark); font-weight: 400; font-size: 24px; letter-spacing: .02em; text-transform: uppercase; fill-opacity: 1; }
.map__label--small { font-size: 12px; }
.map__label--street { font-size: 11px; fill-opacity: .5; }
.map__label--walk { font-weight: 600; font-size: 14px; fill: var(--mahogany); fill-opacity: 1; }
.map__label--credit { font-size: 9px; fill-opacity: .5; }
.map a:hover .map__label--credit { fill-opacity: .9; }
.map__label--end { text-anchor: end; }

@media (max-width: 860px) {
  .visit__grid { grid-template-columns: 1fr; }
}
/* The SVG scales with its frame, so its labels grow where the frame is narrow. */
@media (max-width: 720px) {
  .map__label { font-size: 17px; }
  .map__label--house { font-size: 28px; }
  .map__label--small { font-size: 14px; }
  .map__label--walk { font-size: 17px; }
  .map__label--street { font-size: 12px; }
  .map__compass { transform: translate(34px, 36px) scale(1.3); }
  .map__label--credit { font-size: 12px; }
}


/* ==== 15 · THE END OF THE STREET ================================== */

/* The page ends where the street does: the Côte des Basques, edge to edge, with the credit its licence asks for. */
.ocean { position: relative; margin: 0; background: var(--green-deep); }
.ocean img { display: block; width: 100%; height: auto; }
/* With the sariette trial the photo that ends the page is tinted with the green of the site (its light and its shapes
   stay, its blue sky and its orange sand come closer to the green): untinted it no longer went with the colours of
   the page (owner, 2026-11-20). One number to turn: the opacity. */
@supports (mix-blend-mode: color) {
  .ocean picture { position: relative; display: block; isolation: isolate; }
  .ocean picture::after { content: ""; position: absolute; inset: 0; background: var(--green); mix-blend-mode: color; opacity: .7; pointer-events: none; }
}
.ocean figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px;
  padding: 12px var(--gutter);
  background: var(--green-deep); color: rgba(251, 250, 246, .78);
  font-size: var(--fs-0);
  --focus: var(--mark);
}
.ocean figcaption a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .ocean img { aspect-ratio: 1 / 1; object-fit: cover; } }


/* ==== 16 · FOOTER ================================================= */

.foot { padding: clamp(48px, 6vw, 88px) 0 0; overflow: hidden; }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 64px); }
.foot__title { margin-bottom: 12px; font-size: var(--fs-0); font-weight: 600; color: var(--fg-2); }
.foot__col, .foot__col address { font-size: var(--fs-1); line-height: 1.7; }
.foot__col a { display: block; }
.foot__col a:hover, .foot__legal a:hover { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.foot__legal {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px;
  margin-top: clamp(36px, 5vw, 64px); padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-0); color: var(--fg-2);
}
.foot__legal > :last-child { margin-left: auto; }
/* The name of the house once more, at the foot of the last wall, cut by the edge of the page. */
.foot__mark {
  container-type: inline-size;
  margin-top: clamp(28px, 4vw, 56px);
  color: color-mix(in srgb, var(--green) 62%, var(--green-deep));
  user-select: none;
}
.foot__mark p::before { content: attr(data-mark); }
.foot__mark p {
  font-family: var(--f-mark);
  font-size: calc((100vw - 2 * var(--gutter)) / 3.92);
  font-size: calc(100cqi / 3.92);
  line-height: .86; white-space: nowrap; text-transform: uppercase;
  margin: 0 0 -.18em -.038em; padding-top: .07em;
}
@media (max-width: 860px) {
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__legal > :last-child { margin-left: 0; }
}
@media (max-width: 520px) {
  /* The address and the contact take the width: an e-mail address does not fit in half a phone. */
  .foot__col:nth-child(-n+2) { grid-column: 1 / -1; }
}


/* ==== 17 · THE PHONE'S BAR ======================================== */

/* A phone keeps the price and the button of the visit at the foot of the screen once the page's own button has
   scrolled away (site.js, .is-on); it steps aside again over the invitation and the foot of the page. */
.dock { display: none; }
@media (max-width: 760px) {
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 390;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--green-deep); color: var(--wall);
    --focus: var(--yellow);
    box-shadow: 0 -12px 30px -16px rgba(8, 26, 28, .7);
    transform: translateY(110%); visibility: hidden;
    transition: transform var(--t-mid) var(--ease), visibility var(--t-mid) var(--ease);
  }
  .dock.is-on { transform: none; visibility: visible; }
  .dock__price { font-size: 13px; line-height: 1.35; color: rgba(251, 250, 246, .8); white-space: nowrap; }
  .dock__price strong { color: var(--wall); }
  .dock .btn { min-height: 46px; padding: 0 18px; font-size: 15px; }
}


/* ==== 18 · BOOKING A VISIT ======================================== */

/* The dialog every "Réserver une visite" opens (site.js): a day, a moment, and the message leaves on WhatsApp or by
   e-mail. A sheet at the foot of a phone's screen, a card in the middle of a wide one. */
.visit-dialog {
  width: min(34rem, 100%); max-width: 100%; max-height: min(92vh, 46rem);
  margin: auto; padding: 0;
  border: 0; border-radius: 14px;
  background: var(--wall); color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(8, 26, 28, .7);
  overflow: auto;
}
.visit-dialog::backdrop { background: rgba(8, 26, 28, .62); }
.visit-dialog__box { display: grid; gap: 18px; padding: clamp(22px, 4vw, 34px); }
.visit-dialog__head { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.visit-dialog__title { font-family: var(--f-mark); font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); line-height: 1.1; letter-spacing: .01em; text-transform: uppercase; }
.visit-dialog__title:focus { outline: none; }
.visit-dialog__close { width: 44px; height: 44px; margin: -8px -10px 0 0; border-radius: 50%; display: grid; place-items: center; }
.visit-dialog__close:hover { background: var(--floor); }
.visit-dialog__close svg { width: 18px; height: 18px; }
.visit-dialog__lede { color: var(--ink-2); }
.visit-dialog fieldset { border: 0; min-width: 0; }
.visit-dialog legend { margin-bottom: 8px; font-size: var(--fs-0); font-weight: 600; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 2px solid var(--line); border-radius: 999px;
  font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.chip input:hover + span { border-color: var(--ink); }
.chip input:checked + span { background: var(--green); border-color: var(--green); color: var(--wall); }
.chip input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 3px; }
.visit-dialog__say { min-height: 1.5em; font-weight: 600; }
.visit-dialog__send { display: grid; gap: 10px; }
.visit-dialog__send .btn { width: 100%; }
.visit-dialog__mail { justify-self: center; padding: 6px; font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.visit-dialog__mail:hover { text-decoration-color: currentColor; }
.visit-dialog__note { font-size: var(--fs-0); color: var(--ink-2); text-align: center; }
@media (max-width: 620px) {
  .visit-dialog { margin: auto 0 0; width: 100%; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); }
}
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.visit-dialog[open] { animation: sheet-up 280ms var(--ease); }


/* ==== 19 · THE HEAD OF A PAGE ===================================== */

/* Every page but the home opens on the green wall: where the page is, its title, one line. */
.page-top { padding-top: clamp(14px, 2vw, 24px); padding-bottom: clamp(36px, 5vw, 72px); }
.page-top .t-title { margin-top: clamp(20px, 3vw, 44px); font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.6rem); max-width: 18ch; }
.page-top .lede { max-width: 52ch; }
.page-top__label { margin-top: clamp(20px, 3vw, 44px); font-weight: 600; font-size: var(--fs-0); color: var(--fg-2); }
.page-top__label + .t-title { margin-top: 8px; }

.breadcrumb { font-size: var(--fs-0); color: var(--fg-2); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 10px; opacity: .5; }
.breadcrumb a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current="page"] { color: var(--fg); }


/* ==== 20 · LES ESPACES, THE PAGE (/espaces/, /en/spaces/) ========= */

.tour__index { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(22px, 3vw, 36px); }
.tour__index a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 2px solid var(--line-wall); border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.tour__index a:hover { background: var(--mark); border-color: var(--mark); color: var(--ink); }

.tour__room { padding-block: clamp(48px, 7vw, 104px); scroll-margin-top: var(--nav-h); }
.tour__room:nth-of-type(even) { background: var(--floor); }
.tour__words {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(20px, 5vw, 96px);
  align-items: start;
}
.room__title { font-family: var(--f-mark); font-size: var(--fs-title); line-height: 1.1; letter-spacing: .008em; text-transform: uppercase; text-wrap: balance; }
.room__tag { margin-top: 12px; display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--yellow); font-size: var(--fs-0); font-weight: 600; }
.room__lede { font-weight: 500; font-size: var(--fs-3); line-height: 1.35; max-width: 34ch; text-wrap: pretty; }
.tour__text { margin-top: 14px; color: var(--ink-2); max-width: 56ch; }
.room__list { margin-top: 18px; border-top: 2px solid var(--ink); max-width: 34rem; }
.room__list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.room__more { margin-top: 16px; }

/* The photos of a room: the first one twice as large, the others around it. */
.tour__shots {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.7vw, 24px);
  margin-top: clamp(28px, 4vw, 56px);
}
.tour__shots > li:first-child { grid-column: span 2; grid-row: span 2; }
.tour__shots.is-solo { grid-template-columns: minmax(0, 520px); }
.tour__shots.is-solo > li:first-child { grid-column: auto; grid-row: auto; }
@media (max-width: 860px) {
  .tour__words { grid-template-columns: 1fr; }
  .tour__shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The band that closes a page: the invitation again. */
.close { text-align: left; }
.close__text { margin-top: 16px; }
.close__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: clamp(22px, 2.6vw, 34px); }


/* ==== 21 · MOTION PREFERENCES ===================================== */

@media (prefers-reduced-motion: reduce) {
  html.is-loaded { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .map__walk-reveal { stroke-dashoffset: 0; }
}
