@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/newsreader.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("fonts/newsreader-italic.woff2") format("woff2"); }

:root {
  --bg: #ecebe7;
  --surface: #e1dfd9;
  --ink: #38450f;
  --muted: #5d683a;
  --accent: #38450f;
  --accent-ink: #ecebe7;
  --field-1: #38450f;
  --field-1-ink: #ecebe7;
  --field-2: #29330a;
  --scrim: rgb(24 28 8 / 0.66);

  --font: "Newsreader", Georgia, "Times New Roman", serif;
  --step-small: clamp(0.9375rem, 0.91rem + 0.1vw, 1rem);
  --step-body: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --step-lead: clamp(1.3125rem, 1.15rem + 0.7vw, 1.75rem);
  --step-mid: clamp(1.625rem, 1.3rem + 1vw, 2.25rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(6rem, 17vw, 17.5rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --gap: clamp(6rem, 13vw, 12rem);
  --rail: 64px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

/* ---------- foundation ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: var(--rail); }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.55; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; text-wrap: balance; }
h2 { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.03em; font-weight: 300; }
h3 { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.01em; font-weight: 500; }
h4 { font-size: var(--step-body); line-height: 1.3; font-weight: 500; }
p { text-wrap: pretty; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; background: var(--surface); }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.06em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul.plain, ol.plain { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.small { font-size: var(--step-small); line-height: 1.4; }
.nb { white-space: nowrap; }
.lead { font-size: var(--step-lead); line-height: 1.32; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.5rem; background: var(--accent); color: var(--accent-ink); text-decoration: none; white-space: nowrap; font-size: var(--step-body); transition: transform 140ms var(--ease-out), background-color 180ms ease; }
.button:active { transform: scale(0.97); }
.button-small { min-height: 2.5rem; padding: 0 1rem; font-size: var(--step-small); background: var(--bg); color: var(--ink); }
.button-wide { width: 100%; }
.skip { position: absolute; left: var(--margin); top: -4rem; z-index: 40; background: var(--bg); color: var(--ink); padding: 0.5rem 1rem; }
.skip:focus { top: 0.5rem; }

/* ---------- the rail: first a line across the middle of the picture, then the page's bar ---------- */
.before-rail { height: calc(50svh - var(--rail) / 2); }
.rail { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--gutter); height: var(--rail); padding-inline: var(--margin); background: var(--scrim); color: var(--bg); transition: background-color 240ms ease, color 240ms ease; }
.rail h1 { font-size: var(--step-mid); line-height: 1.05; letter-spacing: -0.02em; font-weight: 500; white-space: nowrap; }
.rail h1 a { text-decoration: none; }
.rail-line { font-size: var(--step-small); line-height: 1.25; max-width: 44ch; margin-left: clamp(0px, 2vw, 40px); }
.rail-nav { display: flex; align-items: center; gap: clamp(1rem, 1.6vw, 1.75rem); margin-left: auto; font-size: var(--step-small); white-space: nowrap; }
.rail-nav a:not(.button) { text-decoration-color: transparent; transition: text-decoration-color 180ms ease; }
.rail-menu { display: none; margin-left: auto; position: relative; }
.rail-menu summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; padding-inline: 0.5rem; }
.rail-menu summary::-webkit-details-marker { display: none; }
.rail-menu nav { position: absolute; right: calc(var(--margin) * -1); top: calc(100% + 12px); width: min(320px, 92vw); padding: 0.75rem 1.25rem; display: grid; background: var(--bg); color: var(--ink); }
.rail-menu nav a { padding: 0.45rem 0; text-decoration: none; }
.rail.is-docked { background: var(--bg); color: var(--ink); }
.rail.is-docked .button-small { background: var(--accent); color: var(--accent-ink); }

.opening { position: absolute; inset: 0 0 auto 0; height: 200svh; overflow: hidden; }
.opening figure { position: relative; height: 100svh; overflow: hidden; }
.opening img { width: 100%; height: 100%; object-fit: cover; }
.opening-a img { object-position: 50% 100%; }
.opening-b img { object-position: 50% 42%; }
.after-rail { height: calc(150svh - var(--rail) / 2); }
.ai-note { position: absolute; right: 0; bottom: 0; padding: 0.35rem var(--margin); max-width: 100%; background: var(--scrim); color: var(--bg); font-size: var(--step-small); line-height: 1.3; }
.opening-foot { display: none; }

main, .foot { position: relative; z-index: 1; background: var(--bg); }

/* ---------- film ---------- */
.film { background: var(--field-1); color: var(--field-1-ink); padding: clamp(4rem, 7vw, 6rem) var(--margin) clamp(3rem, 6vw, 5rem); }
.film-head, .plan-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.film-head h2, .plan-head h2 { grid-column: 1 / 8; }
.film-head p, .plan-head p { grid-column: 8 / 13; }
.player { scroll-margin-top: 1.5rem; position: relative; width: min(100%, calc((100svh - 7rem) * 16 / 9)); aspect-ratio: 16 / 9; margin-inline: auto; background: var(--field-2); }
.player video { width: 100%; height: 100%; }
.play { position: absolute; inset: 0; display: grid; place-items: center; }
.play .button { min-height: 4rem; padding: 0 2.25rem; background: var(--bg); color: var(--ink); font-size: var(--step-lead); }
.film-note { margin-top: 1.25rem; font-size: var(--step-small); text-align: center; }

/* ---------- constats ---------- */
.stats-photo { position: relative; height: 88svh; min-height: 520px; overflow: hidden; color: var(--bg); }
.stats-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.stats-photo::before, .stats-photo::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; }
.stats-photo::before { top: 0; height: 32%; background: linear-gradient(rgb(0 0 0 / 0.6), transparent); } /* taste-skill-ignore: neutral scrim under text on a photograph */
.stats-photo::after { bottom: 0; height: 52%; background: linear-gradient(transparent, rgb(0 0 0 / 0.72)); } /* taste-skill-ignore: neutral scrim under text on a photograph */
.stats-photo h2 { position: absolute; z-index: 2; top: calc(var(--rail) + 1.5rem); left: var(--margin); right: var(--margin); }
.big-figure { position: absolute; z-index: 2; left: var(--margin); bottom: var(--margin); font-size: var(--step-display); line-height: 0.8; letter-spacing: -0.05em; font-weight: 300; font-variant-numeric: lining-nums; }
.big-note { position: absolute; z-index: 2; right: var(--margin); bottom: calc(var(--margin) + 0.25rem); width: 26ch; text-align: right; font-size: var(--step-lead); line-height: 1.25; }
.constats-more { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: clamp(2.5rem, 4vw, 3.5rem) var(--margin) 0; }
.second-figure { grid-column: 1 / 6; }
.mid-figure { font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; font-weight: 300; font-variant-numeric: lining-nums; }
.constats-list { grid-column: 7 / 13; font-size: var(--step-lead); line-height: 1.3; }
.constats-list li + li { margin-top: 0.9em; }

/* ---------- esprit: three pictures rise as the page scrolls ---------- */
.esprit { position: relative; margin-top: var(--gap); }
.esprit-stage { display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.esprit-text { text-align: center; max-width: 54rem; padding-inline: var(--margin); padding-bottom: 2rem; }
.esprit-text p { margin-top: 0.75rem; }
.tri { display: flex; justify-content: center; align-items: flex-start; gap: 10px; width: 100%; }
.tri img { flex: none; object-fit: cover; }
.tri-centre { width: 52.8vw; aspect-ratio: 4 / 5; object-position: 62% 50%; }
.tri-side { width: 25vw; aspect-ratio: 360 / 530; margin-top: 55px; }
html.motion .esprit { height: 215svh; }
html.motion .esprit-stage { position: sticky; top: 0; height: 100svh; padding-top: calc(var(--rail) + 1.75rem); }
html.motion .tri { flex: 1; min-height: 0; }
html.motion .tri img { will-change: transform; }
html.motion .tri-centre { transform-origin: 50% 0; transform: translate3d(0, calc((1 - var(--p, 1)) * 44svh), 0) scale(calc(0.82 + 0.18 * var(--p, 1))); }
html.motion .tri-side { transform: translate3d(0, calc((1 - var(--p, 1)) * 58svh), 0); }

.parole { padding: var(--gap) var(--margin); text-align: center; }
.parole figure { max-width: 46rem; margin-inline: auto; }
.parole blockquote { font-size: var(--step-mid); line-height: 1.22; letter-spacing: -0.015em; }
.parole figcaption { margin-top: 1.5rem; }

/* ---------- plan: the live part of the page, driven by plain radio inputs ---------- */
.plan { padding: 1.5rem var(--margin) 0; }
.visit { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.25rem var(--gutter); }
.ctl { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none; } /* taste-skill-ignore: visually hidden input */
.schemes { grid-column: 1 / -1; display: flex; gap: 6px; }
.schemes label { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 3.5rem; padding: 0.4rem 1rem; background: var(--surface); line-height: 1.2; cursor: pointer; transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--ease-out); }
.schemes label:active { transform: scale(0.985); }
#s-chalets:checked ~ .schemes label[for="s-chalets"], #s-huit:checked ~ .schemes label[for="s-huit"] { background: var(--accent); color: var(--accent-ink); }
#s-chalets:focus-visible ~ .schemes label[for="s-chalets"], #s-huit:focus-visible ~ .schemes label[for="s-huit"],
#p-coeur:focus-visible ~ .places .place-coeur label, #p-logements:focus-visible ~ .places .place-logements label, #p-jardin:focus-visible ~ .places .place-jardin label { outline: 3px solid var(--ink); outline-offset: 2px; }

.plans { grid-column: 1 / 9; }
.plans-frame { position: relative; aspect-ratio: 3 / 2; background: var(--surface); overflow: hidden; }
.plan-box { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); opacity: 0; visibility: hidden; transition: opacity 600ms ease, visibility 0s linear 600ms; }
.plan-box img { width: 100%; }
#s-chalets:checked ~ .plans .plan-chalets, #s-huit:checked ~ .plans .plan-huit { opacity: 1; visibility: visible; transition: opacity 600ms ease; }
.plans figcaption { margin-top: 0.75rem; }

.dot, .ring { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); opacity: 0; transform: translate(-50%, -50%) scale(0.5); transition: opacity 260ms ease, transform 360ms var(--ease-out); }
.dot { width: clamp(16px, 1.9vw, 28px); aspect-ratio: 1; border-radius: 50%; background: var(--bg); border: clamp(3px, 0.4vw, 6px) solid var(--ink); transition-delay: calc(var(--i, 0) * 45ms); }
.ring { width: 19%; aspect-ratio: 1; border-radius: 50%; border: clamp(3px, 0.4vw, 6px) solid var(--bg); }
#p-coeur:checked ~ .plans .ring-coeur, #p-jardin:checked ~ .plans .ring-jardin, #p-logements:checked ~ .plans .dot { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.places { grid-column: 9 / 13; }
.place + .place { margin-top: 0.25rem; }
.place h3 label { display: block; padding: 0.7rem 0; cursor: pointer; color: var(--muted); transition: color 180ms ease; }
.place-body { display: none; padding-bottom: 1rem; }
.place-body img { margin-top: 1rem; width: 100%; max-height: 15rem; object-fit: cover; }
.place-logements .place-body img { object-fit: contain; background: none; mix-blend-mode: multiply; }
#p-coeur:checked ~ .places .place-coeur .place-body, #p-logements:checked ~ .places .place-logements .place-body, #p-jardin:checked ~ .places .place-jardin .place-body { display: block; }
#p-coeur:checked ~ .places .place-coeur label, #p-logements:checked ~ .places .place-logements label, #p-jardin:checked ~ .places .place-jardin label { color: var(--ink); }
html.motion #p-coeur:checked ~ .places .place-coeur .place-body, html.motion #p-logements:checked ~ .places .place-logements .place-body, html.motion #p-jardin:checked ~ .places .place-jardin .place-body { animation: open 420ms var(--ease-out); }
@keyframes open { from { opacity: 0; transform: translateY(10px); } }

/* ---------- avantages ---------- */
.avantages { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: var(--gap) var(--margin) 0; align-items: start; }
.avantages > h2 { grid-column: 1 / 5; position: sticky; top: calc(var(--rail) + 2rem); }
.rows { grid-column: 5 / 13; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--gutter); align-items: start; }
.row + .row { margin-top: clamp(4rem, 7vw, 6.5rem); }
.row h3 { font-size: var(--step-mid); line-height: 1.1; letter-spacing: -0.025em; font-weight: 300; }
.row p { margin-top: 0.75rem; max-width: 34ch; }
.row > img { width: var(--w); aspect-ratio: var(--r); object-fit: cover; }
.rows-note { margin-top: clamp(3rem, 5vw, 4rem); }

/* ---------- pour qui ---------- */
.pour-qui { padding: var(--gap) var(--margin) 0; }
.pour-qui > .lead { max-width: 44ch; margin-top: 1.5rem; }
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: clamp(3rem, 5vw, 4.5rem); }
.mosaic-photo { grid-column: 1 / 9; position: relative; }
.mosaic-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mosaic-photo figcaption { position: absolute; top: 0; right: 0; width: min(360px, 48%); padding: 1.25rem; background: var(--bg); font-size: var(--step-small); line-height: 1.4; }
.mosaic-side { grid-column: 9 / 13; }
.tile { background: var(--field-1); color: var(--bg); aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 1.25rem; }
.tile svg { width: 100%; height: 100%; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem var(--gutter); margin-top: 1.25rem; }
.facts dt { font-size: var(--step-small); color: var(--muted); }
.facts dd { font-size: var(--step-lead); line-height: 1.15; }
.roles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: clamp(3.5rem, 6vw, 5.5rem); }
.roles-main { grid-column: 1 / 9; }
.roles-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: 1.25rem; }
.roles-cols li { margin-top: 0.4em; line-height: 1.32; }
.roles-open { grid-column: 9 / 13; }
.roles-open ul { margin-top: 1.25rem; }
.roles-open li + li { margin-top: 0.4em; }
.roles-open li { line-height: 1.32; }
.roles-open .small { margin-top: 1rem; }

/* ---------- bâti: one verb at a time ---------- */
.bati { margin-top: var(--gap); }
.bati-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; padding: 0 var(--margin) clamp(2rem, 4vw, 3.5rem); }
.bati-head h2 { grid-column: 1 / 8; }
.bati-head p { grid-column: 8 / 13; }
.verb { display: flow-root; position: relative; height: 100svh; color: var(--bg); overflow: clip; }
.verb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.verb::before { content: ""; position: absolute; inset: 0; background: rgb(16 18 6 / 0.42); }
.verb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(transparent, rgb(0 0 0 / 0.66)); } /* taste-skill-ignore: neutral scrim under text on a photograph */
.verb-word { position: sticky; top: 50%; z-index: 1; margin-top: 50svh; transform: translateY(-50%); text-align: center; }
.verb h3 { font-size: var(--step-display); line-height: 1; letter-spacing: -0.045em; font-weight: 400; }
.verb-text { position: absolute; z-index: 2; left: var(--margin); right: var(--margin); bottom: var(--margin); max-width: 44ch; font-size: var(--step-lead); line-height: 1.28; }
.verb-text .small { display: block; margin-top: 0.3rem; }
.bati-foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: clamp(3rem, 6vw, 5rem) var(--margin) 0; align-items: end; }
.bati-foot > div { grid-column: 1 / 7; }
.bati-foot ul { margin-top: 0.75rem; }
.bati-foot li + li { margin-top: 0.3em; }
.bati-foot .lead { grid-column: 8 / 13; font-weight: 500; }

/* ---------- où en sommes-nous ---------- */
.steps { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: var(--gap) var(--margin) var(--gap); align-items: start; }
.steps-pic { grid-column: 1 / 6; position: sticky; top: calc(var(--rail) + 3vh); aspect-ratio: 4 / 5; max-height: calc(100svh - var(--rail) - 6vh); width: 100%; background: var(--surface); overflow: hidden; }
.steps-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.steps-pic img.is-on { opacity: 1; }
.steps-list { grid-column: 7 / 13; }
.steps-list h2 { margin-bottom: 2.5rem; }
.steps-list li { padding-block: 1.1rem; color: var(--muted); transition: color 240ms ease; }
.steps-list li h3 { font-weight: 400; transition: transform 240ms var(--ease-out); }
.steps-list li p { margin-top: 0.35rem; max-width: 46ch; color: var(--ink); line-height: 1.42; }
.steps-list li.is-on { color: var(--ink); }
.steps-list li.is-on h3 { font-weight: 500; }

/* ---------- commune: the reply card ---------- */
.commune { background: var(--field-1); color: var(--field-1-ink); overflow: hidden; padding: clamp(5rem, 9vw, 8rem) var(--margin) 0; }
.commune-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.commune-text { grid-column: 1 / 5; align-self: end; padding-bottom: 7rem; font-size: var(--step-lead); line-height: 1.3; }
.card { grid-column: 6 / 13; background: var(--bg); color: var(--ink); padding: clamp(1.5rem, 3.3vw, 3rem); padding-bottom: calc(clamp(1.5rem, 3.3vw, 3rem) + 60px); margin-bottom: -60px; }
.card { rotate: 0.8deg; transform-origin: 50% 100%; }
.card h2 { font-size: var(--step-mid); text-align: center; line-height: 1.1; }
.card dl { margin: 1.75rem 0 2rem; }
.card dl > div + div { margin-top: 1rem; }
.card dt { font-weight: 500; }
.card dd { line-height: 1.38; }

/* ---------- footer ---------- */
.foot { background: var(--field-2); color: var(--field-1-ink); min-height: 90svh; display: grid; grid-template-rows: auto 1fr auto; gap: 2.5rem; padding: 2.5rem var(--margin) 1.5rem; }
.foot-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); font-size: var(--step-small); line-height: 1.4; }
.foot-top p:nth-child(1) { grid-column: 1 / 5; }
.foot-top p:nth-child(2) { grid-column: 5 / 9; }
.foot-up { grid-column: 11 / 13; justify-self: end; }
.closing { align-self: end; font-size: clamp(2.25rem, 7.8vw, 9rem); line-height: 0.98; letter-spacing: -0.04em; font-weight: 300; }
.foot-meta { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); font-size: var(--step-small); line-height: 1.4; }
.foot-meta p:nth-child(1) { grid-column: 1 / 7; }
.foot-meta p:nth-child(2) { grid-column: 7 / 13; }

/* ---------- pointer feedback ---------- */
@media (hover: hover) and (pointer: fine) {
  .rail-nav a:not(.button):hover { text-decoration-color: currentColor; }
  .button:hover { background: var(--field-2); color: var(--bg); }
  .button-small:hover, .play:hover .button { background: var(--surface); color: var(--ink); }
  .rail.is-docked .button-small:hover { background: var(--field-2); color: var(--bg); }
  .play:hover .button { transform: scale(1.03); }
  .schemes label:hover { background: var(--muted); color: var(--bg); }
  .place h3 label:hover { color: var(--ink); }
}

/* ---------- entrances: content stays visible without script ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .card[data-reveal] { transform: translateY(70px); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .opening-a img { animation: settle 16s var(--ease-soft) both; }
}
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

/* ---------- narrower screens ---------- */
@media (max-width: 1360px) {
  .rail-line { display: none; }
  .opening-foot { display: block; position: absolute; left: var(--margin); bottom: 3.25rem; max-width: 34rem; color: var(--bg); background: var(--scrim); padding: 1rem 1.25rem 1.25rem; }
  .opening-foot p { font-size: var(--step-lead); line-height: 1.25; margin-bottom: 0.9rem; }
  .opening-foot .button { background: var(--bg); color: var(--ink); }
}
@media (max-width: 1000px) {
  .rail-nav { display: none; }
  .rail-menu { display: block; }
  .film-head h2, .plan-head h2, .bati-head h2 { grid-column: 1 / -1; }
  .film-head p, .plan-head p, .bati-head p { grid-column: 1 / -1; margin-top: 1rem; }
  .plans, .places { grid-column: 1 / -1; }
  .avantages > h2 { grid-column: 1 / -1; position: static; margin-bottom: 2.5rem; }
  .rows { grid-column: 1 / -1; }
  .mosaic-photo, .mosaic-side { grid-column: 1 / -1; }
  .mosaic-side { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: start; }
  .facts { margin-top: 0; }
  .roles-main, .roles-open { grid-column: 1 / -1; }
  .roles-open { margin-top: 2.5rem; }
  .bati-foot > div, .bati-foot .lead { grid-column: 1 / -1; }
  .bati-foot .lead { margin-top: 2rem; }
  .commune-text { grid-column: 1 / -1; padding-bottom: 2.5rem; }
  .card { grid-column: 1 / -1; }
  .foot-top p:nth-child(1), .foot-top p:nth-child(2) { grid-column: 1 / -1; }
  .foot-top p:nth-child(2) { margin-top: 0.75rem; }
  .foot-up { grid-column: 1 / -1; justify-self: start; margin-top: 0.75rem; }
  .foot-meta p:nth-child(1), .foot-meta p:nth-child(2) { grid-column: 1 / -1; }
  .foot-meta p:nth-child(2) { margin-top: 0.75rem; }
}
@media (max-width: 700px) {
  :root { --rail: 76px; --step-display: 30vw; }
  .rail h1 { font-size: 1.625rem; line-height: 1.08; white-space: normal; max-width: 15em; }
  .opening-a img { object-position: 42% 50%; }
  .opening-b img { object-position: 60% 50%; }
  .opening-foot { left: 0; right: 0; bottom: 0; max-width: none; padding: 1rem var(--margin) 3.75rem; }
  .opening-foot .button { display: flex; width: 100%; }
  .ai-note { left: 0; right: 0; }

  .stats-photo { height: 80svh; }
  .big-note { left: var(--margin); right: var(--margin); width: auto; text-align: left; bottom: calc(var(--margin) + 30vw * 0.82 + 0.5rem); }
  .second-figure, .constats-list { grid-column: 1 / -1; }
  .constats-list { margin-top: 2rem; }

  .parole blockquote { font-size: 1.5rem; }
  .tri-centre { width: 78vw; }
  .tri-side { width: 62vw; }

  .schemes { flex-direction: column; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row:nth-child(3n + 1) > img { width: 100%; }
  .row:nth-child(3n + 2) > img { width: 70%; justify-self: end; }
  .row:nth-child(3n) > img { width: 55%; }

  .mosaic-photo figcaption { position: static; width: auto; padding: 1rem 0 0; font-size: var(--step-body); }
  .mosaic-photo img { aspect-ratio: 4 / 3; }
  .mosaic-side { grid-template-columns: 1fr; }
  .facts { margin-top: 0.5rem; }
  .roles-cols { grid-template-columns: 1fr; }

  .verb h3 { font-size: 15.5vw; font-weight: 500; }
  .play .button { min-height: 3rem; padding: 0 1.5rem; font-size: var(--step-body); }

  .steps { padding-top: var(--gap); }
  .steps-pic { grid-column: 1 / -1; top: var(--rail); z-index: 2; aspect-ratio: auto; height: 34svh; max-height: none; margin-inline: calc(var(--margin) * -1); width: calc(100% + var(--margin) * 2); }
  .steps-list { grid-column: 1 / -1; margin-top: 1.75rem; }

  .card { rotate: 0.4deg; width: 96%; justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
}
