/* ==========================================================================
   CA Conciergerie — design system
   Palette, type and layout rules are fixed by the brand brief. Do not add colours.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset; variable files) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/outfit-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #0B1F33;
  --navy-deep: #081627;
  --paper: #F6F1E8;
  --ivory: #F3EBDD;
  --sand: #D9CDB8;
  --sea: #3D5A6C;
  --ink: #0B1F33;
  --ink-soft: rgba(11, 31, 51, .74);
  --ink-faint: rgba(11, 31, 51, .5);
  --ivory-soft: rgba(243, 235, 221, .8);
  --sand-faint: rgba(217, 205, 184, .55);

  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", "Helvetica Neue", Arial, system-ui, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 2px;
  --hair: 1px solid var(--sand);

  --max: 1440px;
  --gutter: clamp(20px, 6vw, 104px);
  --gap: clamp(16px, 2vw, 32px);
  --space-s: clamp(40px, 6vw, 72px);
  --space: clamp(72px, 10vw, 152px);
  --header-h: 92px;
  --mark-h: 48px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
strong { font-weight: 500; }
em { font-style: italic; }
hr { border: 0; border-top: var(--hair); margin: 0; }
::selection { background: var(--sand); color: var(--navy); }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.on-navy :focus-visible, .header--over:not(.is-scrolled) :focus-visible, .footer :focus-visible, .panel :focus-visible,
.hero :focus-visible, .night :focus-visible, body.menu-open .header :focus-visible,
.door:focus-visible, .film :focus-visible { outline-color: var(--ivory); }
/* En-tête fixe : un élément qui reçoit le focus (Maj+Tab, zoom) ne passe pas dessous (en-tête compacté 66 px + 16 px) */
html { scroll-padding-top: 82px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; background: var(--navy); color: var(--ivory);
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------- Type ---------- */
.display, .h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.h1 { font-size: clamp(2.5rem, 5.4vw, 4.75rem); }
.h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.h3 { font-size: clamp(1.55rem, 2.2vw, 2.05rem); line-height: 1.15; }
.h4 { font-size: clamp(1.3rem, 1.6vw, 1.55rem); line-height: 1.2; }
.italic { font-style: italic; }

.label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .72rem;
  line-height: 1.4;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.label--wide { letter-spacing: .28em; }
.label--soft { color: var(--ink-soft); }
.eyebrow { display: block; margin-bottom: 1.25rem; }
.eyebrow::before {
  content: ""; display: inline-block; width: 28px; height: 1px;
  background: currentColor; vertical-align: middle; margin-right: 14px; opacity: .7;
}

.lede {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.8vw, 1.65rem);
  line-height: 1.4;
  font-weight: 400;
  text-wrap: pretty;
}
.prose { max-width: 62ch; }
.prose p + p { margin-top: 1.15em; }
.prose a { border-bottom: 1px solid var(--sand); transition: border-color .3s; }
.prose a:hover { border-color: currentColor; }
.link--inline { border-bottom: 1px solid var(--sand); transition: border-color .3s; }
.prose a, .link--inline { overflow-wrap: anywhere; }   /* une adresse écrite en clair se coupe au lieu de déborder */
.link--inline:hover { border-color: currentColor; }
.prose h2, .prose h3 { margin-top: 2.2em; margin-bottom: .6em; }
.prose h2 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); }
.prose h3 { font-size: clamp(1.35rem, 1.8vw, 1.65rem); }
.prose ul, .prose ol { margin: 1em 0 1em 1.25em; }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 1.4em; margin: .35em 0; }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .78em; width: 14px; height: 1px; background: var(--ink-faint);
}
.prose ol { list-style: none; counter-reset: li; margin-left: 0; }
.prose ol li { counter-increment: li; position: relative; padding-left: 2.8em; margin: .5em 0; }
.prose ol li::before {
  counter-increment: none; content: counter(li, decimal-leading-zero);
  position: absolute; left: 0; top: .15em;
  font-family: var(--font-display); font-size: 1.15em; color: var(--ink-faint);
}
.prose blockquote { margin: 1.5em 0; padding-left: 1.5em; border-left: 1px solid var(--sand); font-family: var(--font-display); font-size: 1.35em; line-height: 1.35; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--gap); }
.section { padding-block: var(--space); }
.section--s { padding-block: var(--space-s); }
.section--top-0 { padding-top: 0; }
.section--bottom-0 { padding-bottom: 0; }
.section--rule { border-top: var(--hair); }
.stack > * + * { margin-top: var(--flow, 1rem); }
.flow-l { --flow: 2rem; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; } .mt-4 { margin-top: 4rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }
.align-end { align-self: end; }
.align-center { align-self: center; }

.col-12 { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .md\:col-1-6 { grid-column: 1 / 7; } .md\:col-1-7 { grid-column: 1 / 8; } .md\:col-1-8 { grid-column: 1 / 9; }
  .md\:col-1-5 { grid-column: 1 / 6; } .md\:col-7-13 { grid-column: 7 / 13; } .md\:col-8-13 { grid-column: 8 / 13; }
  .md\:col-6-13 { grid-column: 6 / 13; } .md\:col-2-12 { grid-column: 2 / 12; } .md\:col-1-4 { grid-column: 1 / 5; }
  .md\:col-5-13 { grid-column: 5 / 13; } .md\:col-9-13 { grid-column: 9 / 13; } .md\:col-3-11 { grid-column: 3 / 11; }
  .md\:col-2-8 { grid-column: 2 / 9; } .md\:col-1-9 { grid-column: 1 / 10; } .md\:col-4-13 { grid-column: 4 / 13; }
}
@media (min-width: 1280px) {
  .lg\:col-1-5 { grid-column: 1 / 6; } .lg\:col-1-6 { grid-column: 1 / 7; } .lg\:col-1-7 { grid-column: 1 / 8; }
  .lg\:col-7-13 { grid-column: 7 / 13; } .lg\:col-8-13 { grid-column: 8 / 13; } .lg\:col-2-7 { grid-column: 2 / 8; }
  .lg\:col-3-11 { grid-column: 3 / 11; } .lg\:col-2-11 { grid-column: 2 / 12; } .lg\:col-1-8 { grid-column: 1 / 9; }
  .lg\:col-9-13 { grid-column: 9 / 13; } .lg\:col-2-9 { grid-column: 2 / 10; } .lg\:col-4-12 { grid-column: 4 / 13; }
  .lg\:col-1-4 { grid-column: 1 / 5; } .lg\:col-5-13 { grid-column: 5 / 13; } .lg\:col-2-8 { grid-column: 2 / 9; }
  .lg\:col-6-13 { grid-column: 6 / 13; } .lg\:col-3-12 { grid-column: 3 / 12; }
}

/* ---------- Surfaces ---------- */
.on-navy { background: var(--navy); color: var(--ivory); }
.on-navy .muted, .on-navy .label--soft { color: var(--ivory-soft); }
.on-navy hr, .on-navy .rule { border-color: rgba(243, 235, 221, .22); }
.on-navy .prose a { border-color: rgba(243, 235, 221, .35); }
.on-navy .eyebrow::before { opacity: .6; }
.on-sand { background: var(--sand-faint); }
.inset { padding: clamp(28px, 4vw, 56px); }
.hairline { border: var(--hair); }
.rule { border-top: var(--hair); }
.rule--navy { border-color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 28px;
  border: 1px solid var(--navy); border-radius: var(--radius);
  background: var(--navy); color: var(--ivory);
  font-family: var(--font-body); font-weight: 500; font-size: .72rem;
  letter-spacing: .22em; text-transform: uppercase; line-height: 1.2;
  text-align: center; white-space: nowrap;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
@media (max-width: 400px) { .btn { white-space: normal; } }   /* 320 px (zoom 400 %) : le libellé passe à la ligne */
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--ivory); }
.btn--ivory { background: var(--ivory); color: var(--navy); border-color: var(--ivory); }
.btn--ivory:hover { background: var(--paper); border-color: var(--paper); }
.btn--ghost-ivory { background: transparent; color: var(--ivory); border-color: rgba(243, 235, 221, .7); }
.btn--ghost-ivory:hover { background: var(--ivory); color: var(--navy); border-color: var(--ivory); }
.btn--wide { min-width: 260px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; cursor: default; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.btn-row--column { flex-direction: column; align-items: stretch; }
@media (max-width: 480px) { .btn { width: 100%; } .btn-row { flex-direction: column; align-items: stretch; } }

.link {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 500; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 1px solid currentColor; line-height: 1.2;
  transition: gap .35s var(--ease), opacity .3s;
}
.link::after { content: "→"; font-family: var(--font-display); font-size: 1.2em; line-height: 0; transition: transform .35s var(--ease); }
.link:hover::after { transform: translateX(4px); }
.link--back::after { content: none; }
.link--back::before { content: "←"; font-family: var(--font-display); font-size: 1.2em; line-height: 0; }
.link--quiet { border-bottom-color: var(--sand); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header-h);
  background: var(--paper); color: var(--navy);
  border-bottom: 1px solid transparent;
  transition: height .45s var(--ease), background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.header.is-scrolled { --header-h: 66px; --mark-h: 38px; border-bottom-color: var(--sand); }
.header--over:not(.is-scrolled) { background: transparent; color: var(--ivory); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--gap); }

.brand { display: inline-flex; align-items: center; gap: clamp(12px, 1.4vw, 18px); flex-shrink: 0; }
.brand__mark { height: var(--mark-h); width: auto; transition: height .45s var(--ease); }
.brand__word { height: calc(var(--mark-h) * .19); width: auto; transition: height .45s var(--ease); margin-top: calc(var(--mark-h) * .06); }
.brand__img--ivory { display: none; }
.header--over:not(.is-scrolled) .brand__img--navy { display: none; }
.header--over:not(.is-scrolled) .brand__img--ivory { display: block; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); }
.nav__link {
  position: relative; display: inline-block; padding: 8px 0;
  font-weight: 500; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; line-height: 1.2;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current]::after { transform: scaleX(1); }
/* Owners sub-menu (chrome.py): opens on hover and on keyboard focus, no script; the phone panel lists the pages flat. */
.nav__item--sub { position: relative; }
.nav__item--sub > .nav__link { padding-right: 13px; }
.nav__item--sub > .nav__link::after { right: 13px; }
.nav__item--sub > .nav__link::before {
  content: ""; position: absolute; right: 1px; top: 50%; width: 5px; height: 5px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; opacity: .7;
  transform: translateY(-75%) rotate(45deg); transition: transform .3s var(--ease);
}
.nav__item--sub:hover > .nav__link::before, .nav__item--sub:focus-within > .nav__link::before { transform: translateY(-25%) rotate(225deg); }
.nav__sub {
  position: absolute; top: calc(100% + 12px); left: -24px; min-width: 230px; padding: 10px 0;
  background: var(--navy); color: var(--ivory); border: 1px solid rgba(243, 235, 221, .14);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 13px; } /* hover bridge */
.nav__item--sub:hover > .nav__sub, .nav__item--sub:focus-within > .nav__sub {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
/* Escape closes it until the pointer or the focus leaves (site.js; WCAG 1.4.13) */
.nav__item--sub.is-closed > .nav__sub { opacity: 0; visibility: hidden; transition: none; }
.nav__item--sub.is-closed > .nav__link::before { transform: translateY(-75%) rotate(45deg); }
.nav__sublink {
  display: block; padding: 11px 24px; white-space: nowrap;
  font-weight: 500; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; line-height: 1.2;
  opacity: .8; transition: opacity .3s;
}
.nav__sublink:hover, .nav__sublink[aria-current] { opacity: 1; }
.nav__sublink[aria-current] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

.header__right { display: none; align-items: center; gap: clamp(16px, 2vw, 28px); }
.header__utility {
  font-weight: 500; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; opacity: .8;
  padding: 8px 0; border-bottom: 1px solid transparent; transition: opacity .3s, border-color .3s;
}
.header__utility:hover, .header__utility[aria-current] { opacity: 1; border-bottom-color: currentColor; }
.header .btn { min-height: 44px; padding: 10px 22px; }
.header--over:not(.is-scrolled) .btn { background: transparent; color: var(--ivory); border-color: rgba(243, 235, 221, .7); }
.header--over:not(.is-scrolled) .btn:hover { background: var(--ivory); color: var(--navy); border-color: var(--ivory); }

/* FR | EN: the current language bold and underlined, the other lighter in weight, never in opacity (« EN » fell to 2.4:1
   on the bed photo at .55; 24/10/2026) */
.lang { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; }
.lang__sep { opacity: .5; }
.lang__item { padding: 6px 0; border-bottom: 1px solid transparent; font-weight: 400; transition: border-color .3s; }
.lang__item[aria-current="true"] { font-weight: 700; border-bottom-color: currentColor; }
a.lang__item:hover { border-bottom-color: currentColor; }
.header--over:not(.is-scrolled) .lang, .header--over:not(.is-scrolled) .nav__link, .header--over:not(.is-scrolled) .header__utility { text-shadow: 0 0 2px rgba(8, 22, 39, .45), 0 1px 10px rgba(8, 22, 39, .75); }

.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; padding: 10px; margin-right: -10px;
}
.burger span { display: block; height: 1px; background: currentColor; transition: transform .4s var(--ease), opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
  .nav { display: block; }
  .header__right { display: flex; }
  .burger { display: none; }
}
/* Below 1024px the study CTA stays visible next to the burger; the rest of the right block is in the panel. */
@media (max-width: 1023px) {
  .header__right { display: flex; gap: 10px; }
  .header__utility, .header__right .lang { display: none; }
  .header .btn { min-height: 44px; padding: 10px 14px; font-size: .75rem; letter-spacing: .14em; }
  body.menu-open .header .btn { color: var(--ivory); border-color: rgba(243, 235, 221, .7); }
}
/* The ivory wordmark rule (.header--over:not(.is-scrolled) .brand__img--ivory) outranks a bare .brand__word: repeat it here,
   or the wordmark shows on phones over a dark hero and pushes the burger off screen (audit of 03/10/2026). */
@media (max-width: 599px) { .header .brand__word, .header--over:not(.is-scrolled) .brand__img--ivory.brand__word { display: none; } }
.burger { flex-shrink: 0; }
/* 1024–1439px: six menu items on one row; the wordmark steps aside (the mark stays), and below 1280px the guests link
   too (it is in the footer) */
@media (min-width: 1024px) and (max-width: 1439px) {
  .header .brand__word, .header--over:not(.is-scrolled) .brand__img--ivory.brand__word { display: none; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .header__utility { display: none; }
  .nav__list { gap: clamp(16px, 1.8vw, 28px); }
}

/* Mobile panel */
.panel {
  position: fixed; inset: 0; z-index: 55; display: none;
  background: var(--navy); color: var(--ivory);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  overflow-y: auto;
}
.panel.is-open { display: flex; flex-direction: column; }
.panel__nav { display: flex; flex-direction: column; flex: 1 0 auto; }
/* the language switch first, at the top of the panel (audit NAV-15); targets of 44 px */
.panel__head { margin: -12px 0 12px; }
.panel .lang { font-size: .8rem; gap: 4px; }
.panel .lang__item { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 6px; border-bottom: 0; text-decoration: none; }
.panel .lang__item[aria-current="true"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.panel .lang__item:first-child { margin-left: -6px; }
.panel__list { display: flex; flex-direction: column; gap: 4px; }
.panel__link {
  display: block; padding: 14px 0; border-bottom: 1px solid rgba(243, 235, 221, .16);
  font-family: var(--font-display); font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.1;
}
.panel__link[aria-current] { padding-left: 18px; border-left: 1px solid var(--ivory); }
.panel__foot { margin-top: auto; padding-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.panel__meta { display: flex; flex-direction: column; gap: 8px; font-size: .95rem; color: var(--ivory-soft); }
body.menu-open { overflow: hidden; }
body.menu-open .header { background: var(--navy); color: var(--ivory); border-bottom-color: rgba(243,235,221,.16); }
body.menu-open .brand__img--navy { display: none; }
body.menu-open .brand__img--ivory { display: block; }

main { display: block; }
.main--paper { padding-top: var(--header-h); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  min-height: min(100svh, 1100px);   /* plafonné : le rendu de Google utilise un écran de plusieurs milliers de pixels de haut */
  display: grid; align-items: end;
  background: var(--navy); color: var(--ivory);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transform-origin: 50% 60%; }
/* The veil sits only where there is text, the rest of the photo stays bright (choice of 24/10/2026; one veil for the
   three photos of the home hero). Computer: a band under the header, a shadow from the bottom left under the title, the
   lede and the buttons, and a softer one at the bottom right under the times. Phone (below): the top (header, times)
   and the bottom (the text). Measured at 4.5:1 or more on the three photos for the kicker, the title, the lede, the times,
   the caption and the language link (375 to 1920 px, 24/10/2026). */
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(8, 22, 39, .6) 0, rgba(8, 22, 39, .45) 80px, rgba(8, 22, 39, 0) 170px),
    linear-gradient(to top, rgba(8, 22, 39, .72) 0%, rgba(8, 22, 39, .62) 16%, rgba(8, 22, 39, 0) 32%);
}
/* under the text: dark on the left, fading to the right, and only over the lower part (a soft-edged block) */
.hero__scrim::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(8, 22, 39, .74) 0%, rgba(8, 22, 39, .7) 48%, rgba(8, 22, 39, .42) 63%, rgba(8, 22, 39, 0) 80%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 58%, transparent 76%);
  mask-image: linear-gradient(to top, #000 0%, #000 58%, transparent 76%);
}
@media (min-width: 768px) and (max-width: 1023px) {
  /* tablet: the text runs across most of the width, the times under it: one band from the bottom */
  .hero__scrim::before { background: rgba(8, 22, 39, .72); -webkit-mask-image: linear-gradient(to top, #000 0%, #000 40%, transparent 56%); mask-image: linear-gradient(to top, #000 0%, #000 40%, transparent 56%); }
}
.hero__content { padding-block: calc(var(--header-h) + 40px) clamp(56px, 9vh, 120px); }
.hero__title { max-width: 22ch; }
.hero__eyebrow { color: var(--ivory-soft); }
.hero__eyebrow + .hero__title { margin-top: 1.3rem; }
/* H1 = search line (kicker) + signature title: the kicker carries the keywords, the title the voice */
.hero__h, .page-head__h { font: inherit; letter-spacing: inherit; }
.hero__h > span, .page-head__h > span { display: block; }
.hero__sub { margin-top: 1.5rem; color: var(--ivory-soft); }
.hero__lede { margin-top: 1.4rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.5; max-width: 52ch; color: var(--ivory-soft); }
.hero__cta { margin-top: 2.5rem; }
@media (min-width: 1280px) { .hero__title { max-width: 21ch; } }
/* "Du matin au soir": three photos in a slow cross-fade (site.js), each one zooming gently while shown */
.hero__frame { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity 1.6s ease; }
.hero__frame.is-on { opacity: 1; }
.hero__frame img { transition: transform 9s linear; }
.hero--motion .hero__frame.is-on img { transform: scale(1.06); }
/* The kicker of the H1 and the lede in full ivory with a soft shadow on the photos (audit of 22/10/2026) */
.hero .hero__eyebrow { color: var(--ivory); text-shadow: 0 1px 10px rgba(8, 22, 39, .7); }
.hero .hero__lede { color: var(--ivory); text-shadow: 0 1px 12px rgba(8, 22, 39, .55); }
.hero .hero__title { text-shadow: 0 1px 18px rgba(8, 22, 39, .45); }
@media (max-width: 767px) {
  /* phone: the times sit at the top, the text fills the photo from the middle down */
  .hero__scrim { background: linear-gradient(to bottom, rgba(8, 22, 39, .66) 0%, rgba(8, 22, 39, .52) 20%, rgba(8, 22, 39, 0) 32%); }
  .hero__scrim::before {
    background: rgba(8, 22, 39, .74);
    /* the text block is about 450 px high above the bottom room (128 px): covered on short screens too */
    -webkit-mask-image: linear-gradient(to top, #000 0%, #000 max(62%, 590px), transparent max(76%, 660px));
    mask-image: linear-gradient(to top, #000 0%, #000 max(62%, 590px), transparent max(76%, 660px));
  }
}
.hero__frame--persiennes img { object-position: 50% 55%; }
.hero__frame--lit img { object-position: 50% 60%; }
.hero__frame--astreinte img { object-position: 50% 70%; }
@media (max-width: 767px) {
  .hero__frame--persiennes img { object-position: 24% 50%; }
  .hero__frame--lit img { object-position: 62% 50%; }
  .hero__frame--astreinte img { object-position: 40% 50%; }
}
.hero__day {
  position: absolute; z-index: 1; right: var(--gutter); bottom: clamp(56px, 9vh, 120px);
  display: grid; justify-items: end; gap: 10px; text-align: right;
}
.hero__day[hidden] { display: none; }
.hero__times { display: flex; gap: clamp(12px, 1.4vw, 20px); }
.hero__times button {
  position: relative; min-height: 44px; min-width: 44px; padding: 10px 6px; border: 0; background: none; cursor: pointer;
  font-family: var(--font-display); font-size: clamp(1.05rem, 1.4vw, 1.3rem); color: var(--ivory); text-shadow: 0 0 2px rgba(8, 22, 39, .5), 0 1px 10px rgba(8, 22, 39, .85);
  opacity: .75; transition: opacity .6s var(--ease); font-variant-numeric: tabular-nums;
}
.hero__times button:hover, .hero__times button.is-on { opacity: 1; }
.hero__times button::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--sand); }
.hero__times button.is-on::after { width: 100%; transition: width var(--hero-step, 6s) linear; }
/* stopped (a time chosen, Pause, or the round done): the chosen time keeps a full, still line */
.hero__day.is-still .hero__times button.is-on::after { transition: none; }
/* Pause / Play (site.js): two bars, or a triangle once paused */
.hero__times .hero__pause { display: inline-grid; place-items: center; opacity: 1; }
.hero__pause span { display: block; width: 11px; height: 13px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; filter: drop-shadow(0 1px 4px rgba(8, 22, 39, .8)); }
.hero__pause.is-paused span { width: 0; height: 0; border-style: solid; border-color: transparent; border-width: 7px 0 7px 12px; border-left-color: currentColor; }
.hero__times .hero__pause::after { display: none; }
.hero__caption { margin: 0; font-size: .8rem; letter-spacing: .06em; color: var(--ivory); text-shadow: 0 0 2px rgba(8, 22, 39, .5), 0 1px 10px rgba(8, 22, 39, .85); min-height: 1.4em; }
/* times in full ivory (audit of 22/10/2026); on the phone, at the top under the header */
.hero__times button { opacity: 1; }
@media (max-width: 767px) {
  .hero__day { top: calc(var(--header-h) + 8px); bottom: auto; gap: 4px; }
  .hero__caption { max-width: none; line-height: 1.3; }
  /* the text starts under the times and their caption, also on short screens (375 x 667: they overlapped) */
  .hero__content { padding-top: calc(var(--header-h) + 84px); }
}
/* Phone: the two buttons side by side, and room kept under them for the cookie banner (about 110 px): the banner never
   covers them and the hero does not move when it comes or goes (24/10/2026). */
@media (max-width: 480px) {
  .hero__cta { flex-direction: row; gap: 10px; }
  .hero__cta .btn { flex: 1 1 0; width: auto; min-width: 0; padding: 12px 8px; letter-spacing: .16em; }
  .hero__content { padding-bottom: max(clamp(56px, 9vh, 120px), 128px); }
}

/* ---------- Intro "la marée" (home, first page of the visit) ----------
   Shown only when the inline script in <head> sets html.intro. The page is rendered
   underneath; the sea leaves on its own (CSS), site.js only cleans up and lets visitors skip.
   Since 04/10/2026: the sea is the night of the theme (same blue, a few stars) and stays one second
   before leaving (site.js starts the hero's slow zoom at the same moment). */
.intro-veil { display: none; }
.intro .intro-veil { display: block; position: fixed; inset: 0; z-index: 200; overflow: hidden; --wh: max(18px, 4.2vw);
  animation: intro-off 0s linear 1.6s forwards; }   /* se retire seul, même si site.js ne s'exécute pas */
.intro-veil.is-skipped { opacity: 0; transition: opacity .26s ease; }
.intro-sea {
  position: absolute; inset: 0; background-color: #04060F;
  background-image:
    radial-gradient(ellipse 70% 58% at 50% 42%, #182452 0%, rgba(24, 36, 82, 0) 100%),
    radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, .7), transparent 1.5px),
    radial-gradient(1px 1px at 140px 80px, rgba(255, 255, 255, .55), transparent 1.5px),
    radial-gradient(1.5px 1.5px at 90px 160px, rgba(255, 255, 255, .65), transparent 2px),
    radial-gradient(1px 1px at 230px 40px, rgba(255, 255, 255, .45), transparent 1.5px),
    radial-gradient(1px 1px at 300px 190px, rgba(255, 255, 255, .6), transparent 1.5px),
    radial-gradient(1.5px 1.5px at 360px 110px, rgba(255, 255, 255, .4), transparent 2px);
  background-size: auto, 420px 240px, 420px 240px, 420px 240px, 420px 240px, 420px 240px, 420px 240px;
  background-repeat: no-repeat, repeat, repeat, repeat, repeat, repeat, repeat;
  animation: intro-tide .45s cubic-bezier(.7, 0, .2, 1) 1s forwards;
}
.intro-sea::after {
  content: ""; position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: var(--wh);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath fill='%2304060F' d='M0 0H200V10C150 20 150 0 100 10C50 20 50 0 0 10Z'/%3E%3C/svg%3E") repeat-x;
  background-size: calc(var(--wh) * 9) 100%;
  animation: intro-drift 1.5s linear both;
}
.intro-sea__inner {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(10px, 1.6vw, 20px);
  animation: intro-out .18s ease .98s forwards;
}
.intro-sea__mark { width: clamp(92px, 11vw, 150px); aspect-ratio: 169 / 124; overflow: hidden; animation: intro-rise .5s var(--ease) .08s both; }
.intro-sea__mark img { display: block; width: 100%; height: auto; }
.intro-sea__wave { width: clamp(150px, 19vw, 250px); height: auto; overflow: visible; }
.intro-sea__wave path {
  fill: none; stroke: var(--ivory); stroke-width: 1.4; stroke-linecap: round;
  stroke-dasharray: 1 1.2; stroke-dashoffset: 1.05; /* dash parked before the start: no round cap showing as a dot */
  animation: intro-draw .7s cubic-bezier(.45, 0, .25, 1) .12s forwards;
}
@keyframes intro-tide { to { transform: translateY(calc(-100% - var(--wh))); } }
@keyframes intro-off { to { visibility: hidden; pointer-events: none; } }
@keyframes intro-drift { to { background-position-x: calc(var(--wh) * -4); } }
@keyframes intro-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes intro-out { to { opacity: 0; } }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }

/* Page head (paper pages) */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.page-head__title { max-width: 24ch; }
.page-head .lede { margin-top: 1.5rem; max-width: 52ch; }
.page-head--center { text-align: center; }
.page-head--center .page-head__title, .page-head--center .lede { margin-inline: auto; }
/* Breadcrumb (second-level pages: services, towns, articles) */
.crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem .55rem; margin-bottom: 1.6rem; font-size: .8rem; letter-spacing: .04em; color: var(--ink-soft); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin-right: .55rem; opacity: .45; }
.crumbs a { border-bottom: 1px solid var(--sand); transition: border-color .3s; }
.crumbs a:hover { border-color: currentColor; }

/* ---------- Media ---------- */
.frame { position: relative; overflow: hidden; background: var(--sand-faint); border-radius: var(--radius); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame > picture, .hero__media > picture { display: block; width: 100%; height: 100%; }
.frame--3-4 { aspect-ratio: 3 / 4; }
.frame--4-5 { aspect-ratio: 4 / 5; }
.frame--4-3 { aspect-ratio: 4 / 3; }
.frame--3-2 { aspect-ratio: 3 / 2; }
.frame--16-9 { aspect-ratio: 16 / 9; }
.frame--21-9 { aspect-ratio: 21 / 9; }
.frame--pano { aspect-ratio: 12 / 5; }
@media (max-width: 767px) { .frame--21-9, .frame--pano { aspect-ratio: 4 / 3; } }
.frame--zoom img { transition: transform 1.6s var(--ease); }
a:hover .frame--zoom img, .door:hover .frame--zoom img { transform: scale(1.035); }
.caption { margin-top: .9rem; font-size: .85rem; color: var(--ink-soft); }
.on-navy .caption { color: var(--ivory-soft); }
.band-img { width: 100%; }

/* Three words */
.words { display: grid; grid-template-columns: 1fr; }
.words__item {
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: var(--hair);
  font-family: var(--font-display); font-size: clamp(2.6rem, 7vw, 6.4rem); line-height: 1; letter-spacing: -.01em;
}
.words__item:last-child { border-bottom: var(--hair); }
.words__item { overflow-wrap: anywhere; }
@media (min-width: 768px) {
  .words { grid-template-columns: repeat(3, 1fr); border-top: var(--hair); border-bottom: var(--hair); }
  .words__item { border: 0; padding-inline: clamp(16px, 2vw, 32px); }
  .words__item + .words__item { border-left: var(--hair); }
  .words__item:first-child { padding-left: 0; }
}

/* Doors */
.door { display: block; position: relative; color: var(--ivory); }
.door__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 22, 39, .72) 0%, rgba(8, 22, 39, .1) 55%, rgba(8, 22, 39, 0) 100%);
}
.door__text { position: absolute; left: clamp(20px, 3vw, 40px); right: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 40px); }
.door__text .label { color: var(--ivory); }
.door__title { margin-top: .5rem; }
.door__line { margin-top: .6rem; max-width: 34ch; color: var(--ivory); }
/* Phone: the text on the bottom of the photo again, over a dark gradient; the owners' card is taller (4:5), so its text
   no longer overflows the frame onto the pale stone (audit of 22/10/2026; choice of 24/10/2026) */
@media (max-width: 767px) {
  .door__frame::after { background: linear-gradient(to top, rgba(8, 22, 39, .93) 0%, rgba(8, 22, 39, .88) 60%, rgba(8, 22, 39, .5) 76%, rgba(8, 22, 39, 0) 90%); }
  .door--large .door__frame img { object-position: 50% 30%; }
  .door__text { text-shadow: 0 1px 10px rgba(8, 22, 39, .6); }
}
.door .link { margin-top: 1.2rem; color: var(--ivory); border-bottom-color: rgba(243, 235, 221, .5); }
.door--large .door__frame { aspect-ratio: 4 / 5; }   /* phone; square, then 5:4, on larger screens */
.door--small .door__frame { aspect-ratio: 4 / 5; }
.door--small .door__frame img { object-position: 50% 30%; }
@media (min-width: 768px) {
  /* the owners' photo (pale stone and wall) needs a denser veil than the night photo of the guests' card */
  .door--large .door__frame::after { background: linear-gradient(to top, rgba(8, 22, 39, .88) 0%, rgba(8, 22, 39, .62) 55%, rgba(8, 22, 39, .3) 100%); }
  .door--large .door__frame { aspect-ratio: 1 / 1; }
  .door--large .door__title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
  .door--small { min-height: 100%; }
  .door--small .door__frame { position: absolute; inset: 0; aspect-ratio: auto; }
  .door--small .door__title { font-size: clamp(1.4rem, 2.1vw, 1.9rem); }
}
@media (min-width: 768px) and (max-width: 1279px) { .door--small .door__line { display: none; } }
@media (min-width: 1280px) {
  .door--large .door__frame { aspect-ratio: 5 / 4; }
  .door--large .door__title { font-size: clamp(2rem, 3.6vw, 3.25rem); }
}

/* Triptych */
.trip { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .trip { grid-template-columns: repeat(3, 1fr); } .trip__item:nth-child(2) { margin-top: clamp(24px, 4vw, 64px); } }
.trip__item .h4 { margin-top: 1rem; }
.trip__item p { margin-top: .6rem; color: var(--ink-soft); max-width: 36ch; }

/* Steps */
.steps { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.step { border-top: 1px solid var(--navy); padding-top: 1.4rem; }
.step__num { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink-faint); letter-spacing: .04em; }
.step .h4 { margin-top: .7rem; }
.step p { margin-top: .7rem; color: var(--ink-soft); max-width: 34ch; }
.on-navy .step { border-top-color: rgba(243, 235, 221, .3); }
.on-navy .step__num { color: var(--ivory-soft); }
.on-navy .step p { color: var(--ivory-soft); }

/* Line lists */
.lines { border-top: var(--hair); }
.lines__item { display: flex; gap: var(--gap); justify-content: space-between; align-items: baseline; padding: 1.05rem 0; border-bottom: var(--hair); }
.lines__item .h4 { font-size: clamp(1.2rem, 1.4vw, 1.4rem); }
.lines__num { font-family: var(--font-display); color: var(--ink-faint); min-width: 2.2em; }
.lines__item > span:last-child { color: var(--ink-soft); font-size: .95rem; text-align: right; }
@media (max-width: 767px) { .lines__item { flex-wrap: wrap; } .lines__item > span:last-child { text-align: left; flex-basis: 100%; padding-left: 2.2em; } }
.lines--stack .lines__item { flex-direction: column; align-items: flex-start; gap: .4rem; }
.lines--stack .lines__item > span:last-child { text-align: left; padding-left: 0; max-width: 56ch; flex-basis: auto; }
.on-navy .lines, .on-navy .lines__item { border-color: rgba(243, 235, 221, .22); }
.on-navy .lines__num, .on-navy .lines__item > span:last-child { color: var(--ivory-soft); }

/* Partner frames */
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
@media (min-width: 768px) { .slots { grid-template-columns: repeat(4, 1fr); } }
.slot {
  aspect-ratio: 3 / 2; border: var(--hair); border-radius: var(--radius);
  display: grid; place-items: center; color: var(--ink-faint);
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(217, 205, 184, .22) 14px 15px);
}
.slot span { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; }
.on-navy .slot { border-color: rgba(243, 235, 221, .22); color: rgba(243, 235, 221, .5); background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(243, 235, 221, .07) 14px 15px); }

/* Partner profile */
.partner { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .partner { grid-template-columns: 5fr 7fr; align-items: start; } }
.partner__body .h2 { margin-top: .8rem; }
.partner__body > p { margin-top: 1.2rem; max-width: 56ch; color: var(--ink-soft); }
.partner__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 2rem; color: var(--ink-soft); font-size: .95rem; }

/* Partner trades (one column per trade, filled or reserved) */
.trades { display: grid; gap: var(--gap); }
@media (min-width: 640px) { .trades { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .trades { grid-template-columns: repeat(5, 1fr); } }
.trade { display: flex; flex-direction: column; gap: .6rem; padding-top: 1.3rem; border-top: var(--hair); min-height: 170px; }
.trade--filled { border-top-color: var(--navy); }
.trade__label { font-weight: 500; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.trade__name { font-family: var(--font-display); font-size: clamp(1.5rem, 1.8vw, 1.85rem); line-height: 1.1; }
.trade__name--open { font-style: italic; color: rgba(11, 31, 51, .62); }
.trade p { font-size: .95rem; color: var(--ink-soft); max-width: 30ch; }
.trade .link { margin-top: auto; font-size: .66rem; }
.trades-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; margin-top: 2.5rem; }
.trades-foot .caption { margin-top: 0; }

/* Monthly report specimen */
.report { background: var(--ivory); border: var(--hair); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.report__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.report__title { margin-top: 1.4rem; font-family: var(--font-display); font-size: clamp(1.6rem, 2.2vw, 2rem); line-height: 1.1; }
.report__meta { margin-top: .3rem; font-size: .9rem; color: var(--ink-soft); }
.report .lines { margin-top: 1.5rem; border-top-color: var(--navy); }
.report .lines__item { align-items: center; flex-wrap: nowrap; }
/* la valeur garde sa largeur naturelle (45 % au plus) : le libellé ne s'écrase plus sous 768 px */
.report .lines__item > span:last-child { flex: 0 1 auto; max-width: 45%; padding-left: 0; text-align: right; }
.report__mask { display: block; height: 14px; background: var(--sand); border-radius: var(--radius); flex-shrink: 0; }
.report .lines__item > .report__mask { flex-basis: auto; padding-left: 0; }
.report__note { margin-top: 1.4rem; font-size: .85rem; color: var(--ink-soft); }

/* Owner area video (home, owners page): landscape from 768px, portrait below. Nothing loads before the click
   (preload="none"); site.js adds the play button and hands over to the browser's own controls. */
.film { position: relative; overflow: hidden; border: var(--hair); border-radius: var(--radius); background: var(--navy); }
.film video { display: block; width: 100%; height: auto; }
.film--wide { display: none; }
.film--tall { max-width: 400px; margin-inline: auto; }
@media (min-width: 768px) { .film--wide { display: block; } .film--tall { display: none; } }
.film__play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0; border: 0; background: none; color: var(--ivory); font: inherit; cursor: pointer; }
.film--wide .film__play { padding-left: 36%; }                       /* beside the title of the poster */
.film--tall .film__play { justify-content: flex-end; padding-bottom: 12%; }  /* below it */
.film__icon { position: relative; width: 72px; height: 72px; border-radius: 50%; background: var(--ivory); box-shadow: 0 10px 30px rgba(8, 22, 39, .35); transition: transform .2s ease; }
.film__icon::after { content: ""; position: absolute; left: 28px; top: 23px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--navy); }
.film__play:hover .film__icon, .film__play:focus-visible .film__icon { transform: scale(1.06); }
.film__play:focus-visible { outline: 2px solid var(--ivory); outline-offset: -6px; }   /* tracé à l'intérieur : .film rogne ce qui dépasse */
.film__label { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(8, 22, 39, .7); }
.film.is-playing .film__play { display: none; }
/* Poster: a lazy <picture> instead of the poster attribute (which loads at once, even in the hidden format).
   Shown once site.js has set up the button (.is-ready), hidden when the film starts (.is-started). Without
   JavaScript it stays hidden and the browser's own controls remain usable. */
.film__poster { display: none; position: absolute; inset: 0; }
.film__poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.film.is-ready .film__poster { display: block; }
.film.is-started .film__poster { display: none; }
.film__caption { margin-top: .9rem; font-size: .85rem; color: var(--ink-soft); max-width: 60ch; }
/* The video as text: scene by scene, under the caption */
.film__text { margin-top: .6rem; font-size: .85rem; color: var(--ink-soft); max-width: 60ch; }
.film__text summary { width: fit-content; cursor: pointer; color: var(--ink); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.film__text p { margin-top: .6rem; }
.film__text ol { margin-top: .6rem; padding-left: 1.4em; list-style: decimal; display: grid; gap: .45rem; }
.film__text b { font-weight: 500; color: var(--ink); }

/* ---------- Owner-area page (/espace-proprietaire/): the guided tour, real screens in a computer or phone frame ---------- */
.tour { display: grid; gap: clamp(64px, 9vw, 128px); margin-top: clamp(48px, 6vw, 88px); }
.tour__row { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
.tour__text, .tour__media { min-width: 0; }
.tour__text .h3 { text-wrap: balance; }
.tour__pts { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .75rem; }
.tour__pts li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--ink-soft); line-height: 1.55; }
.tour__pts b { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%;
  background: #FFC98A; color: #04060F; font-size: .72rem; font-weight: 600; }
/* the computer frame from 900px; below, the phone capture of the same screen (lazy images load only where shown) */
.tour__wide { display: none; }
@media (min-width: 900px) {
  .tour__row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .tour__row--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .tour__row--flip .tour__text { order: 2; }
  .tour__row--phone { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .tour__wide { display: block; }
  .tour__narrow { display: none; }
}
/* phone layout: no markers on the screens, so the list loses its numbers */
@media (max-width: 899px) {
  .tour__pts li { grid-template-columns: 14px minmax(0, 1fr); }
  .tour__pts li::before { content: ""; width: 6px; height: 6px; margin-top: .6em; border-radius: 50%; background: #FFC98A; }
  .tour__pts b, .tour__row .mark { display: none; }
}
.device { position: relative; margin: 0; }
.device__screen { position: relative; overflow: hidden; background: #F6F1E8; }
.device__screen picture, .device__screen img { display: block; width: 100%; height: auto; }
.device--browser { border: 1px solid rgba(255, 240, 214, .2); border-radius: 12px; overflow: hidden; background: #0B1124;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5), 0 0 60px rgba(255, 201, 138, .06); }
.device__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-bottom: 1px solid rgba(255, 240, 214, .12); }
.device__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 240, 214, .26); }
.device__url { margin-left: 12px; flex: 0 1 280px; height: 20px; padding: 0 12px; border-radius: 10px; background: rgba(255, 240, 214, .08);
  font-size: .68rem; line-height: 20px; letter-spacing: .02em; color: rgba(247, 241, 230, .6); white-space: nowrap; overflow: hidden; }
.device--phone { width: min(320px, 100%); margin-inline: auto; padding: 10px; border: 1px solid rgba(255, 240, 214, .2); border-radius: 44px;
  background: #0B1124; box-shadow: 0 40px 90px rgba(0, 0, 0, .5), 0 0 60px rgba(255, 201, 138, .06); }
.device--phone .device__screen { border-radius: 34px; }
.device--phone.tour__narrow { width: min(280px, 100%); }
.mark { position: absolute; left: var(--x); top: var(--y); width: 26px; height: 26px; margin: -13px 0 0 -13px; display: grid; place-items: center;
  border-radius: 50%; background: #FFC98A; color: #04060F; font-size: .74rem; font-weight: 600;
  box-shadow: 0 0 0 5px rgba(255, 201, 138, .28), 0 8px 20px rgba(4, 6, 15, .45); }
@media (prefers-reduced-motion: reduce) { .film__icon { transition: none; } }

/* Note (house note / sample quote) */
.note { text-align: center; }
.note__text { font-family: var(--font-display); font-size: clamp(1.6rem, 2.8vw, 2.5rem); line-height: 1.3; font-style: italic; max-width: 26ch; margin-inline: auto; text-wrap: pretty; }
.note__meta { margin-top: 1.5rem; color: var(--ink-soft); }

/* Closing band */
.closing { text-align: center; }
.closing__lockup { width: clamp(220px, 26vw, 320px); margin: 0 auto; }
.closing__title { margin-top: clamp(32px, 4vw, 56px); max-width: 22ch; margin-inline: auto; }
.closing .eyebrow { margin-bottom: 0; }
.closing .eyebrow + .closing__title { margin-top: 1.2rem; }
.closing .btn-row { justify-content: center; margin-top: 2.2rem; }
.closing__contact { margin-top: 2.2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; color: var(--ivory-soft); }
.closing__contact a { border-bottom: 1px solid rgba(243, 235, 221, .35); transition: border-color .3s; }
.closing__contact a:hover { border-bottom-color: var(--ivory); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: var(--ivory); padding-block: clamp(56px, 7vw, 96px) 32px; }
.footer__grid { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
/* Brand column kept short (05/10/2026): horizontal logo, e-mail and phone in words, the other channels as one row of icons */
.footer__logo { display: flex; align-items: center; gap: 14px; }
.footer__logo img { height: 46px; width: auto; }
.footer__logo .footer__word { height: 10px; margin-top: 3px; }
.footer__tag { margin-top: 1rem; color: var(--ivory-soft); font-size: .95rem; }
.footer__contact { margin-top: 1rem; display: flex; flex-direction: column; gap: 4px; }
.footer__social { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 10px; }
.footer__icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(243, 235, 221, .3); color: var(--ivory); transition: border-color .3s, color .3s;
}
.footer__icon svg { width: 18px; height: 18px; fill: currentColor; }
.footer__icon:hover { border-color: var(--ivory); }
.footer__hours { margin-top: .9rem; color: var(--ivory-soft); font-size: .9rem; }
/* Phone: link columns two by two, the brand column across the top */
@media (max-width: 767px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
.footer__contact a { border-bottom: 1px solid rgba(243, 235, 221, .3); width: fit-content; transition: border-color .3s; }
.footer__contact a:hover { border-bottom-color: var(--ivory); }
.footer__col .label { color: var(--ivory-soft); margin-bottom: 1.1rem; display: block; }
.footer__col ul { display: flex; flex-direction: column; gap: .55rem; }
.footer__col a { font-size: .97rem; border-bottom: 1px solid transparent; transition: border-color .3s; }
.footer__col a:hover { border-bottom-color: rgba(243, 235, 221, .5); }
/* Town pages (chrome.py, TOWNS): one wrapped line under the columns */
.footer__towns { margin-top: clamp(40px, 5vw, 56px); padding-top: 24px; border-top: 1px solid rgba(243, 235, 221, .18); }
.footer__towns-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer__towns .label { color: var(--ivory-soft); display: block; }
.footer__towns ul { display: flex; flex-wrap: wrap; gap: 2px 0; margin-top: .8rem; }
/* Phone only: the list folds behind a button (site.js); without script it stays open */
.footer__towns-toggle { display: none; }
@media (max-width: 767px) {
  html:not(.no-js) .footer__towns-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none;
    font: inherit; font-size: .88rem; color: var(--ivory-soft); cursor: pointer;
  }
  .footer__towns-toggle::after {
    content: ""; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
    transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease);
  }
  .footer__towns-toggle[aria-expanded="true"]::after { transform: translateY(1px) rotate(225deg); }
  html:not(.no-js) .footer__towns:not(.is-open) ul { display: none; }
}
.footer__towns li:not(:last-child)::after { content: "·"; margin-inline: .7em; opacity: .45; }
.footer__towns a { font-size: .93rem; color: var(--ivory-soft); border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.footer__towns a:hover { color: var(--ivory); border-bottom-color: rgba(243, 235, 221, .5); }
/* Phone: 44 px tap targets in the footer (audit of 03/10/2026) */
@media (max-width: 767px) {
  .footer__col ul { gap: 0; }
  .footer__col a, .footer__contact a, .footer__legal a, .footer__legal button, .footer__towns a { display: inline-block; padding-block: 9px; }
}
.footer__bottom {
  margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid rgba(243, 235, 221, .18);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px;
  font-size: .85rem; color: var(--ivory-soft);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__legal a:hover, .footer__legal button:hover { color: var(--ivory); }
.footer__manifesto { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--ivory); flex-basis: 100%; margin-bottom: 8px; }

/* ---------- Timeline (method) ---------- */
.timeline { border-top: 1px solid var(--navy); }
.tl { display: grid; gap: 8px var(--gap); padding: 1.6rem 0; border-bottom: var(--hair); }
@media (min-width: 768px) { .tl { grid-template-columns: 80px 1fr 1.4fr; align-items: baseline; } }
.tl__num { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink-faint); }
.tl p { color: var(--ink-soft); max-width: 52ch; }

/* Two columns (before / during) */
.twocol { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .twocol { grid-template-columns: 1fr 1fr; } }
.twocol__col { border-top: 1px solid var(--navy); padding-top: 1.4rem; }
.twocol__col ul { margin-top: 1.2rem; }
.twocol__col li { padding: .7rem 0; border-bottom: var(--hair); color: var(--ink-soft); }

/* ---------- Services menu ---------- */
.menu { border-top: 1px solid var(--navy); }
.menu__item { display: grid; gap: var(--gap); padding: clamp(32px, 4vw, 56px) 0; border-bottom: var(--hair); }
@media (min-width: 768px) {
  .menu__item { grid-template-columns: 90px 1fr 280px; align-items: start; }
  .menu__item:nth-child(even) { grid-template-columns: 280px 1fr 90px; }
  .menu__item:nth-child(even) .menu__num { order: 3; text-align: right; }
  .menu__item:nth-child(even) .menu__body { order: 2; }
  .menu__item:nth-child(even) .menu__still { order: 1; }
}
@media (min-width: 1280px) { .menu__item, .menu__item:nth-child(even) { grid-template-columns: 110px 1fr 360px; } .menu__item:nth-child(even) { grid-template-columns: 360px 1fr 110px; } }
.menu__num { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink-faint); }
.menu__body p { margin-top: .9rem; max-width: 56ch; color: var(--ink-soft); }
.menu__body .small { margin-top: .8rem; color: var(--ink-faint); }

/* ---------- Territory ---------- */
.chapter { display: grid; gap: var(--gap); padding-block: clamp(40px, 5vw, 72px); border-top: var(--hair); }
@media (min-width: 768px) { .chapter { grid-template-columns: 5fr 7fr; } .chapter--flip .chapter__media { order: 2; } }
.chapter__body p { margin-top: 1rem; max-width: 58ch; }
.chapter__body .label { margin-top: 1.6rem; display: block; }
.seasons { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .seasons { grid-template-columns: repeat(3, 1fr); } }
.season { border-top: 1px solid var(--navy); padding-top: 1.2rem; }
.season p { margin-top: .6rem; color: var(--ink-soft); }
@media (min-width: 768px) { .seasons--4 { grid-template-columns: repeat(2, 1fr); } }
/* ---------- Territoire : la côte, la nuit (choix du 03/10/2026) ----------
   Hero sombre sous l'en-tête transparent (header--over, comme l'accueil) : ciel étoilé, littoral en lumières ambrées,
   une lumière par commune, trajets qui scintillent, satellite. Tout en CSS : complet sans JavaScript, immobile avec
   « réduire les animations ». */
.night {
  --amber: #FFC98A; --amber-soft: rgba(255, 230, 199, .78); --night-ink: #F7F1E6;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  min-height: min(100svh, 1100px);   /* plafonné : le rendu de Google utilise un écran de plusieurs milliers de pixels de haut */
  display: grid; align-items: center;
  background: radial-gradient(ellipse at 72% 18%, #182452 0%, #080C1E 48%, #03040A 100%); color: var(--night-ink);
}
.night__stars {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, .9), transparent 1.5px),
    radial-gradient(1px 1px at 140px 80px, rgba(255, 255, 255, .7), transparent 1.5px),
    radial-gradient(1.5px 1.5px at 90px 160px, rgba(255, 255, 255, .85), transparent 2px),
    radial-gradient(1px 1px at 230px 40px, rgba(255, 255, 255, .6), transparent 1.5px),
    radial-gradient(1px 1px at 300px 190px, rgba(255, 255, 255, .8), transparent 1.5px),
    radial-gradient(1.5px 1.5px at 360px 110px, rgba(255, 255, 255, .55), transparent 2px);
  background-size: 420px 240px;
  animation: night-twinkle 6s ease-in-out infinite alternate;
}
@keyframes night-twinkle { from { opacity: .55; } to { opacity: 1; } }
.night__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); align-items: center; padding-block: calc(var(--header-h) + 32px) clamp(40px, 6vh, 72px); }
.night__inner > * { min-width: 0; }
@media (min-width: 900px) { .night__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: calc(var(--gap) * 1.5); } }
.night .hero__eyebrow { color: var(--amber); }
.night .hero__lede { color: rgba(247, 241, 230, .75); }
.night__legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 2rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(247, 241, 230, .6); }
.night__legend span { display: inline-flex; align-items: center; gap: 9px; }
.night__key { display: inline-block; width: 22px; height: 0; border-top: 1px dashed var(--amber); opacity: .85; }
.night__key--city { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.night__key--coast { border-top-style: dotted; border-top-width: 3px; }
.night__sky { position: relative; }
.night__map { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font-body); }
.night__coast { fill: none; stroke: var(--amber); stroke-linecap: round; stroke-dasharray: 0 9; }
.night__coast--lights { stroke: #FFF0D6; }
.night__coast--hills { stroke-dasharray: 0 15; }
/* the routes breathe (opacity) instead of flowing (stroke-dashoffset, which recomputed the layout at every frame;
   plan 3.14), one after the other */
.night__links line { stroke: var(--amber); stroke-opacity: .3; stroke-width: 1; stroke-dasharray: 3 10; animation: night-flow 2.4s ease-in-out infinite alternate; }
.night__links line:nth-child(3n + 2) { animation-delay: .8s; }
.night__links line:nth-child(3n) { animation-delay: 1.6s; }
@keyframes night-flow { from { opacity: .45; } to { opacity: 1; } }
.night__halo { fill: var(--amber); fill-opacity: .32; transition: fill-opacity .4s; }
.night__halo--base { fill-opacity: .45; }
.night__dot { fill: #FFE6C7; }
.night__dot--base { fill: #FFFFFF; }
.night__city { animation: night-glow 4s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
@keyframes night-glow { from { opacity: .72; } to { opacity: 1; } }
/* labels: the seven main towns about 11 px on screen at 1366 px (they were 7 px), the others a little larger; 12 px on
   the phone (plan 3.15, 24/10/2026) */
.night__lbl { font-size: 19px; letter-spacing: 2.6px; fill: var(--amber-soft); }
.night__lbl--minor { font-size: 14px; letter-spacing: 2.4px; }
.night__lbl--base { font-size: 20px; letter-spacing: 3px; fill: #FFF0D6; }
.night__lbl--siege { font-size: 10px; letter-spacing: 2.2px; fill: rgba(255, 230, 199, .7); }
/* The map is a picture for the keyboard and screen readers (aria-hidden, links at tabindex -1): the list of the
   fifteen towns right below carries the same links. For the mouse and the finger, each light has a touch zone. */
.night__link { cursor: pointer; outline: none; }
.night__hit { fill: transparent; }
.night__link:hover .night__lbl, .night__link:focus-visible .night__lbl { fill: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.night__link:hover .night__halo, .night__link:focus-visible .night__halo { fill-opacity: .65; }
.night__ring { fill: none; stroke: var(--amber); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: night-ring 3.6s ease-out infinite; }
.night__ring--2 { animation-delay: 1.8s; }
@keyframes night-ring { from { transform: scale(.4); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.night__sea-name { font-family: var(--font-display); font-style: italic; font-size: 22px; fill: rgba(255, 230, 199, .42); }
.night__orbit { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1; stroke-dasharray: 2 7; }
/* A point on an arc, by transform (no layout at each frame, unlike offset-distance; plan 3.14): for an arc
   "M x0 y0 Q cx cy x1 y1" whose control point sits halfway across (cx = (x0 + x1) / 2), the group crosses at a steady
   pace and the point rises and falls with a timing curve that draws the same Bézier (written by heros.py, or by hand
   on the territory map). */
.night__glide { transform: translateX(var(--x0)); animation: night-glide-x var(--t, 18s) linear infinite; }
.night__glider { fill: #FFFFFF; opacity: var(--o, 1); transform: translateY(var(--y0)); animation: night-glide-y var(--t, 18s) var(--ease, linear) infinite; }
@keyframes night-glide-x { from { transform: translateX(var(--x0)); } to { transform: translateX(var(--x1)); } }
@keyframes night-glide-y { from { transform: translateY(var(--y0)); } to { transform: translateY(var(--y1)); } }
/* a point on a circle: the group turns around the centre (--cx, --cy) */
.night__orbiter { fill: #FFFFFF; opacity: var(--o, 1); }
.night__spin { transform-box: view-box; transform-origin: var(--cx) var(--cy); animation: night-spin var(--t, 18s) linear infinite; }
@keyframes night-spin { to { transform: rotate(360deg); } }
/* any other path (straight lines, curves): 41 points at equal distances along it, written by heros.py (--p0 … --p40),
   joined in straight lines at a steady pace */
.night__tracer { fill: #FFFFFF; opacity: var(--o, 1); transform: translate(var(--p0)); animation: night-trace var(--t, 18s) linear infinite; }
@keyframes night-trace { 0% { transform: translate(var(--p0)); } 2.5% { transform: translate(var(--p1)); } 5% { transform: translate(var(--p2)); } 7.5% { transform: translate(var(--p3)); } 10% { transform: translate(var(--p4)); } 12.5% { transform: translate(var(--p5)); } 15% { transform: translate(var(--p6)); } 17.5% { transform: translate(var(--p7)); } 20% { transform: translate(var(--p8)); } 22.5% { transform: translate(var(--p9)); } 25% { transform: translate(var(--p10)); } 27.5% { transform: translate(var(--p11)); } 30% { transform: translate(var(--p12)); } 32.5% { transform: translate(var(--p13)); } 35% { transform: translate(var(--p14)); } 37.5% { transform: translate(var(--p15)); } 40% { transform: translate(var(--p16)); } 42.5% { transform: translate(var(--p17)); } 45% { transform: translate(var(--p18)); } 47.5% { transform: translate(var(--p19)); } 50% { transform: translate(var(--p20)); } 52.5% { transform: translate(var(--p21)); } 55% { transform: translate(var(--p22)); } 57.5% { transform: translate(var(--p23)); } 60% { transform: translate(var(--p24)); } 62.5% { transform: translate(var(--p25)); } 65% { transform: translate(var(--p26)); } 67.5% { transform: translate(var(--p27)); } 70% { transform: translate(var(--p28)); } 72.5% { transform: translate(var(--p29)); } 75% { transform: translate(var(--p30)); } 77.5% { transform: translate(var(--p31)); } 80% { transform: translate(var(--p32)); } 82.5% { transform: translate(var(--p33)); } 85% { transform: translate(var(--p34)); } 87.5% { transform: translate(var(--p35)); } 90% { transform: translate(var(--p36)); } 92.5% { transform: translate(var(--p37)); } 95% { transform: translate(var(--p38)); } 97.5% { transform: translate(var(--p39)); } 100% { transform: translate(var(--p40)); } }
@keyframes night-sat { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.night__caption { margin-top: .9rem; font-size: .85rem; color: rgba(247, 241, 230, .55); }
/* une ancre (#communes, #antibes-juan…) s’arrête sous l’en-tête fixe */
.section[id], .chapter[id] { scroll-margin-top: calc(var(--header-h) - 74px); }   /* + scroll-padding-top (82 px) de html = en-tête + 8 px */
/* à l'arrivée, les lumières s'allument */
.night__coast { animation: night-in 1.4s ease both; }
.night__cities { animation: night-in 1.6s ease .3s both; }
.night__links { animation: night-in 1.2s ease 1.2s both; }
@keyframes night-in { from { opacity: 0; } }
/* téléphone : moins de libellés, plus grands */
@media (max-width: 639px) {
  .night__lbl--minor, .night__lbl--siege, .night__sea-name { display: none; }
  .night__lbl { font-size: 44px; letter-spacing: 2px; paint-order: stroke; stroke: #080C1E; stroke-width: 6px; }   /* ≈ 12 px à l'écran */
  .night__lbl--base { font-size: 44px; }
  .night__lbl--shift { transform: translate(80px, 56px); }   /* Juan-les-Pins under its light, clear of Cannes */
}
@media (min-width: 1280px) { .seasons--4 { grid-template-columns: repeat(4, 1fr); } }
.communes { margin-top: .9rem; }
.communes li { padding: .45rem 0; border-bottom: var(--hair); }
.communes a { border-bottom: 1px solid var(--sand); transition: border-color .3s; }
.communes a:hover { border-color: currentColor; }

/* Night scenes (.night heroes, small map, beacon): site.js pauses their loops while off screen (.is-off) and puts them
   at rest after 20 s on screen (.is-rest), where they are (plan 3.14, WCAG 2.2.2) */
.is-off, .is-off *, .is-off::before, .is-off::after, .is-rest, .is-rest *, .is-rest::before, .is-rest::after { animation-play-state: paused !important; }

/* ---------- Heros de nuit des pages : « Constellations » (choix du 04/10/2026) ----------
   Propriétaires, Travaux, Tarifs, Estimation, L'atelier : le hero .night du Territoire, avec un dessin de lumière par page
   (écrit par seo/tools/heros.py entre <!-- hero:… --> et <!-- /hero -->). Tout en CSS, comme la carte : complet sans
   JavaScript, immobile avec « réduire les animations ». */
.night--page .hero__title { font-size: clamp(2.3rem, 4.4vw, 4rem); }
/* sous un hero de nuit, le contenu ne colle pas au bord sombre */
.night + .wrap { margin-top: var(--space-s); }
.night + .section--top-0 { padding-top: var(--space-s); }
.night .crumbs ol { color: rgba(247, 241, 230, .6); }
.night .crumbs a { border-bottom-color: rgba(247, 241, 230, .3); }
.night .page-head__date { color: rgba(247, 241, 230, .55); }
.night__cta { margin-top: 2rem; }
.night__cta .link { border-bottom-color: rgba(243, 235, 221, .5); }
.night__art { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font-body); }
.night__pts { fill: none; stroke: #FFF0D6; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 0 9; }
.night__pts--far { stroke: var(--amber); stroke-opacity: .6; stroke-width: 1.8; stroke-dasharray: 0 14; }
.night__pts--bal { stroke: #FFD9A8; stroke-opacity: .6; stroke-width: 1.8; stroke-dasharray: 0 11; }
.night__fine { fill: none; stroke: var(--amber); stroke-opacity: .38; stroke-width: 1; }
.night__draw { animation: night-in 1.6s ease both; }
.night__tw { animation: night-glow 4s ease-in-out var(--d, 0s) infinite alternate; }
.night__win { animation: night-win 7s ease-in-out var(--d, 0s) infinite alternate backwards; }
@keyframes night-win { 0%, 35% { opacity: .14; } 65%, 100% { opacity: .95; } }
.night__ping { fill: none; stroke: var(--amber); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: night-ring 3.6s ease-out var(--d, 0s) infinite backwards; }
.night__scan { animation: night-scan 9s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes night-scan { 0% { transform: translateX(0); opacity: 0; } 8%, 92% { opacity: 1; } 100% { transform: translateX(620px); opacity: 0; } }
.night__tag { font-size: 11px; letter-spacing: 2.4px; fill: var(--amber-soft); }
.night__tag--soft { fill: rgba(255, 230, 199, .55); }
.night__tag--bright { fill: #FFF0D6; }
.night__num { font-family: var(--font-display); font-style: italic; font-size: 22px; fill: var(--amber); }
.night__big { font-family: var(--font-display); font-size: 150px; font-variant-numeric: lining-nums; word-spacing: -.14em; fill: #FFF0D6; }
/* un point qui suit un tracé (satellite, comète) : le tracé est donné par la page, en style */
.night__mover { fill: #FFFFFF; opacity: 0; }
@supports (offset-path: path("M0 0")) {
  .night__mover { opacity: var(--o, 1); offset-rotate: 0deg; animation: night-sat var(--t, 18s) linear infinite; }
}
.night__leg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; margin-top: 1.1rem; }
.night__leg li { border-top: 1px solid rgba(255, 201, 138, .3); padding-top: 10px; font-size: .7rem; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; color: rgba(247, 241, 230, .66); }
.night__leg b { display: block; margin-bottom: 6px; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.3rem; line-height: 1; letter-spacing: 0; text-transform: none; color: var(--amber); }
@media (min-width: 640px) { .night__leg { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* téléphone : le dessin est deux fois plus petit ; moins de libellés, plus grands */
@media (max-width: 639px) {
  .night__tag--minor { display: none; }
  .night__tag { font-size: 19px; letter-spacing: 2px; }
  .night__tag--base { font-size: 21px; }
  .night__num { font-size: 38px; }
}

/* ---------- Thème de nuit (04/10/2026) : toutes les pages, dans le ton des heros de nuit ----------
   <body class="theme-night"> et <main class="… main--night"> : fond de nuit étoilé, filets en points de lumière, repères
   étoilés, en-tête sombre. La palette s'inverse par ses variables (l'encre devient claire, le papier devient nuit), ce
   qui retourne d'un coup tous les composants ; les blocs déjà sombres par dessin (heros, .on-navy, cartes photo, film)
   gardent leurs couleurs d'origine. Le reste de ce bloc ajoute ce que l'inversion ne donne pas. */
body.theme-night { background: #04060F; }
.main--night {
  --ink: #F7F1E6; --ink-soft: rgba(247, 241, 230, .76); --ink-faint: rgba(247, 241, 230, .52);
  --navy: #F3EBDD; --navy-deep: #FFFFFF; --ivory: #0C1430; --paper: #070B1C;
  --sand: rgba(255, 240, 214, .26); --sand-faint: rgba(24, 36, 82, .42); --hair: 1px solid var(--sand);
  --amber: #FFC98A; --amber-soft: rgba(255, 230, 199, .78); --night-ink: #F7F1E6;
  --dots: radial-gradient(circle, rgba(255, 240, 214, .8) 1px, transparent 1.6px);
  --dots-soft: radial-gradient(circle, rgba(255, 240, 214, .4) 1px, transparent 1.6px);
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  color: var(--night-ink); background-color: #04060F;
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, .5), transparent 1.5px),
    radial-gradient(1px 1px at 140px 80px, rgba(255, 255, 255, .4), transparent 1.5px),
    radial-gradient(1.5px 1.5px at 90px 160px, rgba(255, 255, 255, .45), transparent 2px),
    radial-gradient(1px 1px at 230px 40px, rgba(255, 255, 255, .35), transparent 1.5px),
    radial-gradient(1px 1px at 300px 190px, rgba(255, 255, 255, .45), transparent 1.5px),
    radial-gradient(1.5px 1.5px at 360px 110px, rgba(255, 255, 255, .3), transparent 2px);
  background-size: 420px 240px;
}
.main--night .night, .main--night .hero, .main--night .on-navy, .main--night .door, .main--night .film {
  --navy: #0B1F33; --navy-deep: #081627; --ivory: #F3EBDD; --paper: #F6F1E8;
}
.main--night > .section { position: relative; }
/* une lueur par section, tantôt à droite, tantôt à gauche */
/* (l'ellipse s'éteint avant les bords de la section : pas de coupure visible d'une section à l'autre) */
.main--night > .section:nth-of-type(odd) { background: radial-gradient(ellipse 60% 48% at 92% 50%, rgba(24, 36, 82, .55), rgba(24, 36, 82, 0)); }
.main--night > .section:nth-of-type(even) { background: radial-gradient(ellipse 60% 48% at 6% 50%, rgba(24, 36, 82, .5), rgba(24, 36, 82, 0)); }
/* le bas du hero se fond dans la page */
.main--night > .night::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(4, 6, 15, 0), #04060F); }
.main--night > .section.on-navy { background: linear-gradient(180deg, rgba(24, 36, 82, .45), rgba(24, 36, 82, .12)); }
/* filets : des points de lumière à la place des traits */
.main--night .section--rule { border-top: 0; }
.main--night .section--rule::before, .main--night > .section.on-navy::before, .main--night > .section.on-navy::after {
  content: ""; position: absolute; left: var(--edge); right: var(--edge); top: 0; height: 3px;
  background: var(--dots) left center / 9px 3px repeat-x; opacity: .55;
}
.main--night > .section.on-navy::after { top: auto; bottom: 0; }
.main--night .label--soft, .main--night .fact dt { color: var(--amber); }
.main--night .muted, .main--night .caption, .main--night .prose p, .main--night .step p, .main--night .fact dd + dd { color: rgba(247, 241, 230, .76); }
.main--night .prose .lede { color: var(--night-ink); }
.main--night .prose a, .main--night .fact a { border-bottom-color: rgba(255, 201, 138, .45); }
.main--night .prose a:hover, .main--night .fact a:hover { border-bottom-color: var(--amber); }
.main--night .frame { background: #0A1030; box-shadow: 0 0 0 1px rgba(255, 201, 138, .28), 0 30px 80px rgba(0, 0, 0, .55); }
.facts:first-child { margin-top: 0; }   /* repères en tête de section, sans photo au-dessus */
/* repères et principes : un filet pointillé, une étoile au départ */
.main--night .fact, .main--night .step { position: relative; border-top: 0; padding-top: 1.7rem; }
.main--night .fact::before, .main--night .step::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--dots) left center / 9px 3px repeat-x; opacity: .7;
}
.main--night .fact::after, .main--night .step::after, .main--night .lines--stack .lines__item::before {
  content: ""; position: absolute; left: -7px; top: -7px; width: 17px; height: 17px; border-radius: 50%;
  background: radial-gradient(circle, #FFFFFF 0 2.4px, rgba(255, 201, 138, .6) 3.4px, rgba(255, 201, 138, 0) 8.5px);
  animation: night-glow 4s ease-in-out 3 alternate;   /* three breaths, then lit (plan 3.14) */
}
.main--night .fact:nth-child(2)::after, .main--night .step:nth-child(2)::after, .main--night .lines__item:nth-child(2)::before { animation-delay: 1s; }
.main--night .fact:nth-child(3)::after, .main--night .step:nth-child(3)::after, .main--night .lines__item:nth-child(3)::before { animation-delay: 2s; }
.main--night .step:nth-child(4)::after { animation-delay: 3s; }
.main--night .step__num { font-style: italic; font-size: 1.35rem; letter-spacing: 0; color: var(--amber); }
/* le parcours du fondateur : trois étoiles sur un fil */
.main--night .lines { border-top: 0; }
.main--night .lines--stack { position: relative; padding-left: 34px; }
.main--night .lines--stack::before {
  content: ""; position: absolute; left: 7px; top: 1.9rem; bottom: 1.9rem; width: 3px; background: var(--dots) center top / 3px 9px repeat-y; opacity: .7;
}
.main--night .lines--stack .lines__item { position: relative; border-bottom: 0; }
.main--night .lines--stack .lines__item::before { left: -34px; top: 1.15rem; }
.main--night .lines--stack .lines__item > .h4:last-child { color: var(--night-ink); }
.main--night .pull { border-left: 2px dotted rgba(255, 201, 138, .7); color: #FFF0D6; }
/* listes en lignes : des points entre les lignes, des numéros ambrés */
.main--night .lines:not(.lines--stack) { background: var(--dots-soft) left top / 9px 3px repeat-x; }
.main--night .lines:not(.lines--stack) .lines__item { border-bottom: 0; background: var(--dots-soft) left bottom / 9px 3px repeat-x; }
.main--night .lines__num { font-style: italic; color: var(--amber); }
.main--night .link--inline, .main--night .contact-aside a { border-bottom-color: rgba(255, 201, 138, .45); }
.main--night .link--inline:hover, .main--night .contact-aside a:hover { border-bottom-color: var(--amber); }
/* encadré : un panneau de nuit, filet ambré */
.main--night .inset.on-navy { background: linear-gradient(140deg, rgba(24, 36, 82, .6), rgba(24, 36, 82, .2)); box-shadow: 0 0 0 1px rgba(255, 201, 138, .28); border-radius: var(--radius); }
/* formulaire sur fond de nuit */
.main--night .field label, .main--night .field legend { color: var(--amber-soft); }
.main--night .req, .main--night .field__error { color: var(--amber); }
.main--night .field input, .main--night .field select, .main--night .field textarea { color: var(--night-ink); border-bottom-color: rgba(255, 240, 214, .34); color-scheme: dark; }
.main--night .field select { background-image: linear-gradient(45deg, transparent 50%, var(--amber) 50%), linear-gradient(135deg, var(--amber) 50%, transparent 50%); }
.main--night .field select option { color: var(--night-ink); background: #0A1030; }
.main--night .field input:focus, .main--night .field select:focus, .main--night .field textarea:focus { border-bottom-color: var(--amber); }
.main--night .field input::placeholder, .main--night .field textarea::placeholder { color: rgba(247, 241, 230, .5); }
.main--night .field.is-invalid input, .main--night .field.is-invalid select, .main--night .field.is-invalid textarea { border-bottom: 2px solid var(--amber); }
.main--night .field__hint, .main--night .form__promise { color: rgba(247, 241, 230, .7); }
.main--night .status--ok { border-color: rgba(255, 201, 138, .5); }
.main--night .status--error { border-left-color: var(--amber); color: var(--amber); }
/* couleurs écrites en dur ailleurs dans la feuille */
.main--night .trade__name--open { color: var(--ink-soft); }
.main--night .estim-card, .main--night .estim-ondemand, .main--night .estim-chart { background: var(--ivory); }
.main--night .estim-card--real { background: linear-gradient(160deg, #1A2B63, #0C1430); border-color: rgba(255, 201, 138, .6); color: var(--night-ink); }
/* petite carte de nuit (décor, lien vers le Territoire) : à partir de la tablette */
.night__mini { display: none; }
@media (min-width: 768px) { .night__mini { display: block; margin-top: 2.4rem; max-width: 440px; } }
.night__mini .link { margin-top: 1.2rem; }
/* un phare : point blanc, halo, deux anneaux qui s'élargissent */
.night-beacon { position: relative; display: block; width: 12px; height: 12px; margin: 6px 0 2rem 10px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 18px 7px rgba(255, 201, 138, .5); }
.night-beacon::before, .night-beacon::after { content: ""; position: absolute; inset: -7px; border: 1px solid var(--amber); border-radius: 50%; animation: night-ring 3.6s ease-out infinite; }
.night-beacon::after { animation-delay: 1.8s; }
/* en-tête : sombre dès le haut sur les pages sans hero, et une fois la page défilée sur les autres */
body.theme-night .header:not(.header--over), body.theme-night .header.is-scrolled { background: rgba(4, 6, 15, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ivory); }
body.theme-night .header.is-scrolled { border-bottom-color: rgba(255, 201, 138, .18); }
body.theme-night .header .brand__img--navy { display: none; }
body.theme-night .header .brand__img--ivory { display: block; }
body.theme-night .header .btn { background: transparent; color: var(--ivory); border-color: rgba(243, 235, 221, .7); }
body.theme-night .header .btn:hover { background: var(--ivory); color: var(--navy); border-color: var(--ivory); }
body.theme-night .header :focus-visible { outline-color: var(--ivory); }
body.theme-night .nav__sub { background: rgba(4, 6, 15, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-color: rgba(255, 201, 138, .18); }
body.theme-night .nav__sublink:hover, body.theme-night .nav__sublink[aria-current] { color: #FFC98A; }
@media (max-width: 599px) { body.theme-night .header .brand__img--ivory.brand__word { display: none; } }
@media (min-width: 1024px) and (max-width: 1439px) { body.theme-night .header .brand__img--ivory.brand__word { display: none; } }
/* pied de page : la nuit continue (même fond étoilé, filets en points, libellés ambrés) */
body.theme-night .footer {
  position: relative; background-color: #04060F;
  background-image:
    radial-gradient(ellipse 60% 70% at 10% 45%, rgba(24, 36, 82, .5), rgba(24, 36, 82, 0)),
    radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, .5), transparent 1.5px),
    radial-gradient(1px 1px at 140px 80px, rgba(255, 255, 255, .4), transparent 1.5px),
    radial-gradient(1.5px 1.5px at 90px 160px, rgba(255, 255, 255, .45), transparent 2px),
    radial-gradient(1px 1px at 230px 40px, rgba(255, 255, 255, .35), transparent 1.5px),
    radial-gradient(1px 1px at 300px 190px, rgba(255, 255, 255, .45), transparent 1.5px),
    radial-gradient(1.5px 1.5px at 360px 110px, rgba(255, 255, 255, .3), transparent 2px);
  background-size: auto, 420px 240px, 420px 240px, 420px 240px, 420px 240px, 420px 240px, 420px 240px;
  background-repeat: no-repeat, repeat, repeat, repeat, repeat, repeat, repeat;
}
body.theme-night .footer::before {
  content: ""; position: absolute; top: 0; height: 3px;
  left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  background: radial-gradient(circle, rgba(255, 240, 214, .8) 1px, transparent 1.6px) left center / 9px 3px repeat-x; opacity: .55;
}
.main--night > .section.on-navy:last-child::after { content: none; }   /* le filet du pied de page suffit */
body.theme-night .footer__col .label, body.theme-night .footer__towns .label { color: #FFC98A; }
body.theme-night .footer__contact a { border-bottom-color: rgba(255, 201, 138, .4); }
body.theme-night .footer__icon { border-color: rgba(255, 201, 138, .35); }
body.theme-night .footer__icon:hover { border-color: #FFC98A; color: #FFC98A; }
body.theme-night .footer__towns-toggle:hover, body.theme-night .footer__towns-toggle[aria-expanded="true"] { color: #FFC98A; }
body.theme-night .footer__contact a:hover, body.theme-night .footer__col a:hover, body.theme-night .footer__towns a:hover { border-bottom-color: #FFC98A; }
body.theme-night .footer__bottom { border-top: 0; background: radial-gradient(circle, rgba(255, 240, 214, .4) 1px, transparent 1.6px) left top / 9px 3px repeat-x; }

/* ---------- Thème de nuit : le texte s'allume, les filets se tracent (choix du 04/10/2026) ----------
   À l'arrivée d'un bloc à l'écran : le filet en points se trace et son étoile s'allume, puis le texte s'allume, les
   titres mot après mot. site.js pose data-lit (textes) et data-trace (filets) puis la classe is-visible ; sans script,
   ou avec « réduire les animations », rien n'est posé et tout est simplement allumé. Heros, en-têtes de page et
   formulaires ne sont pas concernés. */
.main--night [data-reveal] { opacity: 1; transform: none; transition: none; }   /* l'ancien fondu laisse la place */
/* l'état éteint est posé d'un coup ; seule l'arrivée (is-visible) est animée */
[data-lit] { opacity: .12; transform: translateY(10px); }
[data-lit].is-visible {
  opacity: 1; transform: none;
  transition: opacity .9s ease calc(.25s + var(--i, 0) * .12s), transform .9s var(--ease) calc(.25s + var(--i, 0) * .12s);
  animation: night-flare 1.7s ease calc(.25s + var(--i, 0) * .12s) both;
}
@keyframes night-flare {
  0% { text-shadow: 0 0 0 rgba(255, 201, 138, 0); }
  28% { text-shadow: 0 0 24px rgba(255, 201, 138, .9), 0 0 3px rgba(255, 240, 214, .85); }
  100% { text-shadow: 0 0 0 rgba(255, 201, 138, 0); }
}
[data-lit].has-words, [data-lit].has-words.is-visible { opacity: 1; transform: none; animation: none; }
.lit-word { display: inline-block; opacity: .12; }
/* un bloc qui contient le focus clavier (ou qui est dans le lien focalisé) est toujours allumé, même tout en bas de l'écran */
[data-lit]:focus-within, [data-lit]:focus-within .lit-word, :focus [data-lit], :focus [data-lit] .lit-word { opacity: 1; transform: none; transition: none; }
.is-visible > .lit-word { opacity: 1; transition: opacity .6s ease calc(.25s + var(--w, 0) * 80ms); animation: night-flare 1.5s ease calc(.25s + var(--w, 0) * 80ms) both; }
[data-trace].section--rule::before, .section.on-navy[data-trace]::before, .section.on-navy[data-trace]::after,
.step[data-trace]::before, .fact[data-trace]::before { clip-path: inset(0 100% 0 0); }
[data-trace].is-visible::before, .section.on-navy[data-trace].is-visible::after {
  clip-path: inset(0 0 0 0); transition: clip-path 1.3s var(--ease) calc(var(--i, 0) * .12s);
}
.step[data-trace]::after, .fact[data-trace]::after { transform: scale(0); }
.step[data-trace].is-visible::after, .fact[data-trace].is-visible::after { transform: scale(1); transition: transform .5s var(--ease) calc(var(--i, 0) * .12s); }
.lines--stack[data-trace]::before { clip-path: inset(0 0 100% 0); }
.lines--stack[data-trace].is-visible::before { clip-path: inset(0 0 0 0); transition: clip-path 1.6s var(--ease); }
/* à l'impression : du noir sur blanc, sans le fond de nuit, tout allumé */
@media print {
  .main--night, .main--night .section, .night { background: none !important; }
  .main--night, .main--night * { color: #000 !important; }
  [data-lit], .lit-word { opacity: 1 !important; transform: none !important; }
  [data-trace]::before, [data-trace]::after { clip-path: none !important; }
}

/* ---------- Homes empty state ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; padding: 18px 0; border-top: var(--hair); border-bottom: var(--hair); }
.filters__item { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-faint); font-weight: 500; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; }
.tag { display: inline-block; padding: 4px 8px; border: var(--hair); border-radius: var(--radius); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.on-navy .tag { border-color: rgba(243,235,221,.3); color: var(--ivory-soft); }
.on-sand .tag, .banner .tag { background: var(--paper); }
.empty-grid { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .empty-grid { grid-template-columns: repeat(3, 1fr); } }
.empty-card { border: var(--hair); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 32px); min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; color: var(--ink-faint); background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(217, 205, 184, .18) 14px 15px); }
.empty-card .h4 { color: var(--ink-soft); }

/* ---------- Banner (model page) ---------- */
.banner { padding: 14px 0; background: var(--sand-faint); border-bottom: var(--hair); font-size: .85rem; color: var(--ink-soft); }
.banner .wrap { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }

/* Gallery */
.gallery { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .gallery { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; } .gallery > :first-child { grid-row: 1 / 3; } }
.spec { display: grid; gap: 14px 28px; }
@media (min-width: 480px) { .spec { grid-template-columns: repeat(3, auto); justify-content: start; } }
.spec dt { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; }
.spec dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 1.25rem; }
.rooms li { padding: .75rem 0; border-bottom: var(--hair); display: flex; justify-content: space-between; gap: 16px; }
.rooms li span:last-child { color: var(--ink-soft); text-align: right; }
.amenities { columns: 2; column-gap: var(--gap); }
.amenities li { break-inside: avoid; padding: .35rem 0; color: var(--ink-soft); }
@media (min-width: 768px) { .amenities { columns: 3; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--navy); }
.faq details { border-bottom: var(--hair); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 1.25rem 0; font-family: var(--font-display); font-size: clamp(1.25rem, 1.6vw, 1.55rem); line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.4em; line-height: 0; color: var(--ink-faint); transition: transform .4s var(--ease); flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 1.5rem; max-width: 62ch; color: var(--ink-soft); }
.faq .answer p + p { margin-top: .8em; }

/* ---------- Journal ---------- */
.cards { display: grid; gap: clamp(32px, 4vw, 56px) var(--gap); }
@media (min-width: 768px) { .cards { grid-template-columns: 1fr 1fr; } .cards > :nth-child(2) { margin-top: clamp(32px, 5vw, 80px); } }
.card { display: block; }
.card .label { margin-top: 1.2rem; display: block; color: var(--ink-faint); }
.card .h3 { margin-top: .6rem; max-width: 20ch; }
.card p { margin-top: .8rem; color: var(--ink-soft); max-width: 44ch; }
.card .link { margin-top: 1.2rem; }
.article-head { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 56px); }
.article-head .h1 { max-width: 18ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--ink-faint); margin-top: 1.5rem; }
.article-body { padding-block: var(--space-s) var(--space); }
.article-body .prose { font-size: 1.1rem; }
.article-body .prose > p:first-of-type::first-letter { font-family: var(--font-display); font-size: 3.2em; float: left; line-height: .8; padding: .1em .12em 0 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px var(--gap); }
@media (min-width: 768px) { .form { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { font-weight: 500; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.req { color: var(--navy); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--sand); border-radius: 0;
  background: transparent; color: var(--ink); font: inherit; font-weight: 300; font-size: 1.02rem;
  transition: border-color .3s;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--navy); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-bottom: 2px solid var(--navy); }
.field__error { font-size: .85rem; color: var(--navy); font-weight: 500; min-height: 0; }
.field__error:empty { display: none; }
.field__hint { font-size: .85rem; color: var(--ink-faint); }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 8px; }
.form__promise { color: var(--ink-soft); font-size: .95rem; max-width: 40ch; }
.form__status { grid-column: 1 / -1; }
.form__status:empty { display: none; }
.form__status p + p { margin-top: .6rem; }
.status--ok { border: 1px solid var(--navy); padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); }
.status--ok .h3 { margin-bottom: .8rem; }
.status--error { border-left: 2px solid var(--navy); padding: 12px 18px; color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: contents; }
.form fieldset[hidden] { display: none; }
.checks { display: flex; flex-direction: column; gap: 10px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); }
.check input { width: 16px; height: 16px; margin-top: 4px; accent-color: var(--navy); flex-shrink: 0; }

/* Intents (contact) */
.intents { display: flex; flex-wrap: wrap; gap: 0; border-top: var(--hair); border-bottom: var(--hair); }
.intent { position: relative; flex: 1 1 auto; }
.intent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.intent label {
  display: block; padding: 18px 8px; text-align: center; cursor: pointer;
  font-weight: 500; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint);
  border-bottom: 1px solid transparent; margin-bottom: -1px; transition: color .3s, border-color .3s;
}
.intent input:checked + label { color: var(--navy); border-bottom-color: var(--navy); }
.intent input:focus-visible + label { outline: 2px solid var(--navy); outline-offset: -2px; }
@media (max-width: 767px) { .intents { flex-direction: column; } .intent label { text-align: left; padding: 14px 0; } .intent input:checked + label { border-bottom-color: transparent; padding-left: 16px; border-left: 1px solid var(--navy); } }

/* Contact aside */
.contact-aside { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-aside .big { font-family: var(--font-display); font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.25; word-break: break-word; }
.contact-aside a { border-bottom: 1px solid var(--sand); width: fit-content; transition: border-color .3s; }
.contact-aside a:hover { border-color: var(--navy); }

/* ---------- Atelier ---------- */
.frame--marina img { object-position: 10% 50%; }
.facts { display: grid; gap: clamp(28px, 3vw, 40px) var(--gap); margin-top: clamp(40px, 5vw, 72px); }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { border-top: 1px solid var(--navy); padding-top: 1.2rem; }
.fact dt { font-weight: 500; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
.fact dd { margin: 0; }
.fact .h4 { margin-top: .7rem; }
.lines--stack .lines__item > .h4:last-child { font-size: clamp(1.2rem, 1.4vw, 1.4rem); color: var(--ink); }
.fact dd + dd { margin-top: .5rem; color: var(--ink-soft); line-height: 1.7; }
.fact a { border-bottom: 1px solid var(--sand); transition: border-color .3s; }
.fact a:hover { border-color: var(--navy); }
.pull {
  margin-top: clamp(36px, 4vw, 56px); padding-left: clamp(18px, 2vw, 28px); border-left: 1px solid var(--navy);
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.2;
  max-width: 24ch; text-wrap: balance;
}
.pull::before { content: "«\00a0"; }
.pull::after { content: "\00a0»"; }
:lang(en) .pull::before { content: "“"; }
:lang(en) .pull::after { content: "”"; }
@media (min-width: 1280px) { .sticky-lg { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }

/* ---------- Cookie banner (off unless analytics enabled) ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70;
  background: var(--paper); color: var(--ink); border: var(--hair); padding: 18px 20px;
  display: none; gap: 14px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: .9rem;
  box-shadow: 0 8px 40px rgba(11, 31, 51, .12);
}
.cookie.is-visible { display: flex; }
.cookie a { border-bottom: 1px solid var(--sand); transition: border-color .3s; }
.cookie a:hover { border-color: currentColor; }
@media (min-width: 768px) { .cookie { left: auto; max-width: 560px; } }
/* While it is shown, scrolling to a focused element keeps clear of it (WCAG technique C43; site.js sets --cookie-h) */
html.has-cookie { scroll-padding-bottom: calc(var(--cookie-h, 200px) + 24px); }
.cookie__short { display: none; }
/* Phone: a compact banner, about 100 px high (two lines of text, the two buttons side by side), clear of the hero
   buttons (the hero keeps room for it, see "Hero"; 24/10/2026) */
@media (max-width: 767px) {
  .cookie { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); padding: 8px 12px; gap: 6px; font-size: .8rem; line-height: 1.35; }
  .cookie > p { flex: 1 1 100%; }
  .cookie .btn-row { flex: 1 1 100%; flex-direction: row; gap: 8px; }
  .cookie .btn { flex: 1 1 0; width: auto; min-height: 44px; padding: 8px 12px; }
  .cookie__long { display: none; }
  .cookie__short { display: inline; }
}
/* the menu covers the whole screen: the banner waits behind it (site.js makes it inert meanwhile) */
body.menu-open .cookie { display: none; }
/* while the banner is shown, the end of the page can scroll clear of it (legal links) */
html.has-cookie .footer { padding-bottom: calc(var(--cookie-h, 200px) + 40px); }

/* ---------- Estimation (simulateur de revenus) ---------- */
.estim [hidden], .estim-result [hidden] { display: none !important; }
.estim-num { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; letter-spacing: 0; text-transform: none; color: var(--navy); margin-right: 12px; }
.estim-address { position: relative; }
.estim-suggestions { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% - 4px); margin: 0; padding: 4px 0; list-style: none;
  background: var(--paper); border: 1px solid var(--navy); box-shadow: 0 12px 32px rgba(11, 31, 51, .12); }
.estim-suggestions li { padding: 12px 16px; cursor: pointer; font-size: .98rem; }
.estim-suggestions li[aria-selected="true"], .estim-suggestions li:hover { background: var(--ivory); }
.estim-suggestions .estim-suggestions__none { cursor: default; color: var(--ink-soft); }
.estim-suggestions .estim-suggestions__none:hover { background: none; }
.estim-chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.estim-chips--sub { margin-top: 14px; }
.estim-chips__label { font-size: .95rem; color: var(--ink-soft); margin-right: 4px; }
.estim-chip { position: relative; }
.estim-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.estim-chip label {
  display: inline-flex; align-items: center; min-height: 46px; padding: 10px 18px; cursor: pointer;
  border: 1px solid var(--sand); border-radius: var(--radius); background: transparent;
  font-weight: 500; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
  transition: background .25s, color .25s, border-color .25s;
}
.estim-chip label:hover { border-color: var(--navy); color: var(--navy); }
.estim-chip input:checked + label { background: var(--navy); border-color: var(--navy); color: var(--ivory); }
.estim-chip input:focus-visible + label { outline: 2px solid var(--navy); outline-offset: 2px; }
/* Couleurs forcées (contraste Windows) : le choix coché reste visible, avec les couleurs du système */
@media (forced-colors: active) {
  .estim-chip input:checked + label, .intent input:checked + label {
    forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight;
  }
  .estim-chip input:focus-visible + label, .intent input:focus-visible + label { outline-color: Highlight; }
}
.estim-chips--s .estim-chip label { min-height: 44px; padding: 8px 14px; letter-spacing: .1em; }
.estim fieldset.field { display: flex; }
/* ---------- Pages communes : le marché en chiffres (seo/tools/communes.py) ---------- */
.marche { display: grid; gap: clamp(28px, 3.5vw, 44px); margin-top: clamp(24px, 3vw, 40px); }
@media (min-width: 900px) { .marche { grid-template-columns: 1fr 1fr; align-items: start; } .marche__season, .marche__note { grid-column: 1 / -1; } }
.marche__scroll { overflow-x: auto; }
.marche__table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.marche__table caption, .marche__season figcaption { caption-side: top; text-align: left; padding-bottom: 12px; font-size: .7rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.marche__table th, .marche__table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--sand); text-align: left; font-weight: 400; }
.marche__table thead th { font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.marche__table td, .marche__table thead th + th { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.marche__table td:last-child, .marche__table th:last-child { padding-right: 0; }
/* text table (method calendar): cells wrap and read left */
.marche__table--text td, .marche__table--text thead th + th { text-align: left; white-space: normal; font-variant-numeric: normal; }
.marche__table--text th, .marche__table--text td { vertical-align: top; padding-right: 18px; }
/* Tables on phones (audit NAV-03, A11A-07). The scroll box is a focusable region named by its caption.
   Under 600 px, site.js marks a number table wider than the screen (is-scrollable): a shadow on the edge that hides
   columns (is-scrolled once moved, is-end at the end) and the hint « Faire défiler → » above it. A text table
   (marche__table--text without --num: rules, penalties, method calendar) becomes one card per row (marche__table--cards,
   set by site.js with a data-label on each cell). Without JavaScript, both simply scroll as before. */
.marche__scroll:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.main--night .marche__scroll:focus-visible { outline-color: var(--amber); }
.marche__hint { display: none; }
@media (max-width: 599px) {
  .marche__scroll { --edge-shadow: rgba(11, 31, 51, .28); }
  .main--night .marche__scroll { --edge-shadow: rgba(255, 201, 138, .5); }
  .marche__scroll.is-scrollable { box-shadow: inset -22px 0 16px -16px var(--edge-shadow); }
  .marche__scroll.is-scrollable.is-scrolled { box-shadow: inset -22px 0 16px -16px var(--edge-shadow), inset 22px 0 16px -16px var(--edge-shadow); }
  .marche__scroll.is-scrollable.is-end { box-shadow: inset 22px 0 16px -16px var(--edge-shadow); }
  .marche__hint { display: block; margin: 0 0 8px; text-align: right; font-size: .7rem; font-weight: 500; letter-spacing: .14em;
    text-transform: uppercase; color: var(--ink-faint); }
  .marche__hint[hidden] { display: none; }
  .marche__scroll caption { max-width: calc(100vw - 2 * var(--gutter)); }   /* the title stays on screen when the table is wider */
  .marche__table--cards, .marche__table--cards caption, .marche__table--cards tbody, .marche__table--cards tr,
  .marche__table--cards th, .marche__table--cards td { display: block; }
  .marche__table--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .marche__table--cards tr { padding: 14px 0; border-bottom: 1px solid var(--sand); }
  .marche__table--cards th, .marche__table--cards td { padding: 0; border-bottom: 0; text-align: left; white-space: normal; }
  .marche__table--cards th[scope="row"] { font-weight: 500; }
  .marche__table--cards td { margin-top: 10px; }
  .marche__table--cards td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: .68rem;
    font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
}
.marche__chart { display: block; width: 100%; max-width: 620px; height: auto; }
.marche__bar { fill: var(--sand); }
.marche__bar--high { fill: var(--navy); }
.marche__bar--low { fill: var(--sand); opacity: .55; }
.marche__month { font-size: 11px; fill: var(--ink-soft); }
.marche__mean { stroke: var(--ink-faint); stroke-width: 1; stroke-dasharray: 3 4; }
.marche__note { font-size: .85rem; color: var(--ink-faint); max-width: 76ch; }
.marche__price { max-width: 72ch; }
.marche__price p { margin-top: .7rem; color: var(--ink-soft); }
@media (min-width: 900px) { .marche__price { grid-column: 1 / -1; } }
/* ---------- Facts in plain words: « En bref » (home), update date, trip links, author line ---------- */
.brief { padding-block: clamp(32px, 5vw, 56px); }
.brief__text { max-width: 70ch; font-size: 1.02rem; line-height: 1.65; color: var(--ink-soft); }
.brief__list { list-style: none; margin: 1.2rem 0 0; padding: 0; max-width: 70ch; border-top: var(--hair); }
.brief__list li { display: grid; grid-template-columns: 1fr; gap: .15rem; padding: .7rem 0; border-bottom: var(--hair); font-size: 1rem; line-height: 1.55; color: var(--ink-soft); }
.brief__key { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
@media (min-width: 600px) { .brief__list li { grid-template-columns: 11rem 1fr; gap: 1.2rem; align-items: baseline; } }
.page-head__date { margin-top: .9rem; }
.trip__item .trip__links { max-width: none; font-size: .9rem; }
.article-author { border-top: var(--hair); padding-top: 1rem; }
/* ---------- Rendez-vous téléphonique (/rendez-vous/) ---------- */
.rdv [hidden] { display: none !important; }
.rdv fieldset.field { display: flex; }
.rdv-slots { gap: 8px; }
.rdv-slots .estim-chip label { min-width: 88px; justify-content: center; text-transform: none; letter-spacing: .04em; font-size: .9rem; }
.rdv-tz { font-weight: 400; letter-spacing: .08em; text-transform: none; color: var(--ink-faint); }
.rdv-when { display: flex; align-items: baseline; margin: 0; font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); }
.rdv-loading { color: var(--ink-soft); }
@media (max-width: 767px) {   /* les jours défilent en ligne sur téléphone */
  .rdv-days { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .rdv-days .estim-chip { flex: 0 0 auto; scroll-snap-align: start; }
}
.estim-aside { display: flex; flex-direction: column; gap: 1.2rem; align-self: start; padding: clamp(22px, 3vw, 36px); border: var(--hair); }
.estim-gets { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .7rem; color: var(--ink-soft); }
.estim-gets strong { color: var(--ink); font-weight: 500; }
@media (min-width: 1280px) { .estim-aside { position: sticky; top: calc(var(--header-h) + 24px); } }

.estim-result:focus { outline: none; }
.estim-result[aria-busy="true"] .estim-card__net, .estim-result[aria-busy="true"] .estim-bar { opacity: .45; transition: opacity .2s; }
.estim-recap { padding: 14px 18px; background: var(--ivory); border-left: 2px solid var(--navy); margin-bottom: clamp(32px, 4vw, 48px); }
.estim-result .h2 { margin-top: .4rem; }
.estim-result .lede { margin-top: 1rem; }
.estim-cards { display: grid; gap: 18px; margin-top: clamp(28px, 4vw, 44px); }
@media (min-width: 1024px) { .estim-cards { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.estim-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 34px); border: var(--hair); background: #FCFAF6; }
.estim-card .label { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.estim-card__sub { font-size: .92rem; color: var(--ink-soft); }
.estim-card__net { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: 1; font-weight: 400; }
.estim-card__per { font-size: .92rem; color: var(--ink-soft); margin-top: -4px; }
.estim-card__rows { margin: 0; font-size: .92rem; }
.estim-card__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--sand-faint); }
.estim-card__rows dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.estim-card__tag { padding: 3px 8px; border: 1px solid currentColor; font-size: .56rem; letter-spacing: .16em; }
.estim-card--real { background: var(--navy); border-color: var(--navy); color: var(--ivory); }
.estim-card--real .label, .estim-card--real .estim-card__sub, .estim-card--real .estim-card__per { color: var(--ivory-soft); }
.estim-card--real .estim-card__rows div { border-top-color: rgba(243, 235, 221, .22); }
.estim-ondemand { margin-top: clamp(28px, 4vw, 44px); padding: clamp(24px, 3vw, 40px); border: 1px solid var(--navy); background: #FCFAF6; }

.estim-refine { margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(32px, 4vw, 48px); border-top: var(--hair); }
.estim-refine__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; margin-bottom: 18px; }
.estim-refine__head .muted { margin-top: .5rem; }
.estim-meter { min-width: min(100%, 300px); }
.estim-meter__bar { display: flex; gap: 4px; margin-top: 8px; }
.estim-meter__bar span { flex: 1; height: 6px; background: var(--sand); }
.estim-meter__bar span.is-on { background: var(--navy); }
/* "Estimate updated: …" after each refinement (role=status); never display:none, so screen readers keep the region */
.estim-live { margin-top: 10px; min-height: 1.4em; font-size: .92rem; color: var(--ink-soft); }
.estim-live.status--error { padding: 8px 14px; }
.estim-live:empty { margin-top: 0; min-height: 0; }
.estim-questions { column-gap: clamp(32px, 5vw, 64px); }
@media (min-width: 1024px) { .estim-questions { columns: 2; } }
.estim-q { margin: 0; padding: 16px 0; border: 0; border-bottom: 1px solid var(--sand-faint); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; min-width: 0; break-inside: avoid; }
.estim-q legend { float: left; padding: 0; font-weight: 400; }
.estim-q[hidden] { display: none; }
/* Extérieur : surface, usage, aménagement, jacuzzi (terrasse, toit-terrasse ou jardin) */
.estim-ext { flex-basis: 100%; display: grid; gap: 2px; padding-left: 16px; border-left: 1px solid var(--sand); }
.estim-ext__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 6px 0; }
.estim-ext__row > label, .estim-ext__row > span:first-child { font-size: .95rem; color: var(--ink-soft); }
.estim-ext__m2 { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.estim-ext__m2 input { width: 6em; padding: 8px 0; border: 0; border-bottom: 1px solid var(--sand); border-radius: 0; background: transparent;
  color: var(--ink); font: inherit; font-size: 1.02rem; text-align: right; }
.estim-ext__m2 input:focus { outline: none; border-bottom-color: var(--navy); }
.estim-ext__m2 input::placeholder { color: var(--ink-faint); }
.estim-exceptional { margin-top: 1rem; padding: 12px 18px; border-left: 2px solid var(--navy); }
/* Prix par nuit conseillé ; ce qui ferait monter l'estimation */
.estim-extra { display: grid; gap: 24px; margin-top: clamp(28px, 4vw, 44px); }
@media (min-width: 1024px) { .estim-extra { grid-template-columns: 1fr 1fr; align-items: start; } .estim-extra:has(.estim-levers[hidden]) { grid-template-columns: 1fr; } }
.estim-prices, .estim-levers { display: flex; flex-direction: column; gap: .9rem; padding: clamp(24px, 3vw, 36px); border: var(--hair); }
.estim-prices__table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.estim-prices__caption { caption-side: top; text-align: left; padding-bottom: .9rem; }   /* the heading names the table */
.estim-prices__table th, .estim-prices__table td { padding: 10px 0 10px 12px; border-top: 1px solid var(--sand-faint); text-align: right; font-weight: 400; }
.estim-prices__table th:first-child, .estim-prices__table td:first-child { padding-left: 0; text-align: left; }
.estim-prices__table thead th { border-top: 0; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.estim-prices__table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.estim-prices__table td:first-child { white-space: normal; }
.estim-levers__list { margin: 0; padding: 0; list-style: none; }
.estim-levers__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid var(--sand-faint); }
.estim-levers__list li:first-child { border-top: 0; padding-top: 0; }
.estim-levers__gain { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }

.estim-chart { margin: clamp(40px, 5vw, 64px) 0 0; padding: clamp(24px, 3vw, 36px); border: var(--hair); background: #FCFAF6; }
.estim-chart__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 32px; margin-bottom: 24px; }
.estim-chart__legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-soft); }
.estim-key { display: inline-block; width: 12px; height: 12px; margin-left: 10px; }
.estim-key:first-child { margin-left: 0; }
.estim-key--real { background: var(--navy); }
.estim-key--opt { background: var(--sand); }
.estim-chart__bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(4px, 1vw, 12px); align-items: end; margin-bottom: 16px; }
.estim-bar { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.estim-bar__value { font-size: .72rem; text-align: center; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: clip; }
.estim-bar__track { position: relative; height: clamp(140px, 22vw, 220px); }
.estim-bar__opt, .estim-bar__real { position: absolute; left: 0; right: 0; bottom: 0; transition: height .4s var(--ease); }
.estim-bar__opt { background: var(--sand); }
.estim-bar__real { background: var(--navy); }
.estim-bar__month { font-size: .72rem; text-align: center; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.estim-bar__month.has-event { text-decoration: underline; text-decoration-color: var(--sand); text-underline-offset: 4px; }
@media (max-width: 767px) { .estim-bar__value { display: none; } }

.estim-bottom { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 1024px) { .estim-bottom { grid-template-columns: 5fr 7fr; align-items: stretch; } }
.estim-compare { display: flex; flex-direction: column; gap: .9rem; padding: clamp(24px, 3vw, 36px); border: var(--hair); }
.estim-compare__big { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.05; }
.estim-report { padding: clamp(24px, 3vw, 36px); background: var(--ivory); }
.estim-disclaimer { margin-top: clamp(32px, 4vw, 48px); max-width: 70ch; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="2"] { transition-delay: .12s; }
[data-reveal="3"] { transition-delay: .24s; }
[data-reveal="4"] { transition-delay: .36s; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; align-items: center; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .intro .intro-veil { display: none; }
}
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Print ---------- */
@media print {
  .header, .panel, .cookie, .burger, .skip-link, .intro-veil { display: none !important; }
  body { background: #fff; color: #000; }
  .main--paper { padding-top: 0; }
}
