/* Midi Mas — site vitrine (accueil, réalisations, terrains, actualités, pages locales, contact)
   Généré avec scripts/build-site.py. Écran noir, grandes images, titres fins en capitales espacées. */
:root {
  --black: #000;
  --ink: #0b0b0a;
  --panel: #121211;
  --panel-2: #1a1a18;
  --text: #e9e7e3;
  --text-2: #cfcbc4;
  --muted: #a39e96;
  --line: rgba(233, 231, 227, .14);
  --gold: #b19777;
  --gold-light: #cdb593;
  --sans: "Quicksand", "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --gutter: clamp(18px, 4vw, 64px);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --swift: cubic-bezier(.7, 0, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
body { margin: 0; background: var(--black); color: var(--text-2); font: 400 16.5px/1.8 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: var(--gold-light); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--text); color: var(--black); }
.skip:focus { top: 12px; }
.nw { white-space: nowrap; }

/* Titres */
h1, h2, h3, h4 { color: var(--text); font-family: var(--sans); font-weight: 300; line-height: 1.2; margin: 0 0 .7em; }
.t-display { font-size: clamp(34px, 5.2vw, 72px); letter-spacing: .14em; text-transform: uppercase; }
.t-title, .prose h2 { font-size: clamp(26px, 3vw, 42px); letter-spacing: .16em; text-transform: uppercase; }
.t-sub, .prose h3 { font-size: clamp(18px, 1.6vw, 22px); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.prose h4 { font-size: 17px; font-weight: 500; letter-spacing: .06em; color: var(--text); }
.kicker { display: block; margin: 0 0 18px; color: var(--gold-light); font-size: 12px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; }
.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.75; color: var(--text); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; }

/* Mise en page */
.wrap { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }
.wrap--text { width: min(100% - 2 * var(--gutter), 880px); margin-inline: auto; }
.wrap--wide { width: min(100% - 2 * var(--gutter), 1680px); margin-inline: auto; }
.section { padding-block: clamp(72px, 9vw, 150px); }
.section--tight { padding-block: clamp(48px, 6vw, 96px); }
.section--panel { background: var(--panel); }
.section + .section--panel, .section--panel + .section { border-top: 1px solid var(--line); }
.center { text-align: center; }
.cols { display: grid; gap: clamp(28px, 5vw, 80px); }
@media (min-width: 900px) { .cols--2 { grid-template-columns: 1fr 1fr; } .cols--3 { grid-template-columns: repeat(3, 1fr); } .cols--4 { grid-template-columns: repeat(4, 1fr); } }
.rule { width: 48px; height: 1px; margin: 28px auto; border: 0; background: var(--gold); }

/* Texte courant (contenu repris tel quel des pages d’origine) */
.prose { color: var(--text-2); }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--gold); }
.prose strong, .prose b { color: var(--text); font-weight: 600; }
.prose h2 { margin: 1.6em 0 .7em; }
.prose h3 { margin: 1.5em 0 .6em; }
.prose h4 { margin: 1.3em 0 .5em; }
.prose blockquote { margin: 1.5em 0; padding-left: 1.2em; border-left: 1px solid var(--gold); color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.4em; }
.table-scroll > table { margin: 0; }
.prose img { margin: 1.6em 0; }
.prose--center { text-align: center; }
.prose--center ul, .prose--center ol { display: inline-block; text-align: left; }

/* Boutons « Voile » : au survol, un voile ivoire glisse sous le texte et la flèche avance ;
   au clic, le bouton s’enfonce et un bref éclat le traverse (classe is-press posée par site.js).
   Les boutons du formulaire de contact reprennent le même voile. */
.cta { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 30px; border: 1px solid rgba(233, 231, 227, .55); color: var(--text); background: transparent; font: 500 12.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .5s var(--swift), border-color .5s var(--swift), transform .18s var(--ease); }
.cta::before, .form-card.form-embed .btn--dark::before, .form-card.form-embed .btn--wa::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--text); transform: scaleX(0); transform-origin: right center; transition: transform .6s var(--swift); }
.cta::after, .form-card.form-embed .btn--dark::after, .form-card.form-embed .btn--wa::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cta--gold { border-color: var(--gold); background: var(--gold); color: var(--black); }
.cta svg { width: 15px; height: 15px; transition: transform .5s var(--swift); }
@media (hover: hover) {
  .cta:hover { border-color: var(--text); color: var(--black); }
  .cta:hover::before { transform: scaleX(1); transform-origin: left center; }
  .cta:hover svg { transform: translateX(5px); }
}
.cta:focus-visible { border-color: var(--text); color: var(--black); }
.cta:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.cta:active { transform: scale(.965); transition-duration: .5s, .5s, .08s; }
.cta.is-press::after, .form-card.form-embed .btn.is-press::after { animation: voile-flash .45s var(--ease); }
@keyframes voile-flash { from { opacity: .38; } to { opacity: 0; } }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.center .actions { justify-content: center; }

/* En-tête */
.header { position: fixed; inset: 0 0 auto; z-index: 30; height: var(--header-h); transition: background .45s var(--ease), transform .45s var(--ease), box-shadow .45s; }
.header.is-open { z-index: 32; }
.header.is-solid, .header.is-open { background: rgba(0, 0, 0, .92); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; width: min(100% - 2 * var(--gutter), 1680px); margin-inline: auto; }
.logo { display: block; color: var(--text); line-height: 0; }
.logo svg { width: auto; height: 20px; aspect-ratio: 4896 / 602; fill: currentColor; }
.nav { display: none; }
.nav ul { display: flex; gap: clamp(20px, 2.6vw, 44px); margin: 0; padding: 0; list-style: none; }
.nav a { position: relative; color: var(--text); font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-decoration: none; text-transform: uppercase; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: var(--gold); transition: right .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.header__end { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; gap: 2px; font-size: 12px; font-weight: 600; letter-spacing: .16em; }
.lang a, .lang span { padding: 6px 7px; color: var(--muted); text-decoration: none; }
.lang [aria-current="true"] { color: var(--text); }
.lang a:hover { color: var(--text); }
.social { display: flex; gap: 14px; }
.social a { display: grid; place-items: center; width: 34px; height: 34px; color: var(--text); }
.social svg { width: 17px; height: 17px; fill: currentColor; }
.header .social { display: none; }
.burger { display: grid; place-items: center; width: 46px; height: 46px; margin-right: -10px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; }
.burger span, .burger span::before, .burger span::after { content: ""; display: block; width: 24px; height: 1px; background: currentColor; transition: transform .3s var(--ease), opacity .3s; }
.burger span { position: relative; }
.burger span::before { position: absolute; top: -7px; }
.burger span::after { position: absolute; top: 7px; }
.is-open .burger span { background: transparent; }
.is-open .burger span::before { transform: translateY(7px) rotate(45deg); }
.is-open .burger span::after { transform: translateY(-7px) rotate(-45deg); }
.menu.is-open { transition: opacity .4s var(--ease), visibility 0s; }
.menu { position: fixed; inset: 0; z-index: 31; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 20px) var(--gutter) 40px; background: var(--black); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
.menu.is-open { opacity: 1; visibility: visible; }
.menu ul { margin: 0; padding: 0; list-style: none; }
.menu li + li { margin-top: 6px; }
.menu a { color: var(--text); font-size: clamp(26px, 7vw, 40px); font-weight: 300; letter-spacing: .12em; line-height: 1.6; text-decoration: none; text-transform: uppercase; }
.menu .social { margin-top: 40px; }
@media (min-width: 1100px) {
  .nav { display: block; }
  .header .social { display: flex; }
  .burger, .menu { display: none; }
}

/* Premier écran */
.hero { position: relative; display: flex; align-items: flex-end; min-height: 100vh; min-height: 100svh; overflow: hidden; color: var(--text); background: var(--ink); }
.hero--half { min-height: 72vh; min-height: 72svh; }
.hero__slides, .hero__slide, .hero__slide > img, .hero__slide > picture > img { position: absolute; inset: 0; }
.hero__slide { display: flex; align-items: flex-end; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 1.1s; }
.hero__slide::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0, 0, 0, .46) 0, rgba(0, 0, 0, .18) 38%, rgba(0, 0, 0, 0) 62%), linear-gradient(180deg, rgba(0, 0, 0, .5) 0, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .74) 100%); pointer-events: none; }
.hero__slide.is-on { opacity: 1; visibility: visible; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 4.2s linear; }
.hero__slide.is-on img { transform: scale(1); }
.hero > .hero__body { position: absolute; left: 0; right: 0; bottom: 0; }
.hero:not(:has(.hero__slide .hero__body))::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .5) 0, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .74) 100%); pointer-events: none; }
.hero__body { position: relative; z-index: 2; width: min(100% - 2 * var(--gutter), 1680px); margin: 0 auto; padding: 0 0 clamp(64px, 11vh, 120px); }
.hero__body h1, .hero__body h2, .hero__body .t-display { margin: 0 0 14px; max-width: 18ch; }
.hero > .hero__body { z-index: 3; }
.t-display.is-long { font-size: clamp(28px, 3.4vw, 50px); letter-spacing: .12em; }
.t-title.is-long { font-size: clamp(21px, 2vw, 28px); letter-spacing: .1em; line-height: 1.4; }
.kicker.is-long { font-size: 13px; letter-spacing: .14em; line-height: 1.7; }
/* Titre h1 placé sous le diaporama de l’accueil : discret, le premier écran porte déjà le message */
.t-intro { max-width: 780px; margin: 0 auto; color: var(--text); font-size: clamp(17px, 1.7vw, 24px); font-weight: 300; letter-spacing: .24em; line-height: 1.7; text-transform: uppercase; text-wrap: balance; }
.t-intro::after { content: ""; display: block; width: 48px; height: 1px; margin: 26px auto 0; background: var(--gold); }
.section:has(> .wrap--text > .t-intro:only-child) { padding-block: clamp(64px, 7vw, 112px) 0; }
.hero__body p { max-width: 46ch; margin: 0; color: var(--text); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.7; }
.hero__place { display: block; margin-top: 4px; color: var(--text); font-size: clamp(15px, 1.2vw, 18px); letter-spacing: .08em; }
.hero__dots { position: absolute; z-index: 3; right: calc(var(--gutter) - 8px); bottom: clamp(56px, 10vh, 112px); display: flex; align-items: center; gap: 2px; }
.hero__dot { width: 26px; height: 26px; padding: 8px; border: 0; background: none; cursor: pointer; }
.hero__dot::before { content: ""; display: block; width: 10px; height: 10px; border: 1px solid var(--text); border-radius: 50%; }
.hero__dot[aria-current="true"]::before { background: var(--text); }
.hero__pause { display: grid; place-items: center; width: 30px; height: 30px; margin-right: 4px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; }
.hero__pause svg { width: 14px; height: 14px; }
.hero__pause .i-play, .hero__pause[aria-pressed="true"] .i-pause { display: none; }
.hero__pause[aria-pressed="true"] .i-play { display: inline; }
@media (max-width: 700px) { .hero__dots { bottom: 26px; } .hero__down { display: none; } }
.hero__down { position: absolute; z-index: 3; left: 50%; bottom: 22px; width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center; color: var(--text); animation: down 2.4s var(--ease) infinite; }
.hero__down svg { width: 22px; height: 22px; }
@keyframes down { 0%, 100% { transform: translateY(0); opacity: .7; } 50% { transform: translateY(6px); opacity: 1; } }

/* Titre de page sans photo */
.page-head { padding: calc(var(--header-h) + clamp(72px, 10vw, 140px)) 0 clamp(40px, 6vw, 80px); text-align: center; }
.page-head h1 { margin-bottom: 18px; }
.page-head .lede { max-width: 60ch; margin: 0 auto; }
.crumbs { margin: 0 0 22px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* Grille de réalisations, bord à bord comme une planche */
.grid { display: grid; gap: 6px; padding: 0 6px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 2200px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.tile { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--panel); color: var(--text); text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s var(--ease); }
.tile__cap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center; background: rgba(0, 0, 0, .42); opacity: 0; transition: opacity .5s var(--ease); }
.tile__name { color: var(--text); font-size: clamp(18px, 1.6vw, 24px); font-weight: 300; letter-spacing: .18em; text-transform: uppercase; }
.tile__place { margin-top: 6px; color: var(--text-2); font-size: 14px; letter-spacing: .06em; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.045); }
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { opacity: 1; }
@media (hover: none) {
  .tile__cap { inset: auto 0 0; justify-content: flex-end; align-items: flex-start; padding: 60px 18px 16px; text-align: left; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .72)); opacity: 1; }
  .tile__name { font-size: 17px; }
}

/* Visite d’une réalisation : planche de photos sans légende, deux par rangée à la même hauteur (une sur téléphone) */
.section--visit { padding-block: 6px; }
.visit { display: grid; gap: 6px; padding: 0 6px; }
.visit__row { display: flex; gap: 6px; }
.visit__item { position: relative; display: block; flex: var(--r, 1.5) 1 0; aspect-ratio: var(--r, 1.5); min-width: 0; overflow: hidden; padding: 0; border: 0; background: var(--panel); cursor: zoom-in; }
.visit__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.visit__item:hover img { transform: scale(1.03); }
.visit__row--lone { justify-content: center; }
.visit__row--lone .visit__item { flex: 0 1 calc(50% - 3px); }
@media (max-width: 700px) { .visit__row { display: grid; } .visit__row--lone .visit__item { flex: none; } }
.page-villa .lb__cap { visibility: hidden; }
.project-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 44px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.project-facts strong { display: block; color: var(--text); font-size: 15px; font-weight: 500; letter-spacing: .08em; }
.pager { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.pager a { display: block; padding: clamp(28px, 4vw, 54px) var(--gutter); color: var(--text); text-decoration: none; }
.pager a + a { text-align: right; border-left: 1px solid var(--line); }
.pager small { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; overflow-wrap: anywhere; }
.pager span { font-size: clamp(18px, 2vw, 26px); font-weight: 300; letter-spacing: .14em; text-transform: uppercase; overflow-wrap: anywhere; }
.pager a:hover span { color: var(--gold-light); }

/* Visionneuse plein écran */
.lb { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #000; color: var(--text); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease), visibility 0s; }
.lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }
.lb__count { color: var(--muted); font-variant-numeric: tabular-nums; }
.lb__stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; padding: 0 clamp(0px, 5vw, 96px); touch-action: pan-y; }
.lb__stage source { display: none; }
.lb__stage img { grid-area: 1 / 1; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity .3s var(--ease); }
.lb__stage img.is-loading { opacity: .25; }
.lb__cap { min-height: 52px; padding: 12px var(--gutter) 18px; color: var(--text-2); font-size: 14px; text-align: center; }
.lb__cap b { margin-right: 10px; color: var(--gold-light); font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
.lb button { border: 0; background: none; color: var(--text); cursor: pointer; }
.lb__close { width: 44px; height: 44px; margin-right: -10px; font-size: 30px; line-height: 1; }
.lb__prev, .lb__next { position: absolute; top: 50%; z-index: 2; width: 56px; height: 72px; margin-top: -36px; display: grid; place-items: center; opacity: .8; }
.lb__prev { left: clamp(0px, 1.4vw, 24px); }
.lb__next { right: clamp(0px, 1.4vw, 24px); }
.lb__prev:hover, .lb__next:hover { opacity: 1; }
.lb__prev svg, .lb__next svg { width: 30px; height: 30px; }
@media (max-width: 700px) {
  .lb__stage { padding: 0; }
  .lb__prev, .lb__next { top: auto; bottom: -58px; width: 48px; height: 48px; margin-top: 0; }
  .lb__cap { padding-left: 64px; padding-right: 64px; }
}

/* Cartes (terrains, actualités) */
.cards { display: grid; gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 36px); }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; color: var(--text-2); text-decoration: none; }
.card__img { overflow: hidden; aspect-ratio: 4 / 3; background: var(--panel); margin-bottom: 20px; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__img img { transform: scale(1.04); }
.card__meta { margin-bottom: 8px; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.card__title { margin: 0 0 10px; color: var(--text); font-size: 19px; font-weight: 400; letter-spacing: .08em; line-height: 1.45; text-transform: uppercase; }
.card:hover .card__title { color: var(--gold-light); }
.card p { margin: 0; font-size: 15px; }

/* Blocs de contenu : étapes, chiffres, images */
.steps { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { padding: 34px 28px; background: var(--black); color: var(--text); font-size: 15px; letter-spacing: .18em; text-transform: uppercase; }
.steps li b { display: block; margin-bottom: 14px; color: var(--gold); font-size: 13px; font-weight: 600; }
.figures { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px clamp(48px, 9vw, 140px); margin: 0; padding: 0; list-style: none; text-align: center; }
.figures strong { display: block; color: var(--text); font-size: clamp(44px, 6vw, 84px); font-weight: 300; line-height: 1; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.figures li > span { display: block; margin-top: 14px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
.band { position: relative; overflow: hidden; height: clamp(320px, 62vh, 760px); }
.band img { width: 100%; height: 100%; object-fit: cover; }
.split { display: grid; gap: clamp(28px, 5vw, 90px); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1.05fr 1fr; } .split--flip > :first-child { order: 2; } }
.split__img { overflow: hidden; aspect-ratio: 4 / 5; background: var(--panel); }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.figure { margin: clamp(28px, 4vw, 56px) 0; }
.figure img { width: 100%; }
.figure figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; }
.gallery { display: grid; gap: 6px; grid-template-columns: repeat(2, 1fr); margin: clamp(28px, 4vw, 56px) 0; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } .gallery--2 { grid-template-columns: repeat(2, 1fr); } }
.gallery--1 { grid-template-columns: 1fr; }
.gallery--1 button { aspect-ratio: 16 / 9; }
.gallery a, .gallery button { display: block; overflow: hidden; aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--panel); cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
/* Questions dépliables (accordéons repris, questions fréquentes de l’accueil) : filets fins, croix dorée tracée en deux
   traits qui devient un tiret à l’ouverture, réponse en texte courant sous la question */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: block; padding: 24px 52px 24px 0; color: var(--text); font-size: 17px; letter-spacing: .04em; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; transition: color .35s var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 15px; height: 1px; background: var(--gold); transition: transform .45s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] > summary::after { transform: rotate(0deg); }
.faq summary:focus-visible { outline-offset: 4px; }
@media (hover: hover) { .faq summary:hover, .faq summary:hover .faq__q { color: var(--gold-light); } }
.faq__q { margin: 0; color: inherit; font: 400 clamp(16.5px, 1.3vw, 19px)/1.5 var(--sans); letter-spacing: .03em; text-transform: none; transition: color .35s var(--ease); }
.faq .prose { padding: 0 52px 28px 0; font-size: 15.5px; line-height: 1.85; }
.faq .prose > :last-child { margin-bottom: 0; }
@media (max-width: 600px) { .faq summary { padding: 22px 40px 22px 0; } .faq .prose { padding-right: 0; } }
/* Accueil : questions fréquentes, titre et introduction à gauche (fixés pendant la lecture), questions à droite */
.faq-home__grid { display: grid; gap: clamp(30px, 4vw, 52px); }
.faq-home__head .t-title { margin-bottom: 22px; }
.faq-home__intro { max-width: 30em; margin: 0; color: var(--muted); font-family: var(--serif); font-size: clamp(19px, 1.55vw, 22px); font-style: italic; line-height: 1.55; }
@media (min-width: 960px) {
  .faq-home__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(56px, 7vw, 120px); align-items: start; }
  .faq-home__head { position: sticky; top: calc(var(--header-h) + 40px); }
}
/* Guides « acheter un terrain » : communes en colonnes séparées par des filets (page Terrains), lien vers le guide d’une
   commune (pages Terrains à Vence, à Roquefort-les-Pins) */
.guides__head { margin-bottom: clamp(32px, 4vw, 56px); }
.guides__head .t-title { margin-bottom: 18px; }
.guides__intro { max-width: 34em; margin: 0; color: var(--muted); font-family: var(--serif); font-size: clamp(19px, 1.55vw, 22px); font-style: italic; line-height: 1.55; }
.guides__list { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: clamp(20px, 3.4vw, 64px); }
@media (min-width: 760px) { .guides__list { columns: 3; } }
@media (min-width: 1100px) { .guides__list { columns: 4; } }
.guides__list li { break-inside: avoid; border-top: 1px solid var(--line); }
.guides__list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 11px 0; color: var(--text); font-size: 15px; letter-spacing: .04em; line-height: 1.4; text-decoration: none; transition: color .35s var(--ease); }
.guides__list a svg { flex: none; width: 13px; height: 13px; color: var(--gold); opacity: .5; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.guides__list a:focus-visible svg { opacity: 1; }
@media (hover: hover) { .guides__list a:hover { color: var(--gold-light); } .guides__list a:hover svg { opacity: 1; transform: translateX(3px); } }
@media (max-width: 520px) { .guides__list a { gap: 8px; font-size: 14px; letter-spacing: .02em; } }
.guide-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 24px; padding: clamp(26px, 3.2vw, 40px) 0; border-block: 1px solid var(--line); color: var(--text); text-decoration: none; }
.guide-link small { grid-column: 1; margin-bottom: 10px; color: var(--muted); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; }
.guide-link span { grid-column: 1; font-size: clamp(18px, 2vw, 26px); font-weight: 300; letter-spacing: .14em; line-height: 1.45; text-transform: uppercase; transition: color .35s var(--ease); }
.guide-link svg { grid-column: 2; grid-row: 1 / span 2; width: 18px; height: 18px; color: var(--gold); transition: transform .4s var(--ease); }
@media (hover: hover) { .guide-link:hover span { color: var(--gold-light); } .guide-link:hover svg { transform: translateX(4px); } }
.contact-list { display: grid; gap: 26px; margin: 0 0 clamp(40px, 6vw, 80px); padding: 0; list-style: none; }
.contact-list small, .contact-list__t { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
.contact-list a, .contact-list span { color: var(--text); font-size: 18px; text-decoration: none; }
.contact-list a:hover { color: var(--gold-light); }
.map { overflow: hidden; aspect-ratio: 16 / 9; background: var(--panel); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

/* Listes de liens, pagination, grille pleine largeur */
.links { list-style: none; padding: 0; }
.links a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.links a:hover { border-color: var(--gold); }
.section--grid { padding-block: 6px; }
.pages { display: flex; justify-content: center; gap: 6px; margin-top: 44px; }
.pages a, .pages span { display: grid; place-items: center; min-width: 44px; height: 44px; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.pages a { position: relative; isolation: isolate; overflow: hidden; transition: color .5s var(--swift), border-color .5s var(--swift); }
.pages a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--text); transform: scaleX(0); transform-origin: right center; transition: transform .6s var(--swift); }
@media (hover: hover) { .pages a:hover { border-color: var(--text); color: var(--black); } .pages a:hover::before { transform: scaleX(1); transform-origin: left center; } }
.pages [aria-current="page"] { border-color: var(--gold); color: var(--gold-light); }
.page-head .kicker + .t-title { margin-bottom: 10px; }
.hero__body .t-display { font-size: clamp(32px, 4.6vw, 64px); }
.hero__body .actions { margin-top: 26px; }
.hero .hero__place { margin-top: 18px; color: var(--text-2); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; }
figure.split__img { margin: 0; }

/* Formulaire de contact (même parcours que /projet), en tons noirs ; /projet garde son fond clair.
   Les règles reprises de /projet (form-embed.css, chargé après) sont surchargées par le préfixe .form-card.form-embed */
.form-card.form-embed {
  --bg: #0b0b0a; --card: #141413; --ink: #e9e7e3; --ink-2: #cfcbc4; --muted: #a39e96;
  --line: rgba(233, 231, 227, .14); --line-strong: rgba(233, 231, 227, .3);
  --gold-ink: #cdb593; --gold-soft: rgba(177, 151, 119, .12); --error: #f2a49d; --shadow: none;
  color-scheme: dark; min-height: 0; display: block; padding: clamp(22px, 4vw, 52px); border: 1px solid var(--line); background: var(--bg); color: var(--ink-2);
}
.form-card .q-dev { margin-bottom: 0; }
.form-card.form-embed .input, .form-card.form-embed .opt, .form-card.form-embed .recap, .form-card.form-embed .q-proofs li { background: var(--bg); }
.form-card.form-embed .input:hover { border-color: rgba(233, 231, 227, .55); }
.form-card.form-embed .opt:hover, .form-card.form-embed .opt:focus-visible, .form-card.form-embed .opt[aria-pressed="true"] { background: var(--gold-soft); }
.form-card.form-embed .q-note { border-color: rgba(177, 151, 119, .3); }
.form-card.form-embed .check input { accent-color: var(--gold); }
/* Boutons du formulaire : même « Voile » que les boutons du site */
.form-card.form-embed .btn--dark, .form-card.form-embed .btn--wa, .form-card.form-embed .empty .primary { border-radius: 0; background: var(--gold); color: #000; box-shadow: none; }
.form-card.form-embed .btn--dark, .form-card.form-embed .btn--wa { position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--gold); font-size: 12.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; -webkit-tap-highlight-color: transparent; transition: border-color .5s var(--swift), opacity .15s ease, transform .18s var(--ease); }
.form-card.form-embed .btn--dark svg { transition: transform .5s var(--swift); }
@media (hover: hover) {
  .form-card.form-embed .btn--dark:hover:not(:disabled), .form-card.form-embed .btn--wa:hover { background: var(--gold); border-color: var(--text); }
  .form-card.form-embed .btn--dark:hover:not(:disabled)::before, .form-card.form-embed .btn--wa:hover::before { transform: scaleX(1); transform-origin: left center; }
  .form-card.form-embed .btn--dark:hover:not(:disabled) svg { transform: translateX(5px); }
}
.form-card.form-embed .btn--dark:focus-visible::before, .form-card.form-embed .btn--wa:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.form-card.form-embed .btn--dark:active:not(:disabled), .form-card.form-embed .btn--wa:active { transform: scale(.965); transition-duration: .5s, .15s, .08s; }
.form-card.form-embed .wa__head { color: #667781; }
.form-card.form-embed .wa__head strong { color: #111b21; }
.form-card.form-embed #toast { background: var(--ink); color: #000; }

/* Accueil : textes de fin de page en colonnes numérotées, filets fins, signature avec les coordonnées */
.notes { background: var(--ink); border-top: 1px solid var(--line); }
.notes__grid { display: grid; column-gap: clamp(36px, 4.5vw, 80px); }
@media (min-width: 760px) { .notes__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .notes__grid { grid-template-columns: repeat(3, 1fr); } }
.notes__col { display: flex; flex-direction: column; padding: clamp(30px, 3.4vw, 46px) 0 clamp(40px, 4.4vw, 64px); border-top: 1px solid var(--line); }
.notes__n { margin: 0 0 20px; color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .32em; line-height: 1; }
.notes__t { margin: 0 0 24px; font-size: clamp(18px, 1.45vw, 21px); font-weight: 400; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; }
.notes__body { font-size: 15px; line-height: 1.85; }
.notes__body h3 { margin: 26px 0 8px; color: var(--gold-light); font-size: 11.5px; font-weight: 600; letter-spacing: .26em; line-height: 1.6; }
.notes__body h3:first-child { margin-top: 0; }
.notes__body ul { margin: 14px 0 0; padding: 0; list-style: none; }
.notes__body li { position: relative; margin: 0 0 .7em; padding-left: 24px; }
.notes__body li::before { content: ""; position: absolute; left: 0; top: .92em; width: 12px; height: 1px; background: var(--gold); }
.notes__list li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.notes__list li:first-child { border-top: 1px solid var(--line); }
.notes__list li::before { content: none; }
.notes__list a { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.notes__list a svg { width: 13px; height: 13px; color: var(--gold); opacity: 0; transform: translateX(-6px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.notes__list a:hover { color: var(--gold-light); }
.notes__list a:hover svg, .notes__list a:focus-visible svg { opacity: 1; transform: none; }
.notes__name { font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.notes__place { color: var(--muted); font-family: var(--serif); font-size: 17px; font-style: italic; }
.notes__col .actions { margin-top: 30px; }
.notes__logo { display: block; width: 190px; height: 34px; margin: 2px 0 32px; fill: var(--text); }
.notes__sign .prose p { margin: 0 0 20px; }
.notes__sign strong { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
.notes__sign a { color: var(--text); text-decoration: none; }
.notes__sign a:hover { color: var(--gold-light); }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Pied de page */
.footer { padding: clamp(64px, 8vw, 110px) 0 36px; background: var(--ink); border-top: 1px solid var(--line); font-size: 15px; }
.footer__grid { display: grid; gap: 44px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer__h { margin: 0 0 18px; color: var(--text); font-size: 12.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
.footer__h--next { margin-top: 38px; }
.footer .prose { font-size: 14.5px; }
.footer .social { margin-top: 18px; margin-left: -8px; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li + li { margin-top: 8px; }
.footer a { color: var(--text-2); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer .logo svg { height: 22px; margin-bottom: 22px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__cookies { padding: 0; border: 0; background: none; color: var(--text-2); font: inherit; cursor: pointer; }
.footer__cookies:hover { color: var(--text); }
.contact-list__t { font-family: var(--sans); line-height: 1.6; }

/* Très grands écrans : le texte reste lisible, les images s’étendent */
@media (min-width: 2200px) {
  body { font-size: 18px; }
  :root { --header-h: 88px; }
  .wrap { width: min(100% - 2 * var(--gutter), 1480px); }
  .wrap--text { width: min(100% - 2 * var(--gutter), 980px); }
}
