/* ==================================================================
   La Vie La Bella Montbardoise — main.css
   Feuille définitive. Pages encore en wireframe : assets/css/wireframe.css
   Valeurs relevées sur le Figma « Accueil · Desktop » (1600 px).
================================================================== */

/* ---------- Jetons ---------- */
:root {
  /* Fonds */
  --papier: #fbf8f3;
  --creme: #f4ede3;
  --rose-pale: #f0eaea;
  --nuit: #232122;
  --blanc: #fff;
  /* Textes */
  --encre: #1d2521;
  --encre-2: #4b5650;
  --encre-3: #7b847e;
  /* Accents */
  --terracotta: #a2432e;
  --rose: #edae9b;
  --rose-clair: #f6d2c6;
  --peche: #f2d8c6;
  --bleu: #4c7192;
  --bleu-fonce: #3a5872;
  --bleu-nuit: #2b4457;
  --bleu-700: #334b61;
  --bleu-600: #3f5d79;
  --bleu-500: #4c7192;
  --bleu-400: #688eb0;
  --bleu-300: #90acc5;
  /* Typo */
  --serif: "Cormorant Garamond", Georgia, serif;
  --serif-num: "Cormorant Infant", "Cormorant Garamond", Georgia, serif;
  --serif-link: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --serif-text: "Crimson Text", Georgia, serif;
  --sans: "Google Sans Flex", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Grille : 1360 px de contenu, marges de 120 px à 1600 px */
  --content: 1360px;
  --pad: clamp(20px, 7.5vw, 120px);
  --section: clamp(80px, 8.75vw, 140px);
  --radius: 8px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  /* Ombres et verre */
  --shadow-panel: 0 24px 24px -20px rgba(78, 31, 21, .3);
  --shadow-card: 0 16px 16px -12px rgba(0, 0, 0, .25);
  --text-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--papier); color: var(--encre); font-family: var(--sans); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
em { font-style: italic; }
.num { font-family: var(--serif-num); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--papier); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--section) 0; position: relative; }

/* ---------- Typographie ---------- */
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: .2em; text-transform: uppercase; color: var(--terracotta); }
.eyebrow::before { content: ""; flex: none; width: 36px; height: 1px; background: currentColor; }
.eyebrow--rose { color: var(--rose); }
.eyebrow--plain::before { display: none; }

.title-xl { font-family: var(--serif); font-size: clamp(48px, 5.25vw, 84px); font-weight: 600; line-height: .98; letter-spacing: -.01em; }
.title-xl .em-bold { font-weight: 700; }
.title-xl--regular { font-weight: 400; }
.title-lg { font-family: var(--serif); font-size: clamp(40px, 3.75vw, 60px); font-weight: 600; line-height: 1.04; letter-spacing: -.005em; }
.title-lg--loose { line-height: 1.1; }
.title-mb { font-family: var(--serif); font-size: clamp(36px, 3.125vw, 50px); font-weight: 400; line-height: 1.04; letter-spacing: -.005em; }
.title-md { font-family: var(--serif); font-size: clamp(32px, 2.625vw, 42px); font-weight: 500; line-height: 1.2; }
.title-sm { font-family: var(--serif); font-size: clamp(32px, 2.5vw, 40px); font-weight: 600; line-height: 1.1; }
.title-card { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.1; }
.lead { font-size: clamp(18px, 1.3125vw, 21px); line-height: 1.65; color: var(--encre-2); }
.body { font-size: 18px; line-height: 1.65; color: var(--encre-2); }
.label-blue { font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: .2em; text-transform: uppercase; color: var(--bleu); }
.label-blue--lg { font-size: 18px; }

/* Lien texte souligné (Cormorant Bold capitales) */
.link { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif-text); font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; color: var(--bleu-fonce); text-decoration: underline; text-decoration-color: rgba(76, 113, 146, .3); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .3s var(--ease), text-decoration-color .3s var(--ease); }
.link:hover { color: var(--terracotta); text-decoration-color: rgba(162, 67, 46, .3); }
.link .icon { transition: transform .3s var(--ease); }
.link:hover .icon { transform: translateX(4px); }
.link--rose { font-size: 18px; color: var(--rose); text-decoration-color: rgba(237, 174, 155, .5); }
.link--rose:hover { color: var(--rose-clair); text-decoration-color: rgba(246, 210, 198, .5); }

/* ---------- Boutons (radius 8) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 58px; padding: 0 30px; border: 1px solid transparent; border-radius: var(--radius); font-family: var(--sans); font-size: 18px; font-weight: 600; line-height: 1; letter-spacing: .04em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease), text-shadow .4s var(--ease); }
.btn .icon { flex: none; transition: transform .4s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--light { background: var(--papier); color: var(--bleu-nuit); }
.btn--light:hover { background: #e08a71; color: var(--papier); }
.btn--glass { background: rgba(65, 42, 35, .15); border-color: var(--rose); color: var(--papier); text-shadow: var(--text-shadow); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.btn--glass:hover { background: #e08a71; border-color: #e08a71; }
.btn--caps { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--blanc); }
.btn--outline { background: rgba(251, 234, 228, .3); border-color: var(--terracotta); color: var(--encre); letter-spacing: .01em; }
.btn--outline:hover { background: var(--terracotta); color: var(--papier); }
.btn--terra { background: var(--terracotta); color: var(--papier); }
.btn--terra:hover { background: #5a88b0; }
.btn--block { width: 100%; }
.btn--tall { height: 64px; }

/* Cartes en verre */
.glass-card { background: rgba(43, 68, 87, .5); border: 1px solid rgba(246, 210, 198, .3); border-radius: 16px; box-shadow: var(--shadow-card); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); color: var(--papier); text-shadow: var(--text-shadow); }
.glass-panel { padding: 10px; background: rgba(253, 248, 244, .7); border-radius: var(--radius); box-shadow: var(--shadow-panel); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* ---------- Header ---------- */
.header { position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 50; border-bottom: 1px solid transparent; transition: top .4s var(--ease), border-color .4s var(--ease); }
/* Fond et flou du header fixe posés sur un pseudo-élément : si le header portait lui-même le backdrop-filter,
   le flou du bouton à l'intérieur ne verrait que le fond du header et paraîtrait opaque. */
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(251, 248, 243, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
.header.is-solid::before { opacity: 1; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 32px 60px; transition: padding .4s var(--ease); }
.header__logo img { width: 220px; height: auto; }
.header__nav { display: flex; gap: 40px; }
.header__nav a { font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: .12em; text-transform: uppercase; color: var(--blanc); text-decoration: none; text-shadow: var(--text-shadow); }
/* Liens à 70 %, page active à 100 % encadrée de deux traits alignés sur les bords haut et bas du bouton (58 px) */
.header__nav a:not(.btn) { position: relative; opacity: .7; transition: opacity .4s var(--ease); }
.header__nav a:not(.btn):hover, .header__nav a[aria-current] { opacity: 1; }
/* Traits haut et bas : largeur du texte (right compense le letter-spacing de la dernière lettre) ; page active + survol */
.header__nav a:not(.btn)::before, .header__nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: .12em; height: 1px; background: rgba(237, 174, 155, .8); opacity: 0; transform: scaleX(.4); transition: opacity .4s var(--ease), transform .4s var(--ease), background .4s var(--ease); }
.header__nav a:not(.btn)::before { top: calc(50% - 29px); }
.header__nav a:not(.btn)::after { bottom: calc(50% - 29px); }
.header__nav a:not(.btn):hover::before, .header__nav a:not(.btn):hover::after { opacity: .5; transform: none; }
.header__nav a[aria-current]::before, .header__nav a[aria-current]::after { opacity: 1; transform: none; }
.header.is-solid .header__nav a:not(.btn)::before, .header.is-solid .header__nav a:not(.btn)::after { background: rgba(76, 113, 146, .8); }
/* Survol : couleur inverse de l'actif (bleu clair sur le header sombre, terracotta sur le header blanc) */
.header__nav a:not(.btn):not([aria-current]):hover::before, .header__nav a:not(.btn):not([aria-current]):hover::after { background: var(--bleu-300); }
.header.is-solid .header__nav a:not(.btn):not([aria-current]):hover::before, .header.is-solid .header__nav a:not(.btn):not([aria-current]):hover::after { background: var(--terracotta); }
.header__cta-menu, .header__burger, .fab-call { display: none; }
.header__logo-dark { display: none; }
.header.is-solid { border-bottom-color: rgba(162, 67, 46, .15); }
.header.is-solid .header__logo-light { display: none; }
.header.is-solid .header__logo-dark { display: block; }
.header.is-solid .header__nav a:not(.btn) { color: var(--encre); text-shadow: none; }
.header.is-solid .btn--glass { background: rgba(251, 234, 228, .3); border-color: var(--terracotta); color: var(--encre); text-shadow: none; }
.header.is-solid .btn--glass:hover { background: var(--terracotta); color: var(--papier); }
.header.is-solid .header__inner { padding-top: 14px; padding-bottom: 14px; }
.header.is-solid .header__burger { color: rgba(29, 37, 33, .8); }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; min-height: max(640px, 100vh); min-height: max(640px, 100svh); border-top: var(--topbar-h) solid var(--bleu-600); background: var(--nuit); color: var(--blanc); overflow: hidden; }
.hero__slides { position: absolute; inset: 0; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: 0; transform: scale(1.06); transition: opacity 1.8s var(--ease), transform 1.8s var(--ease); }
.hero__img.is-on { opacity: 1; transform: scale(1); transition: opacity 1.8s var(--ease), transform 9s linear; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 85% 80% at 50% 52%, rgba(33, 24, 21, .6) 0%, rgba(33, 24, 21, .45) 35%, rgba(33, 24, 21, .2) 70%, rgba(33, 24, 21, 0) 100%), linear-gradient(180deg, rgba(41, 25, 19, .86) 7.69%, rgba(94, 75, 81, .4) 34.6%, rgba(41, 25, 19, .4) 100%); }
.hero__dots { position: absolute; z-index: 2; left: 50%; bottom: 40px; transform: translateX(-50%); display: flex; gap: 10px; }
.hero__dots button { position: relative; width: 44px; height: 3px; padding: 0; border: 0; background: rgba(251, 248, 243, .3); cursor: pointer; transition: background .4s var(--ease); }
.hero__dots button:not(.is-on):hover { background: rgba(166, 197, 229, .8); }
.hero__dots button.is-on { cursor: default; }
.hero__dots button::before { content: ""; position: absolute; inset: -15px -5px; }
.hero__dots button::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--rose); }
.hero__dots button.is-on::after { animation: heroFill 4s linear forwards; }
@keyframes heroFill { from { width: 0; } to { width: 100%; } }
.hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding-top: 122px; padding-bottom: 100px; text-align: center; }
.hero__eyebrow { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; line-height: 1; letter-spacing: .2em; text-transform: uppercase; color: var(--peche); text-shadow: 1px 1px 3px rgba(0, 0, 0, .35); }
.hero__eyebrow::before, .hero__eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; box-shadow: 1px 1px 3px rgba(0, 0, 0, .35); }
.hero__eyebrow-br { display: none; }
.hero__title { max-width: 860px; font-family: var(--serif); font-size: clamp(48px, 5.625vw, 90px); font-weight: 600; line-height: 1.222; letter-spacing: -.01em; text-transform: uppercase; text-shadow: 2px 2px 6px rgba(0, 0, 0, .35); }
.hero__lead { max-width: 600px; font-size: clamp(18px, 1.3125vw, 21px); font-weight: 500; line-height: 1.65; letter-spacing: .01em; color: var(--papier); text-shadow: 1px 1px 3px rgba(0, 0, 0, .35); }
.hero__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; padding-top: 16px; }
/* Héros des pages intérieures : sous-titre à la place du texte, légende des photos en bas à gauche */
.hero__sub { max-width: 860px; font-size: clamp(22px, 2.5vw, 40px); font-weight: 600; line-height: 1; letter-spacing: .12em; text-transform: uppercase; opacity: .8; text-shadow: 2px 2px 6px rgba(0, 0, 0, .35); }
.hero__card { position: absolute; z-index: 2; left: 40px; bottom: 40px; padding: 20px 24px; }

/* ---------- Intro · la résidence ---------- */
.intro { background: var(--papier); }
.intro__cols { display: grid; grid-template-columns: 668fr 136fr 441fr 115fr; align-items: center; }
.intro__imgs { grid-column: 1; position: relative; display: grid; grid-template-columns: 361fr 301fr; grid-template-rows: 440fr 254fr; gap: 6px; aspect-ratio: 668 / 700; }
.intro__img { width: 100%; height: 100%; object-fit: cover; }
.intro__img--a { grid-column: 1 / -1; object-position: left center; }
.intro__img--b { object-position: 70% center; }
.intro__img--c { object-position: 40% 0; }
.intro__trajet { position: absolute; left: 20px; top: 20px; width: min(360px, calc(100% - 40px)); padding: 24px 26px; display: flex; flex-direction: column; gap: 16px; }
.intro__trajet-row { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: .15em; text-transform: uppercase; color: var(--rose-clair); }
.intro__trajet-line { position: relative; height: 1px; margin: 4px 0; background: rgba(251, 248, 243, .3); }
.intro__trajet-line::before, .intro__trajet-line::after { content: ""; position: absolute; top: -4px; width: 9px; height: 9px; box-sizing: border-box; border-radius: 50%; border: 1px solid var(--papier); }
.intro__trajet-line::before { left: 0; background: rgba(35, 33, 34, .4); }
.intro__trajet-line::after { right: 0; background: var(--papier); }
.intro__trajet-line i { position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); animation: trajet 4s var(--ease) infinite; }
@keyframes trajet { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 7px); opacity: 0; } }
.intro__trajet-time { display: flex; align-items: baseline; gap: 8px; font-size: 16px; font-weight: 500; line-height: 1.5; letter-spacing: .02em; }
.intro__trajet-time b { font-family: var(--serif-num); font-size: 54px; font-weight: 600; line-height: 1; letter-spacing: .05em; }
.intro__text { grid-column: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.intro__text .eyebrow { margin-bottom: 0; }
.intro__body { display: flex; flex-direction: column; gap: 16px; color: var(--encre-2); }

/* ---------- Pour qui ---------- */
.pourqui { background: var(--rose-pale); overflow: hidden; }
.pourqui__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pourqui::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 52% 68% at 8% 27%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)), linear-gradient(to left, rgba(240, 234, 234, .6), rgba(240, 234, 234, .9)); }
.pourqui__cols { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.pourqui__text { width: 496px; padding: 16px 0 16px 40px; }
.pourqui__text .title-xl { margin-bottom: 16px; }
.pourqui__cards { display: flex; gap: 32px; }
.pourqui__card { position: relative; display: block; width: 380px; aspect-ratio: 380 / 460; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--blanc); box-shadow: var(--shadow-panel); }
.pourqui__card, .pourqui__card[data-reveal] { transition: opacity .9s var(--ease), transform .6s var(--ease), box-shadow .6s var(--ease); }
.pourqui__card:hover, .pourqui__card[data-reveal].is-in:hover { transform: translateY(-15px); box-shadow: 0 36px 32px -20px rgba(78, 31, 21, .4); }
.pourqui__card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pourqui__card:hover img { transform: scale(1.04); }
.pourqui__card:hover .link--rose { color: #eef4fc; text-decoration-color: rgba(238, 244, 252, .5); }
.pourqui__card:hover .link .icon { transform: translateX(4px); }
.pourqui__card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 43.5%; background: linear-gradient(180deg, rgba(41, 25, 19, 0), rgba(41, 25, 19, .9) 81.25%);}
.pourqui__card-text { position: absolute; z-index: 1; left: 32px; right: 32px; bottom: 30px; display: flex; flex-direction: column; gap: 13px; }
.pourqui__card-title { font-family: var(--serif); font-size: clamp(36px, 3.125vw, 50px); font-weight: 600; line-height: 1; letter-spacing: -.005em; text-shadow: var(--text-shadow); }

/* ---------- Piliers ---------- */
.piliers { background: var(--papier); }
.piliers__head { display: flex; align-items: flex-end; gap: 80px; margin-bottom: 70px; }
.piliers__head > div { max-width: 100%; }
.piliers__head .title-lg { width: 760px; max-width: 100%; }
.piliers__head .lead { width: 440px; margin-left: auto; }
.piliers__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }
.pilier { position: relative; }
.pilier:nth-child(2) { padding-top: 108px; }
.pilier:nth-child(3) { padding-top: 188px; }
.pilier__img { width: 100%; aspect-ratio: 426.67 / 480; object-fit: cover; border-radius: var(--radius); }
.pilier__num { position: absolute; left: -10px; margin-top: -2px; font-family: var(--serif-num); font-size: 110px; font-weight: 700; line-height: 1.1; color: var(--terracotta); opacity: .15; pointer-events: none; }
.pilier .title-sm { position: relative; margin: 50px 0 12px; }
.pilier .body { position: relative; max-width: 360px; }

/* ---------- Vivre à Montbard ---------- */
.montbard { position: relative; padding: 24px; background: var(--nuit); color: var(--papier); }
.montbard__frame { position: relative; min-height: 802px; overflow: hidden; display: flex; align-items: center; }
.montbard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s var(--ease); }
.montbard__img.is-on { opacity: 1; }
.montbard__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(35, 33, 34, .15) 0%, rgba(35, 33, 34, .3) 28.4%, rgba(35, 33, 34, .9) 50.7%, var(--nuit) 100%); pointer-events: none; }
.montbard__wrap { position: relative; z-index: 1; display: flex; justify-content: flex-end; padding-top: 107px; padding-bottom: 106px; }
.montbard__text { width: 553px; max-width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.montbard__text .eyebrow { margin-bottom: 0; }
.montbard__points { display: grid; grid-template-columns: 1fr 1fr; column-gap: 50px; width: 100%; padding-top: 20px; }
.montbard__points > div { padding: 12px 0 44px; border-top: 1px solid rgba(237, 174, 155, .8); }
.montbard__points > div:nth-child(n+3) { padding-bottom: 24px; }
.montbard__points h3 { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.65; }
.montbard__points p { font-size: 18px; line-height: 1.65; opacity: .8; }
.montbard__card { position: absolute; z-index: 2; left: 32px; bottom: 32px; padding: 20px 24px; }
.montbard__dots { position: absolute; z-index: 2; left: 32px; top: 32px; display: flex; gap: 10px; }
.montbard__dots button { position: relative; width: 44px; height: 3px; padding: 0; border: 0; background: rgba(251, 248, 243, .3); cursor: pointer; transition: background .4s var(--ease); }
.montbard__dots button:not(.is-on):hover { background: rgba(166, 197, 229, .8); }
.montbard__dots button.is-on { cursor: default; }
.montbard__dots button::before { content: ""; position: absolute; inset: -15px -5px; }
.montbard__dots button::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--rose); }
.montbard__dots button.is-on::after { animation: heroFill 5s linear forwards; }
.montbard__cap { display: none; flex-direction: column; gap: 12px; }
.montbard__cap.is-on { display: flex; animation: capIn .8s var(--ease); }
@keyframes capIn { from { opacity: 0; } to { opacity: 1; } }
.montbard__cap-title { font-family: var(--serif-num); font-size: 45px; font-weight: 600; line-height: 1; letter-spacing: .03em; color: var(--blanc); text-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.montbard__credit { font-size: 13px; font-weight: 500; line-height: 1.5; letter-spacing: .02em; }
.montbard__credit a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 50%, transparent); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .4s var(--ease); }
.montbard__credit a:hover { color: var(--rose); }

/* ---------- La vie à la résidence ---------- */
.vie { background: var(--creme); padding: clamp(56px, 7.5vw, 120px) 0 clamp(96px, 10vw, 160px); }
.vie__pin { padding-top: 40px; }
.vie.is-pinned .vie__pin { position: sticky; top: var(--hdr, 82px); padding-bottom: 24px; }
.vie.is-pinned .vie__strip { overflow: hidden; scroll-snap-type: none; }
.vie.is-pinned .vie__pin { padding-top: 24px; }
.vie.is-pinned .vie__head { margin-bottom: 32px; }
.vie.is-pinned .vie__card img { aspect-ratio: 1; height: auto; object-position: center top; }
.vie.is-pinned .title-card { font-size: 30px; white-space: nowrap; }
.vie__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 56px; }
.vie__head > div { min-width: 0; max-width: 100%; }
.vie__head .title-lg { max-width: 674px; }
.vie__arrows { display: flex; gap: 10px; flex: none; }
.arrow-btn { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; padding: 0; border: 1px solid var(--terracotta); border-radius: 999px; background: transparent; color: var(--terracotta); cursor: pointer; transition: background .4s var(--ease), color .4s var(--ease); }
.arrow-btn:hover { background: var(--terracotta); color: var(--papier); }
.arrow-btn--prev .icon { transform: scaleX(-1); }
.vie__strip { --start: max(var(--pad), calc((100vw - var(--content)) / 2)); display: flex; gap: 24px; overflow-x: auto; padding: 0 var(--pad) 8px var(--start); scroll-padding-inline: var(--start); scroll-snap-type: x proximity; scrollbar-width: none; }
.vie__strip::-webkit-scrollbar { display: none; }
.vie__card { flex: none; width: 400px; max-width: 80vw; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; }
.vie__card img { width: 100%; aspect-ratio: 400 / 533; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; }
.vie__card .eyebrow { margin: 0; }
.vie__card .body { max-width: 380px; }

/* ---------- Appartements (pile tournante, cartes 5:6) ---------- */
.apts { background: var(--papier); padding: clamp(100px, 10.6vw, 170px) 0; }
.apts__cols { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.apts__stage { position: relative; flex: none; width: 660px; max-width: 100%; aspect-ratio: 660 / 760; }
.apts__card { position: absolute; left: 12.121%; top: 10.526%; width: 75.758%; height: 78.947%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--creme); cursor: pointer; box-shadow: var(--shadow-panel); transition: transform 1.1s cubic-bezier(.65, 0, .25, 1), translate .5s var(--ease); will-change: transform; }
.apts__card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.apts__card:not(.is-mid):hover img { transform: scale(1.08); }
/* propriété translate, indépendante du transform de la rotation : le survol garde sa propre durée */
.apts__card.is-front:hover { translate: 10px 10px; }
.apts__card.is-back:hover { translate: -10px -10px; }
.apts__card.is-mid { z-index: 2; transform: none; cursor: default; }
.apts__card.is-back { z-index: 1; transform: translate(-41%, -38.333%) scale(.5); }
.apts__card.is-front { z-index: 3; transform: translate(41%, 38.333%) scale(.5); }
.apts__card.is-travel { z-index: 0; }
.apts__list { width: 555px; max-width: 100%; }
.apts__list .title-lg { margin-bottom: 36px; }
.apts__items { margin-bottom: 36px; border-top: 1px solid rgba(162, 67, 46, .3); }
.apts__item { border-bottom: 1px solid rgba(162, 67, 46, .3); transition: background .4s var(--ease); }
.apts__item:not(.is-on):hover { background: rgba(120, 166, 212, .1); }
.apts__btn { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; width: 100%; padding: 26px 0; border: 0; background: none; text-align: left; cursor: pointer; transition: padding .4s var(--ease); }
.apts__name { font-family: var(--serif); font-size: clamp(32px, 2.5vw, 40px); font-weight: 600; line-height: 1.1; color: var(--encre); transition: color .4s var(--ease); }
.apts__meta { font-size: 15px; line-height: 1.5; color: var(--encre-2); white-space: nowrap; }
.apts__desc { display: none; padding: 0 14px 26px; color: var(--encre-2); }
.apts__item:not(.is-on):hover .apts__btn { padding-left: 14px; padding-right: 14px; }
.apts__item.is-on .apts__btn { padding: 26px 14px 10px; cursor: default; }
.apts__item:not(.is-on):hover .apts__name, .apts__item.is-on .apts__name { color: var(--terracotta); }
.apts__item.is-on .apts__desc { display: block; }

/* ---------- Prix ---------- */
.prix { background: var(--creme); overflow: hidden; }
.prix__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prix::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 46% at 14% 27%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)), linear-gradient(to left, rgba(244, 237, 227, .1) 0%, rgba(244, 237, 227, .3) 42.3%, rgba(240, 234, 234, .7) 59.4%, rgba(240, 234, 234, .9) 100%); }
.prix__cols { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 60px; padding-left: calc(var(--pad) + 115px); padding-right: calc(var(--pad) + 115px); }
.prix__text { width: 438px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.prix__text .eyebrow { margin: 0; }
.prix__amount { font-family: var(--serif); font-size: clamp(44px, 3.75vw, 60px); font-weight: 600; line-height: 1.04; letter-spacing: -.005em; }
.prix__sub { font-family: var(--serif); font-size: clamp(30px, 2.5vw, 40px); font-weight: 500; line-height: 1.04; letter-spacing: -.005em; }
.prix__ticket { flex: none; width: 555px; max-width: 100%; display: flex; flex-direction: column; gap: 24px; }
.prix__ticket-inner { padding: 40px 40px 0; display: flex; flex-direction: column; gap: 24px; }
.prix__list { border-bottom: 2px solid var(--terracotta); padding-bottom: 0; }
.prix__head { display: flex; justify-content: space-between; padding-bottom: 22px; margin-bottom: 24px; border-bottom: 2px solid rgba(76, 113, 146, .3); }
.prix__list li { display: flex; align-items: baseline; justify-content: space-between; height: 50px; }
.prix__list li span { font-size: 21px; font-weight: 500; line-height: 1; letter-spacing: .01em; color: #000; }
.prix__list li b { font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: .2em; text-transform: uppercase; color: var(--terracotta); }
.prix__total { display: flex; align-items: baseline; justify-content: space-between; }
.prix__total b { font-size: 60px; font-weight: 600; line-height: 1; letter-spacing: .01em; color: var(--terracotta); }
.prix__note { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px; border-radius: 4px; background: rgba(76, 113, 146, .12); font-size: 18px; line-height: 1.65; letter-spacing: .03em; color: var(--encre-2); text-align: center; }

/* ---------- Preuve · Semur-en-Auxois ---------- */
.semur { position: relative; min-height: 824px; display: flex; align-items: center; padding: var(--section) 0; background: radial-gradient(ellipse 74% 90% at 97% 7%, #4e1f15 0%, #39201c 50%, var(--nuit) 100%); color: var(--papier); overflow: hidden; }
.semur__imgs { position: absolute; left: 6px; top: 6px; bottom: 6px; width: calc(50% - 6px); display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 2.14fr 1fr; gap: 6px; }
.semur__img { background-size: cover; background-position: center; }
.semur__img--main { grid-column: 1 / -1; background-image: url(../img/semur-facade.webp); background-position: 45% center; }
.semur__img--1 { background-image: url(../img/semur-salon.webp); background-position: 25% center; }
.semur__img--2 { background-image: url(../img/semur-salle.webp); background-position: center; }
.semur__img--3 { background-image: url(../img/semur-forme.webp); background-position: 40% center; }
.semur__wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; }
.semur__text { grid-column: 2; width: auto; max-width: 680px; padding-left: clamp(70px, 7vw, 110px); display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.semur__text .eyebrow { margin: 0; line-height: 1.4; }

.semur__stats { display: flex; justify-content: space-between; width: 100%; padding: 16px 0; }
.semur__stats div { display: flex; flex-direction: column; gap: 8px; }
.semur__stats b { font-size: clamp(56px, 5vw, 80px); font-weight: 500; line-height: 1; letter-spacing: .03em; }
.semur__stats small { font-size: .5em; }
.semur__stats span { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.2; }
.semur__body { max-width: 520px; font-size: 18px; line-height: 1.65; opacity: .8; }

/* ---------- Témoignages ---------- */
.temoins { background: var(--papier); }
.temoins__cols { display: flex; align-items: center; gap: 135px; padding-left: calc(var(--pad) + 115px); padding-right: calc(var(--pad) + 115px); }
.temoins__media { position: relative; display: block; flex: none; width: 440px; aspect-ratio: 440 / 400; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: none; cursor: pointer; }
.temoins__play { color: var(--papier); transition: transform .4s var(--ease), color .4s var(--ease); }
.temoins__veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(78, 31, 21, .7), rgba(78, 31, 21, 0)); opacity: 0; transition: opacity .4s var(--ease); }
.temoins__label { position: absolute; z-index: 2; left: 0; right: 0; top: calc(50% + 58px); font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: .2em; text-align: center; text-transform: uppercase; color: #d2e1f2; text-shadow: 1px 3px 6px rgba(48, 19, 12, .6); opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
.temoins__media:hover .temoins__veil, .temoins__media:hover .temoins__label { opacity: 1; }
.temoins__media:hover .temoins__play { transform: translateY(-10px) scale(1.08); }
.temoins__media:hover .temoins__play:not(.temoins__play--shadow) { color: #d2e1f2; }
.temoins__media > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.temoins__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 71% 78% at 50% 50%, rgba(110, 44, 29, 0) 50%, rgba(48, 19, 12, .6) 100%); }
.temoins__play { position: absolute; z-index: 2; left: calc(50% - 50px); top: calc(50% - 50px); }
.temoins__play--shadow { left: calc(50% - 49px); top: calc(50% - 47px); }
.temoins__text { position: relative; flex: 1; }
.temoins__mark { position: absolute; left: -60px; top: 32px; pointer-events: none; }
.temoins__text .eyebrow { margin-bottom: 30px; }
.temoins__quotes { display: grid; }
.temoins__quote { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility .7s; }
.temoins__quote.is-on { opacity: 1; visibility: visible; }
.temoins__q { margin-bottom: 30px; font-family: var(--serif); font-size: clamp(32px, 2.75vw, 44px); line-height: 1.2; color: var(--encre); }
.temoins__q span { color: var(--terracotta); }
.temoins__who { font-size: 16px; font-weight: 600; line-height: 1; letter-spacing: .01em; }
.temoins__meta { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--encre-3); }
.temoins__dots { display: flex; gap: 10px; margin-top: 30px; }
.temoins__dots button { position: relative; width: 44px; height: 3px; padding: 0; border: 0; background: var(--bleu); opacity: .3; cursor: pointer; transition: background .4s var(--ease), opacity .4s var(--ease); }
/* Zone cliquable élargie : 15 px au-dessus et au-dessous, et jusqu'au tiret voisin */
.temoins__dots button::before { content: ""; position: absolute; inset: -15px -5px; }
.temoins__dots button.is-on { background: var(--terracotta); opacity: 1; cursor: default; }
.temoins__dots button:not(.is-on):hover { background: #5a88b0; opacity: 1; }

/* ---------- Contact ---------- */
.contact { background: var(--creme); overflow: hidden; }
.contact__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.contact::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 46% 74% at 8% 93%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)), linear-gradient(to left, rgba(244, 237, 227, .1) 0%, rgba(244, 237, 227, .3) 42.3%, rgba(240, 234, 234, .7) 59.4%, rgba(240, 234, 234, .9) 100%); }
.contact__cols { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; }
.contact__text { width: 668px; display: flex; flex-direction: column; gap: 24px; }
.contact__text .eyebrow { margin: 0; }
.contact__card { flex: none; width: 555px; max-width: 100%; }
.contact__inner { padding: 40px; display: flex; flex-direction: column; gap: 40px; }
.contact__block { display: flex; flex-direction: column; gap: 16px; }
.contact__block .btn { margin-top: 8px; }
.contact__sep { margin: 0; border: 0; height: 2px; border-radius: 999px; background: rgba(76, 113, 146, .3); }
.contact__phone { margin-top: 8px; font-size: clamp(44px, 3.75vw, 60px); font-weight: 700; line-height: 1; letter-spacing: .01em; color: var(--terracotta); text-decoration: none; white-space: nowrap; }

/* ---------- Footer ---------- */
.footer { background: var(--nuit); color: var(--papier); padding: 120px 0 40px; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(237, 174, 155, .3); }
/* Logo à la hauteur des deux lignes du slogan */
.footer__logo { width: auto; height: 90px; }
.footer__slogan { font-family: var(--serif); font-size: clamp(36px, 3.5vw, 56px); font-weight: 600; line-height: .98; letter-spacing: -.01em; text-align: right; }
.footer__cols { display: grid; grid-template-columns: minmax(0, 440px) auto auto; justify-content: space-between; gap: 80px; padding: 56px 0; border-bottom: 1px solid rgba(237, 174, 155, .3); }
.footer__col.footer__col--about p:not(.footer__title) { max-width: 440px; color: var(--blanc); }
.footer__nav { display: grid; grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: 80px; row-gap: 10px; }
.footer__col .footer__nav a { text-decoration: underline; text-decoration-color: rgba(251, 248, 243, .5); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .3s var(--ease); }
.footer__col .footer__nav a:hover { text-decoration-color: var(--papier); }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__col p, .footer__col a { max-width: 300px; font-size: 15px; line-height: 1.5; text-decoration: none; }
.footer__col a:hover { text-decoration: underline; }
.footer__title { margin-bottom: 8px; color: var(--rose); font-size: 12px !important; font-weight: 600; line-height: 1 !important; letter-spacing: .2em; text-transform: uppercase; }
.footer__col .footer__phone { font-family: var(--serif-num); font-size: 34px; font-weight: 600; line-height: 1.1; letter-spacing: .03em; white-space: nowrap; }
.footer__legal { display: flex; justify-content: space-between; gap: 24px; padding-top: 40px; font-size: 15px; line-height: 1.5; }

/* ---------- Fenêtre « Être rappelé » ---------- */
/* Tiroir « Contactez-nous » : voile repris de Doryn (thème clair, bleu ardoise 200 à 50 %, flou 8 px) */
.is-locked { overflow: hidden; }
.drawer-layer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.drawer-layer.is-open { pointer-events: auto; }
/* Le voile est un calque à part qui ne fait que changer d'opacité : animer le flou lui-même fait ramer. */
.drawer-layer::before, .lightbox::before { content: ""; position: absolute; inset: 0; background: rgba(166, 197, 229, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s var(--ease) .15s; }
.drawer-layer.is-open::before, .lightbox.is-open::before { opacity: 1; transition-delay: 0s; }
/* Lightbox vidéo : même voile, la vidéo arrive une fraction de seconde après */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 80px 40px; pointer-events: none; }
.lightbox.is-open { pointer-events: auto; }
.lightbox__box { position: relative; width: min(1120px, 100%, (100vh - 160px) * 16 / 9); opacity: 0; transform: scale(.96); transition: opacity .3s var(--ease), transform .4s var(--ease); }
.lightbox.is-open .lightbox__box { opacity: 1; transform: none; transition-delay: .15s; }
.lightbox__frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--nuit); box-shadow: 0 0 16px rgba(58, 88, 114, .2); }
.lightbox__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.lightbox__close { position: absolute; right: 0; bottom: calc(100% + 12px); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius); background: var(--papier); color: var(--encre); cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease); }
.lightbox__close:hover { background: var(--creme); color: var(--terracotta); }
.drawer { position: absolute; top: 0; bottom: 0; right: 0; display: flex; flex-direction: column; width: 600px; max-width: 100%; background: var(--papier); color: var(--encre); box-shadow: 0 0 16px rgba(58, 88, 114, .2); transform: translateX(calc(100% + 40px)); transition: transform .4s var(--ease); will-change: transform; }
.drawer-layer.is-open .drawer { transform: none; transition-delay: .15s; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 24px 24px 40px; border-bottom: 1px solid rgba(162, 67, 46, .15); }
.drawer__title { font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1.1; }
.drawer__close { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius); background: none; color: var(--encre); cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease); }
.drawer__close:hover { background: var(--creme); color: var(--terracotta); }
.drawer__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 32px 40px 40px; }
.drawer__lead { margin: 10px 0 24px; font-size: 16px; line-height: 1.5; color: var(--encre-2); }
.drawer__note { margin-top: 14px; font-size: 14px; color: var(--encre-3); }
.drawer__sep { margin: 32px 0; border: 0; border-top: 1px solid rgba(162, 67, 46, .15); }
.drawer__phone { display: inline-block; margin: 10px 0 8px; font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: .01em; color: var(--terracotta); text-decoration: none; white-space: nowrap; }
.drawer__info { font-size: 16px; line-height: 1.5; color: var(--encre-2); }
.choice { display: flex; gap: 8px; margin-bottom: 18px; }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-block; padding: 10px 18px; border: 1px solid rgba(76, 113, 146, .3); border-radius: var(--radius); font-size: 16px; }
.choice input:checked + span { background: var(--bleu-nuit); border-color: var(--bleu-nuit); color: var(--papier); }
.choice input:focus-visible + span { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.field { display: block; margin-bottom: 24px; }
.field__label { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--bleu); }
.field input, .field select { width: 100%; height: 54px; padding: 0 16px; border: 1px solid rgba(76, 113, 146, .3); border-radius: var(--radius); background: var(--blanc); font: inherit; font-weight: 500; color: var(--encre); }
.field select { -webkit-appearance: none; appearance: none; padding-right: 56px; background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M19.5 8.25l-7.5 7.5-7.5-7.5' stroke='%234c7192' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center / 20px 20px; cursor: pointer; }

/* ---------- Apparition au défilement ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
/* L'apparition ne doit pas écraser les transitions de survol des boutons et liens */
.btn[data-reveal], .link[data-reveal] { transition: opacity .9s var(--ease), transform .9s var(--ease), background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease), text-shadow .4s var(--ease), text-decoration-color .4s var(--ease); }

/* ==================================================================
   Responsive (le Figma est en 1600 px)
================================================================== */
@media (max-width: 1360px) {
  .header__inner { padding-left: 32px; padding-right: 32px; }
  .header__nav { gap: 28px; }
  .prix__cols, .temoins__cols { padding-left: var(--pad); padding-right: var(--pad); }
  .temoins__cols { gap: 80px; }
  .pourqui__text { padding-left: 0; }
}
@media (max-width: 1180px) {
  .header__nav { display: none; position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: center; justify-content: center; gap: 32px; padding: 0 20px; background: var(--nuit); }
  .header__nav a:not(.btn) { font-family: var(--serif); font-size: 36px; font-weight: 600; line-height: 1.1; letter-spacing: 0; text-transform: none; }
  .header.is-open .header__nav { display: flex; }
  .header__cta { display: none; }
  .header__cta-menu { display: inline-flex; align-self: stretch; margin-top: 16px; }
  .header__burger { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-right: -13px; padding: 0; border: 0; background: none; color: var(--blanc); cursor: pointer; }
  /* Menu ouvert depuis le header fixe : on repasse en couleurs claires sur le fond sombre du menu */
  .header.is-open .header__logo-light { display: block; }
  .header.is-open .header__logo-dark { display: none; }
  .header.is-open .header__burger { color: var(--blanc); }
  .header.is-open .header__nav a:not(.btn) { color: var(--blanc); }
  .header__nav a:not(.btn)::before, .header__nav a:not(.btn)::after { display: none; }
  .header.is-open .header__nav a:not(.btn):hover, .header.is-open .header__nav a[aria-current] { color: var(--peche); }
  .header.is-open .btn--glass { background: rgba(65, 42, 35, .15); border-color: var(--rose); color: var(--papier); }
  .header.is-open .btn--glass:hover { background: #e08a71; border-color: #e08a71; color: var(--papier); }
  /* Bouton d'appel fixe en bas à droite : ouvre le tiroir contact */
  .fab-call { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(to bottom left, rgba(120, 166, 212, .9), rgba(58, 88, 114, .9)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--papier); box-shadow: inset -1px 1px 2px rgba(238, 244, 252, .5), inset 1px -1px 2px rgba(29, 46, 62, .3), 0 10px 28px rgba(18, 30, 43, .1), 0 2px 6px rgba(18, 30, 43, .25); cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
  .is-scrolled .fab-call { opacity: 1; transform: none; pointer-events: auto; }
  .is-scrolled.is-menu-open .fab-call { opacity: 0; transform: translateY(12px); pointer-events: none; }
  .header__burger span:first-child, .header__burger span:first-child::before, .header__burger span:first-child::after { display: block; width: 28px; height: 2px; border-radius: 1px; background: currentColor; position: relative; transition: transform .3s, background .3s; }
  .header__burger span:first-child::before, .header__burger span:first-child::after { content: ""; position: absolute; left: 0; }
  .header__burger span:first-child::before { top: -8px; }
  .header__burger span:first-child::after { top: 8px; }
  .header.is-open .header__burger span:first-child { background: transparent; }
  .header.is-open .header__burger span:first-child::before { transform: translateY(8px) rotate(45deg); }
  .header.is-open .header__burger span:first-child::after { transform: translateY(-8px) rotate(-45deg); }

  .intro__cols { grid-template-columns: 1fr 1fr; gap: 56px; }
  .intro__text { grid-column: 2; }
  .pourqui__cols, .piliers__head, .apts__cols, .contact__cols { flex-direction: column; align-items: flex-start; }
  .pourqui__text, .piliers__head .lead, .apts__list, .contact__text { width: 100%; max-width: 680px; }
  .pourqui__cards { width: 100%; }
  .pourqui__card { flex: 1; width: auto; }
  .piliers__head { gap: 24px; }
  .apts__cols { align-items: center; }
  .apts__list { max-width: 680px; }
  .prix__cols { flex-direction: column; align-items: flex-start; }
  .prix__text { width: 100%; max-width: 680px; }
  .montbard__frame { min-height: 0; display: block; }
  .montbard__frame::after { background: linear-gradient(180deg, rgba(35, 33, 34, .15) 0%, rgba(35, 33, 34, .6) 40%, rgba(35, 33, 34, .95) 70%); }
  .montbard__wrap { padding-top: 420px; padding-bottom: 64px; }
  .montbard__card { top: 24px; bottom: auto; left: 24px; }
  .montbard__dots { top: 380px; left: 24px; }
    .semur { flex-direction: column; align-items: stretch; padding-top: 6px; }
  .semur__imgs { position: relative; left: auto; top: auto; bottom: auto; width: auto; max-width: none; margin: 0 6px 64px; height: clamp(420px, 68vw, 680px); }
  .semur__wrap { grid-template-columns: 1fr; }
  .semur__text { grid-column: 1; padding-left: 0; }
  .temoins__cols { flex-direction: column; align-items: flex-start; gap: 56px; }
  .temoins__mark { left: -20px; top: 20px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .header__inner { padding: 20px; }
  .header.is-solid .header__inner { padding: 10px 20px; }
  .header__logo img { width: 190px; }
  .header__burger { margin-right: -5px; }
  /* Sur téléphone, les boutons prennent toute la largeur du contenu */
  main .btn { width: 100%; }
  .hero__btns { align-self: stretch; }
  .hero__content { padding-top: 100px; padding-bottom: 90px; }
  .hero::after { background: radial-gradient(ellipse 62% 66% at 50% 50%, rgba(94, 75, 81, .65), rgba(94, 75, 81, 0)), linear-gradient(180deg, rgba(41, 25, 19, .86) 7.69%, rgba(94, 75, 81, .55) 34.6%, rgba(41, 25, 19, .55) 100%); }
  .hero__eyebrow { font-size: 12px; line-height: 1.8; text-align: center; }
  .hero__eyebrow-dot { display: none; }
  .hero__eyebrow-br { display: inline; }
  .hero__eyebrow::before, .hero__eyebrow::after { width: 20px; }
  .hero--page .hero__content { padding-bottom: 150px; }
  .hero__card { left: 20px; right: 20px; bottom: 64px; padding: 12px 16px; }
  .hero__card .montbard__cap { gap: 4px; }
  .hero__card .montbard__cap-title { font-size: 22px; }
  .hero__card .montbard__credit { font-size: 11px; }
  .hero--page .hero__dots { bottom: 24px; }
  .pnav { grid-template-columns: 1fr 1fr; }
  .pnav a { height: 64px; gap: 10px; padding: 12px; font-size: 15px; text-align: center; }
  .pnav a:nth-child(2n) { border-right: 0; }
  #venir, #soins, #loisirs, #quotidien, #compris, #comparer, #options, #aides, #batiment, #appartement, #loyer, #salle-commune, #change, #visite, #solution, #parler { scroll-margin-top: 70px; }
  .intro__cols { grid-template-columns: 1fr; }
  .intro__text { grid-column: 1; }
  .intro__trajet { left: 12px; top: 12px; right: 12px; width: auto; padding: 14px 16px; gap: 10px; }
  .intro__trajet-row { font-size: 10px; letter-spacing: .12em; }
  .intro__trajet-time { font-size: 14px; }
  .intro__trajet-time b { font-size: 36px; }
  .pourqui__cards { flex-direction: column; gap: 20px; }
  .piliers__cols { grid-template-columns: 1fr; gap: 48px; }
  .pilier:nth-child(n) { padding-top: 0; }
  /* Montbard sur téléphone : photo en haut, puis fond plein pour le texte */
  .montbard { padding: 12px; }
  .montbard__frame { --mb-h: 72vw; background: var(--nuit); }
  .montbard__img { bottom: auto; height: var(--mb-h); }
  .montbard__frame::after { bottom: auto; height: var(--mb-h); background: linear-gradient(180deg, rgba(35, 33, 34, 0) 45%, var(--nuit) 100%); }
  .montbard__wrap { padding-top: calc(var(--mb-h) + 48px); padding-bottom: 48px; }
  .montbard__dots { top: 16px; left: 16px; }
  .montbard__card { top: calc(var(--mb-h) - 16px); bottom: auto; left: 16px; right: 16px; padding: 0; transform: translateY(-100%); background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .montbard__cap { gap: 4px; }
  .montbard__cap-title { font-size: 22px; }
  .montbard__credit { font-size: 11px; opacity: .8; }
    .montbard__points { grid-template-columns: 1fr; }
  .montbard__points > div:nth-child(n) { padding-bottom: 20px; }
  .vie__head { flex-direction: column; align-items: flex-start; }
  .title-card { font-size: 30px; }
  .apts__btn { flex-direction: column; gap: 6px; }
  .apts__item.is-on .apts__btn, .apts__desc { padding-left: 0; }
  /* Prix sur téléphone : photo calée à gauche, voile du haut vers le bas, ticket compact et plus large */
  .prix__bg { object-position: left center; }
  .prix::after { background: linear-gradient(180deg, rgba(240, 234, 234, .94) 0%, rgba(240, 234, 234, .88) 40%, rgba(244, 237, 227, .6) 75%, rgba(244, 237, 227, .4) 100%); }
  .prix__ticket { width: calc(100% + 2 * (var(--pad) - 10px)); max-width: none; margin: 0 calc(10px - var(--pad)); gap: 8px; padding: 6px; }
  .prix__ticket-inner { padding: 16px 14px 0; gap: 12px; }
  .prix__head { padding-bottom: 10px; margin-bottom: 4px; font-size: 11px; letter-spacing: .14em; }
  .prix__list li { height: auto; padding: 7px 0; gap: 10px; }
  .prix__list li span { font-size: 15px; line-height: 1.3; white-space: nowrap; }
  .prix__list li b { font-size: 11px; letter-spacing: .14em; }
  .prix__total .label-blue--lg { font-size: 13px; }
  .prix__total b { font-size: 34px; }
  .prix__note { min-height: 36px; font-size: 14px; line-height: 1.4; padding: 8px 12px; }
  .semur__stats b { font-size: 48px; }
  .semur__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .semur__stats span { font-size: 18px; }
  .prix__total b { white-space: nowrap; }
  .hero__title { font-size: 40px; }
  .temoins__media { width: 100%; }
  .temoins__mark { display: none; }
  .contact::after { background: linear-gradient(180deg, rgba(240, 234, 234, .94) 0%, rgba(240, 234, 234, .88) 40%, rgba(244, 237, 227, .6) 75%, rgba(244, 237, 227, .4) 100%); }
  .contact__card { width: calc(100% + 20px); max-width: none; margin: 0 -10px; }
  .contact__inner { padding: 20px 16px; gap: 20px; }
  .contact__block { gap: 10px; }
  .contact__sep { margin: 8px 0; }
  .contact__block .btn { margin-top: 4px; }
  .contact__block .label-blue--lg { font-size: 13px; white-space: nowrap; }
  .contact__block .lead { font-size: 16px; line-height: 1.5; }
  .contact__phone { margin-top: 2px; font-size: 40px; }
  .footer { padding-top: 80px; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__slogan { text-align: left; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .apts__card, .montbard__img, .temoins__quote, .hero__img { transition: none; }
  .hero__img.is-on { transform: none; }
  .intro__trajet-line i { animation: none; display: none; }
  .hero__dots button.is-on::after,   .montbard__cap.is-on { animation: none; }
}

/* ==================================================================
   Pages intérieures
================================================================== */

/* ---------- En-tête de page (plus court que le hero d'accueil, texte en bas à gauche) ---------- */
.phero { position: relative; display: flex; align-items: flex-end; min-height: max(560px, 78vh); min-height: max(560px, 78svh); border-top: var(--topbar-h) solid var(--bleu-600); background: var(--nuit); color: var(--blanc); overflow: hidden; }
.phero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.phero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(41, 25, 19, .75) 0%, rgba(41, 25, 19, .1) 28%, rgba(35, 33, 34, .5) 65%, rgba(35, 33, 34, .9) 100%), linear-gradient(90deg, rgba(35, 33, 34, .6) 0%, rgba(35, 33, 34, 0) 65%); }
.phero__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 160px; padding-bottom: clamp(56px, 6vw, 96px); }
.phero__content .eyebrow { margin: 0; }
.phero__crumbs { display: flex; gap: 10px; font-size: 14px; font-weight: 500; letter-spacing: .04em; color: rgba(251, 248, 243, .8); }
.phero__crumbs a { text-decoration: underline; text-decoration-color: rgba(251, 248, 243, .5); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .4s var(--ease); }
.phero__crumbs a:hover { color: var(--rose); }
.phero__title { max-width: 900px; font-family: var(--serif); font-size: clamp(48px, 5.25vw, 84px); font-weight: 600; line-height: 1.02; letter-spacing: -.01em; text-shadow: var(--text-shadow); }
.phero__lead { max-width: 620px; font-size: clamp(18px, 1.3125vw, 21px); font-weight: 500; line-height: 1.65; color: var(--papier); text-shadow: 1px 1px 3px rgba(0, 0, 0, .35); }

/* ---------- Fiche (liste de faits, libellé à gauche) ---------- */

/* ---------- Résidence · le bâtiment ---------- */
.rbat__cols { display: grid; grid-template-columns: 668fr 136fr 556fr; align-items: center; }
.rbat__media { grid-column: 1; position: relative; aspect-ratio: 668 / 760; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-panel); }
.rbat__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.rbat__badge { position: absolute; left: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; font-size: 16px; line-height: 1.4; }
.rbat__badge-num { font-size: 54px; font-weight: 600; line-height: 1; letter-spacing: .03em; }
.rbat__text { grid-column: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.rbat__text .eyebrow { margin: 0; }

/* ---------- Résidence · l'appartement ---------- */
.rapt { background: var(--creme); }
.rapt__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 80px; margin-bottom: 64px; }
.rapt__head .lead { max-width: 440px; }
.rapt__rooms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.rapt__plus { display: flex; align-items: baseline; gap: 48px; margin-top: 72px; padding-top: 28px; border-top: 1px solid rgba(162, 67, 46, .3); }
.rapt__plus .label-blue { flex: none; }
.rapt__plus ul { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.rapt__plus li { position: relative; padding-left: 22px; font-size: 18px; line-height: 1.5; color: var(--encre); }
.rapt__plus li::before { content: ""; position: absolute; left: 0; top: .75em; width: 12px; height: 1px; background: var(--terracotta); }

/* ---------- Résidence · inclus et options (reprend le bloc prix, ticket à gauche) ---------- */

/* ---------- Résidence · salle commune (reprend le bloc Montbard) ---------- */
.rcom .montbard__frame { min-height: 760px; }

/* ---------- Résidence · les personnes ---------- */
.requipe__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.person { display: flex; flex-direction: column; gap: 10px; }
.person__img { aspect-ratio: 4 / 5; margin-bottom: 14px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-panel); }
.person__img img { width: 100%; height: 100%; object-fit: cover; }
.person .label-blue { font-size: 13px; }

@media (max-width: 1180px) {
  .rbat__cols { grid-template-columns: 1fr; gap: 56px; }
  .rbat__media, .rbat__text { grid-column: 1; }
  .rbat__media { aspect-ratio: 4 / 3; }
  .rapt__head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .rapt__rooms { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .rapt__plus { flex-direction: column; gap: 16px; }
  .requipe__cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .phero { min-height: max(520px, 82svh); }
  .phero__content { padding-top: 120px; padding-bottom: 48px; gap: 16px; }
  .phero__title { font-size: 44px; }
  .phero__lead { font-size: 17px; }
  .phero::after { background: linear-gradient(180deg, rgba(41, 25, 19, .8) 0%, rgba(41, 25, 19, .25) 30%, rgba(41, 25, 19, .45) 55%, rgba(35, 33, 34, .92) 100%); }
  .rbat__media { aspect-ratio: 4 / 5; }
  .rbat__badge { left: 12px; bottom: 12px; padding: 14px 16px; font-size: 14px; }
  .rbat__badge-num { font-size: 40px; }
  .rapt__head { margin-bottom: 40px; }
  .rapt__rooms { grid-template-columns: 1fr; gap: 40px; }
  .rapt__plus { margin-top: 48px; }
  .rapt__plus ul { flex-direction: column; gap: 10px; }
  .rapt__plus li { font-size: 17px; }
  .rcom .montbard__frame { min-height: 0; }
  .requipe__cards { grid-template-columns: 1fr; gap: 40px; }
  .person__img { aspect-ratio: 4 / 3; }
}

/* ---------- Tarifs · le loyer ---------- */

/* ---------- Tarifs · comparateur (fond sombre) ---------- */
.tcomp { background: radial-gradient(ellipse 74% 90% at 97% 7%, #4e1f15 0%, #39201c 50%, var(--nuit) 100%); color: var(--papier); }
.tcomp__chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }
.chip { height: 48px; padding: 0 22px; border: 1px solid rgba(237, 174, 155, .5); border-radius: 999px; background: rgba(65, 42, 35, .15); color: var(--papier); font-size: 16px; font-weight: 500; cursor: pointer; transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease); }
.chip:not(.is-on):hover { border-color: var(--rose); background: rgba(237, 174, 155, .15); }
.chip.is-on { background: var(--rose); border-color: var(--rose); color: var(--nuit); cursor: default; }
.tcomp__bars { display: flex; flex-direction: column; gap: 28px; }
.tbar { display: grid; grid-template-columns: 300px 1fr 140px; align-items: center; gap: 32px; }
.tbar__label { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.2; }
.tbar__track { height: 14px; border-radius: 999px; background: rgba(251, 248, 243, .08); overflow: hidden; }
.tbar__fill { display: block; width: 0; height: 100%; border-radius: 999px; background: rgba(251, 248, 243, .35); transition: width .8s var(--ease); }
.tbar--us .tbar__fill { background: linear-gradient(to right, #e08a71, var(--rose)); }
.tbar__val { font-size: 34px; font-weight: 600; line-height: 1; text-align: right; white-space: nowrap; }
.tbar--us .tbar__val { color: var(--rose); }
.tcomp__diff { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(237, 174, 155, .3); }
.tcomp__diff .label-blue { color: var(--rose-clair); }
.tcomp__diff-num { font-size: clamp(56px, 5vw, 80px); font-weight: 600; line-height: 1; color: var(--rose); white-space: nowrap; }
.tcomp__source { margin-top: 24px; max-width: 720px; font-size: 14px; line-height: 1.6; opacity: .7; }

/* ---------- Tarifs · options et aides ---------- */

@media (max-width: 1180px) {
  .tbar { grid-template-columns: 1fr auto; gap: 10px 20px; }
  .tbar__label { grid-column: 1; font-size: 20px; }
  .tbar__val { grid-column: 2; grid-row: 1; font-size: 28px; }
  .tbar__track { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .tcomp__chips { gap: 8px; margin-bottom: 40px; }
  .chip { height: 44px; padding: 0 16px; font-size: 14px; }
  .tcomp__diff { flex-direction: column; gap: 8px; margin-top: 40px; }
  .tcomp__diff-num { font-size: 52px; }
}

/* ---------- Liste à coches (réutilisable) ---------- */
.ticks { display: flex; flex-direction: column; }
.ticks li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid rgba(162, 67, 46, .2); font-size: 17px; line-height: 1.5; color: var(--encre); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 7px; border-left: 1.5px solid var(--terracotta); border-bottom: 1.5px solid var(--terracotta); transform: rotate(-45deg); }

/* ---------- Pour un parent · pour lui, pour vous ---------- */
.pduo__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.pduo__card { display: grid; grid-template-columns: 220px 1fr; border-radius: var(--radius); overflow: hidden; background: var(--blanc); box-shadow: var(--shadow-panel); }
.pduo__img img { width: 100%; height: 100%; object-fit: cover; }
.pduo__body { display: flex; flex-direction: column; gap: 8px; padding: 32px 32px 24px; }

/* ---------- Pour un parent · venir le voir ---------- */

/* ---------- Pour un parent · est-ce la bonne solution ---------- */
.pfit__table { border-radius: var(--radius); overflow: hidden; background: var(--blanc); box-shadow: var(--shadow-panel); }
.pfit__row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; align-items: center; gap: 24px; padding: 20px 32px; border-bottom: 1px solid rgba(162, 67, 46, .15); font-size: 17px; line-height: 1.45; }
.pfit__row:last-child { border-bottom: 0; }
.pfit__row p:first-child { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.25; }
.pfit__row p:nth-child(2) { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.pfit__row--head { background: var(--bleu-nuit); color: var(--papier); padding-top: 16px; padding-bottom: 16px; }
.pfit__row--head p, .pfit__row--head p:first-child { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.pfit__muted { color: var(--encre-3); }
.pfit__mark { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 50%; }
.pfit__mark--yes { background: rgba(120, 166, 212, .2); color: var(--bleu-fonce); }
.pfit__mark--no { background: rgba(162, 67, 46, .12); color: var(--terracotta); }

/* ---------- Pour un parent · en parler ---------- */

/* ---------- Accordéon (réutilisable) ---------- */
.pfaq__cols { display: grid; grid-template-columns: 440px 1fr; gap: 80px; align-items: start; }
.pfaq__head { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.pfaq__head .eyebrow { margin: 0; }
.acc { border-top: 1px solid rgba(162, 67, 46, .3); }
.acc__item { border-bottom: 1px solid rgba(162, 67, 46, .3); transition: background .4s var(--ease); }
.acc__item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.25; list-style: none; cursor: pointer; transition: color .4s var(--ease), padding .4s var(--ease); }
.acc__item summary::-webkit-details-marker { display: none; }
.acc__item summary .icon { flex: none; color: var(--terracotta); transition: opacity .3s var(--ease); }
.acc__item:not([open]):hover { background: rgba(120, 166, 212, .1); }
.acc__item:not([open]):hover summary { padding-left: 14px; padding-right: 14px; color: var(--terracotta); }
.acc__item[open] summary { color: var(--terracotta); cursor: default; }
.acc__item[open] summary .icon { opacity: 0; } /* la question ouverte ne se referme pas : pas de croix */
.acc__item p { max-width: 720px; padding: 0 0 28px; font-size: 18px; line-height: 1.65; color: var(--encre-2); }

@media (max-width: 1180px) {
  .pduo__cols { grid-template-columns: 1fr; }
  .pfaq__cols { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .pduo__card { grid-template-columns: 1fr; }
  .pduo__img { aspect-ratio: 4 / 3; }
  .pduo__body { padding: 24px 20px 16px; }
  .pfit__table { margin: 0 calc(10px - var(--pad)); }
  .pfit__row { grid-template-columns: 1fr 1fr; gap: 8px 16px; padding: 16px; font-size: 15px; }
  .pfit__row p:first-child { grid-column: 1 / -1; font-size: 20px; }
  .pfit__row--head p:first-child { display: none; }
  .acc__item summary { font-size: 21px; padding: 18px 0; }
  .acc__item p { font-size: 16px; }
}

/* ---------- Crédit photo de l'en-tête (en bas à droite) ---------- */
.phero__credit { position: absolute; z-index: 1; right: 20px; bottom: 20px; font-size: 12px; font-weight: 500; letter-spacing: .02em; color: rgba(251, 248, 243, .7); }
.phero__credit a, .walk__credit a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 50%, transparent); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .4s var(--ease); }
.phero__credit a:hover, .walk__credit a:hover { color: var(--rose); }

/* ---------- Montbard · chiffres ---------- */
/* Navigation de page (sous le héros) */
.pnav { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--papier); }
.pnav a { display: flex; align-items: center; justify-content: center; gap: 20px; height: 80px; padding: 20px 24px; border-bottom: 1px solid rgba(172, 72, 48, .3); border-right: 1px solid rgba(172, 72, 48, .3); font-family: var(--serif-text); font-size: 18px; font-weight: 600; line-height: 1.2; letter-spacing: 1px; text-transform: uppercase; color: #3a5872; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: background .4s var(--ease), color .4s var(--ease), text-decoration-color .4s var(--ease); }
.pnav a:last-child { border-right: 0; }
/* Survol réservé aux appareils avec souris : sur iPhone, un :hover sur le lien imposait deux touchers */
@media (hover: hover) { .pnav a:hover { background: var(--creme); color: #a2432e; text-decoration-color: rgba(58, 88, 114, .3); } }
.pnav a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.pnav a:active { background: var(--creme); }
.pnav .icon { flex: none; color: #3a5872; opacity: .6; }
#venir, #soins, #loisirs, #quotidien, #compris, #comparer, #options, #aides, #batiment, #appartement, #loyer, #salle-commune, #change, #visite, #solution, #parler { scroll-margin-top: 87px; }
.mstats { background: var(--creme); border-bottom: 1px solid rgba(162, 67, 46, .2); }
.mstats__row { display: grid; grid-template-columns: repeat(4, 1fr); }
.mstats__row > div { display: flex; flex-direction: column; gap: 8px; padding: 44px 32px; border-left: 1px solid rgba(162, 67, 46, .2); }
.mstats__row > div:first-child { border-left: 0; padding-left: 0; }
.mstats b { font-size: clamp(48px, 4.4vw, 70px); font-weight: 600; line-height: 1; letter-spacing: .02em; color: var(--terracotta); white-space: nowrap; }
.mstats span { font-size: 16px; line-height: 1.45; color: var(--encre-2); }

/* ---------- Montbard · venir, soins, promenades, à pied ---------- */
.mwalk { padding: 126px 0; background: var(--papier); }
.mwalk__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 80px; padding: 0 115px 50px; }
.mwalk__head .eyebrow { margin-bottom: 16px; }
.mwalk__head .lead { max-width: 440px; }
.mwalk__title { font-family: var(--serif); font-size: 54px; font-weight: 600; line-height: 1.04; letter-spacing: -.005em; color: var(--encre); }
.mwalk__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.walk { position: relative; aspect-ratio: 432 / 483; border-radius: var(--radius); overflow: hidden; color: var(--papier); box-shadow: var(--shadow-panel); }
.walk > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.walk > img.walk__img--left { object-position: left center; }
.walk::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(180deg, rgba(41, 25, 19, 0), rgba(41, 25, 19, .9) 85%); }
/* Cartes avec crédit photo : le texte monte plus haut, le dégradé aussi */
.walk:has(.walk__credit)::after { height: 85%; background: linear-gradient(180deg, rgba(41, 25, 19, 0), rgba(41, 25, 19, .55) 35%, rgba(41, 25, 19, .92) 75%); }
.walk__text { position: absolute; z-index: 1; left: 28px; right: 28px; bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.walk__text .eyebrow { margin: 0; font-size: 12px; }
.walk__title { font-family: var(--serif); font-size: 36px; font-weight: 600; line-height: 1.05; text-shadow: var(--text-shadow); }
.walk__text p { font-size: 16px; line-height: 1.5; }
.walk__credit { font-size: 11px !important; opacity: .7; }
.mpied__media { aspect-ratio: 668 / 640; }

@media (max-width: 1180px) {
  .mstats__row { grid-template-columns: 1fr 1fr; }
  .mstats__row > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .mstats__row > div:nth-child(n+3) { border-top: 1px solid rgba(162, 67, 46, .2); }
  .mwalk__cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .phero__credit { right: 12px; bottom: 12px; left: 12px; font-size: 11px; text-align: right; }
  .mstats__row > div { padding: 28px 0 28px 16px; }
  .mstats__row > div:nth-child(odd) { padding-left: 0; }
  .mstats b { font-size: 40px; }
  .mstats span { font-size: 14px; }
  .mwalk__cards { grid-template-columns: 1fr; gap: 24px; }
  .walk__title { font-size: 30px; }
  .walk__text { left: 20px; right: 20px; bottom: 20px; }
}

/* ---------- Questions ---------- */
.phero--short { min-height: max(460px, 56vh); min-height: max(460px, 56svh); }
.fq__cols { display: grid; grid-template-columns: 340px 1fr; gap: 100px; align-items: start; }
.fq__side { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 48px; }
.fq__nav { display: flex; flex-direction: column; gap: 4px; }
.fq__nav a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--encre-2); transition: color .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease); }
.fq__nav a .icon { flex: none; opacity: .3; }
.fq__nav a:hover { color: var(--terracotta); }
.fq__nav a.is-on { background: var(--blanc); box-shadow: 0 8px 24px -12px rgba(78, 31, 21, .35); color: var(--terracotta); }
.fq__help { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; border-radius: var(--radius); background: var(--creme); }
.fq__help .btn { margin-top: 8px; }
.fq__phone { margin-top: 4px; font-size: 32px; font-weight: 700; line-height: 1; color: var(--terracotta); text-decoration: none; white-space: nowrap; }
.fq__groups { display: flex; flex-direction: column; gap: 72px; }
.fq__group { scroll-margin-top: 120px; }
.fq__group .title-sm { margin-bottom: 20px; }
.fq__group .acc__item p a { color: var(--bleu-fonce); text-decoration: underline; text-decoration-color: rgba(76, 113, 146, .3); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .4s var(--ease), text-decoration-color .4s var(--ease); }
.fq__group .acc__item p a:hover { color: var(--terracotta); text-decoration-color: rgba(162, 67, 46, .3); }

@media (max-width: 1180px) {
  .fq__cols { grid-template-columns: 1fr; gap: 48px; }
  .fq__side { position: static; }
  .fq__nav { flex-direction: row; flex-wrap: wrap; gap: 8px; border: 0; }
  .fq__nav a { padding: 10px 18px; border: 1px solid rgba(162, 67, 46, .4); border-radius: 999px; font-family: var(--sans); font-size: 15px; font-weight: 500; }
  .fq__nav a:hover { padding-left: 18px; background: rgba(120, 166, 212, .1); }
  .fq__help { order: 2; }
  .fq__groups { order: 1; }
  .fq__side { display: contents; }
}
@media (max-width: 760px) {
  .phero--short { min-height: max(400px, 50svh); }
  .fq__groups { gap: 48px; }
  .fq__help { padding: 22px 18px; }
}

/* ---------- Contenu à confirmer (provisoire, visible exprès) ---------- */
.tbc { display: inline-block; margin: 0 2px; padding: 1px 8px; border-radius: 999px; background: rgba(237, 174, 155, .35); color: var(--terracotta); font-family: var(--sans); font-size: 12px; font-weight: 600; font-style: normal; line-height: 1.6; letter-spacing: .04em; vertical-align: middle; white-space: nowrap; }
.tcomp .tbc, .montbard .tbc, .tcomp .tbc, .walk .tbc, .phero .tbc { background: rgba(237, 174, 155, .25); color: var(--rose-clair); }

/* Montbard · Venir depuis Paris : photo pleine largeur, voile clair vers la droite */
.mvenir { position: relative; isolation: isolate; overflow: hidden; padding: 140px 0; background: var(--creme); }
.mvenir__img { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.mvenir::before { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(240, 234, 234, .9) 0%, rgba(240, 234, 234, .7) 50.88%, rgba(244, 237, 227, .3) 70.93%, rgba(244, 237, 227, .1) 100%); }
.mvenir::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle 940px at 13.6% 27%, rgba(255, 255, 255, 0), rgba(255, 255, 255, .9)); mix-blend-mode: overlay; opacity: .7; pointer-events: none; }
.mvenir__wrap { position: relative; z-index: 1; display: flex; justify-content: flex-end; }
.mvenir__text { width: 438px; max-width: 100%; margin-right: 115px; display: flex; flex-direction: column; gap: 24px; }
.mvenir__text .eyebrow { margin: 0; }
.mvenir__title { font-family: var(--serif); font-size: 54px; font-weight: 600; line-height: 1.04; letter-spacing: -.005em; color: var(--encre); }
.mvenir__list > div { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-bottom: 1px solid rgba(162, 67, 46, .3); }
.mvenir__list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.mvenir__list h3 { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.2; color: var(--encre); }
.mvenir__list p { font-size: 18px; line-height: 1.65; color: var(--encre-2); }
@media (max-width: 1180px) {
  .mvenir__text { margin-right: 0; }
}
@media (max-width: 760px) {
  .mvenir { padding: 0 0 56px; }
  .mvenir__img { position: relative; height: 62vw; object-position: 20% center; }
  .mvenir::before { top: 30vw; background: linear-gradient(180deg, rgba(244, 237, 227, 0) 0, var(--creme) 32vw, var(--creme) 100%); }
  .mvenir::after { display: none; }
  .mvenir__wrap { margin-top: -8vw; }
  .mvenir__title { font-size: 38px; }
  .mvenir__list h3 { font-size: 24px; }
  .mvenir__list p { font-size: 17px; }
}

/* Montbard · Se soigner : fond bleu nuit, quatre cartes photo décalées */
.msoin { padding: 126px 0; background: radial-gradient(ellipse 1184px 768px at 97% 7%, #3a5872 0%, #2b4457 50%, #1f3141 75%, #121e2b 100%); color: var(--papier); }
.msoin__title { font-family: var(--serif); font-size: 54px; font-weight: 600; line-height: 1.04; letter-spacing: -.005em; color: var(--papier); }
.msoin__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; align-items: start; padding-top: 60px; }
.msoin__card { border-bottom: 1px solid rgba(237, 174, 155, .8); }
.msoin__card img { display: block; width: 100%; aspect-ratio: 310 / 200; object-fit: cover; border-radius: 8px; }
.msoin__card--tall img { aspect-ratio: 310 / 280; }
.msoin__txt { display: flex; flex-direction: column; gap: 8px; padding: 20px 16px 24px; }
.msoin__txt h3 { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.25; }
.msoin__txt p { font-size: 18px; line-height: 1.46; letter-spacing: .01em; opacity: .8; }
@media (max-width: 1180px) {
  .msoin__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .msoin { padding: 72px 0; }
  .msoin__title { font-size: 38px; }
  .msoin__grid { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; }
  .msoin__card img, .msoin__card--tall img { aspect-ratio: 310 / 200; }
  .msoin__txt h3 { font-size: 24px; }
  .msoin__txt p { font-size: 17px; }
}

/* Montbard · côté loisirs : quatre points séparés par des filets verticaux */
.mdo { display: flex; flex-direction: column; align-items: center; gap: 40px; padding-top: 80px; }
.mdo__title { font-family: var(--serif); font-size: 54px; font-weight: 600; line-height: 1.04; letter-spacing: -.005em; color: var(--encre); text-align: center; }
.mdo__list { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; margin: 0; padding: 0; list-style: none; }
.mdo__list li { display: flex; flex-direction: column; gap: 10px; padding: 0 40px; border-left: 1px solid rgba(172, 72, 48, .6); }
.mdo__list li:first-child { border-left: 0; }
.mdo__list h4 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.2; color: #3a5872; }
.mdo__list p { font-size: 18px; line-height: 1.65; color: var(--encre-2); }
@media (max-width: 1180px) {
  .mwalk__head { padding: 0 0 40px; }
  .mdo__list { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .mdo__list li:nth-child(3) { border-left: 0; }
}
@media (max-width: 760px) {
  .mwalk { padding: 72px 0; }
  .mwalk__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .mwalk__title, .mdo__title { font-size: 38px; }
  .mdo { align-items: flex-start; padding-top: 56px; gap: 28px; }
  .mdo__title { text-align: left; }
  .mdo__list { grid-template-columns: 1fr; row-gap: 24px; }
  .mdo__list li { padding: 20px 0 0; border-left: 0; border-top: 1px solid rgba(172, 72, 48, .4); }
  .mdo__list h4 { font-size: 24px; }
}

/* ==================================================================
   MONTBARD · Le quotidien à pied (frise des temps de marche)
   ================================================================== */
.mcoeur { position: relative; isolation: isolate; padding: 126px 0; background: var(--creme); overflow: hidden; }
.mcoeur__bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; }
.mcoeur__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 80px; padding: 0 115px 60px; }
.mcoeur__head .eyebrow { margin-bottom: 16px; }
.mcoeur__title { font-family: var(--serif); font-size: 54px; font-weight: 600; line-height: 1.04; letter-spacing: -.005em; color: var(--encre); }
.mcoeur__head .lead { max-width: 440px; }
.mcoeur__panel { position: relative; padding: 72px 80px 80px; border-radius: var(--radius); background: rgba(251, 248, 243, .82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow-panel); }

/* La ligne du trajet */
.mcoeur__track { position: relative; height: 1px; margin: 0 6px; }
.mcoeur__line { position: absolute; inset: 0; background: rgba(162, 67, 46, .35); transform: scaleX(0); transform-origin: left center; transition: transform 2.6s var(--ease) .3s; }
.mcoeur__walker { position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); opacity: 0; }
.mcoeur__panel.is-in .mcoeur__line { transform: scaleX(1); }
.mcoeur__panel.is-in .mcoeur__walker { animation: mcoeurWalk 8s var(--ease) 3.2s infinite; }
@keyframes mcoeurWalk { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 7px); opacity: 0; } }

/* Les étapes */
.mcoeur__stops { display: grid; grid-template-columns: .7fr repeat(4, 1fr); gap: 40px; margin: -7px 0 0; padding: 0; list-style: none; }
.mcoeur__stop { display: flex; flex-direction: column; align-items: flex-start; }
.mcoeur__dot { position: relative; z-index: 1; width: 13px; height: 13px; box-sizing: border-box; margin-bottom: 40px; border: 2px solid var(--terracotta); border-radius: 50%; background: var(--papier); transform: scale(0); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.mcoeur__stop--home .mcoeur__dot { width: 13px; height: 13px; background: var(--terracotta); box-shadow: 0 0 0 6px rgba(162, 67, 46, .15); }
.mcoeur__from { font-size: 13px; font-weight: 600; line-height: 1.5; letter-spacing: .15em; text-transform: uppercase; color: var(--terracotta); }
.mcoeur__time { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; margin-bottom: 6px; font-size: 14px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--encre-2); }
.mcoeur__time .num { font-size: 64px; font-weight: 600; line-height: .9; letter-spacing: 0; color: var(--terracotta); }
.mcoeur__stop:not(.mcoeur__stop--home) .mcoeur__time { margin-top: -16px; }
.mcoeur__pre { flex-basis: 100%; margin-bottom: 4px; font-size: 12px; }
.mcoeur__list { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.mcoeur__stop--wide .mcoeur__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.mcoeur__list li { display: flex; flex-direction: column; gap: 2px; padding-top: 16px; border-top: 1px solid rgba(172, 72, 48, .2); }
.mcoeur__max { margin-bottom: 28px; font-size: 13px; letter-spacing: .04em; color: var(--encre-2); opacity: .75; }
.mcoeur__place { font-family: var(--serif-text); font-size: 19px; font-weight: 600; line-height: 1.25; color: var(--encre); }
.mcoeur__dist { font-size: 14px; line-height: 1.4; color: var(--encre-2); opacity: .8; }
.mcoeur__from, .mcoeur__time, .mcoeur__max, .mcoeur__list { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* Apparition en cascade, de gauche à droite */
.mcoeur__panel.is-in .mcoeur__dot { transform: scale(1); }
.mcoeur__panel.is-in .mcoeur__from, .mcoeur__panel.is-in .mcoeur__time, .mcoeur__panel.is-in .mcoeur__max, .mcoeur__panel.is-in .mcoeur__list { opacity: 1; transform: none; }
.mcoeur__stop:nth-child(1) > * { transition-delay: .3s; }
.mcoeur__stop:nth-child(2) > * { transition-delay: .6s; }
.mcoeur__stop:nth-child(3) > * { transition-delay: .9s; }
.mcoeur__stop:nth-child(4) > * { transition-delay: 1.2s; }
.mcoeur__stop:nth-child(5) > * { transition-delay: 1.5s; }
.mcoeur__stop:nth-child(6) > * { transition-delay: 1.8s; }
.mcoeur__stop:nth-child(7) > * { transition-delay: 2.1s; }
.mcoeur__stop:nth-child(8) > * { transition-delay: 2.4s; }
.mcoeur__stop:nth-child(9) > * { transition-delay: 2.7s; }

@media (max-width: 1180px) {
  .mcoeur { padding: 96px 0; }
  .mcoeur__title { font-size: 44px; }
  .mcoeur__head { padding: 0 0 48px; gap: 48px; }
  .mcoeur__panel { padding: 52px 40px 56px; }
  .mcoeur__stops { grid-template-columns: .6fr repeat(4, 1fr); gap: 24px; }
  .mcoeur__time .num { font-size: 52px; }
  .mcoeur__place { font-size: 17px; }
}
@media (max-width: 760px) {
  .mcoeur { padding: 72px 0; }
  .mcoeur__head { flex-direction: column; align-items: flex-start; gap: 20px; padding-bottom: 40px; }
  .mcoeur__title { font-size: 36px; }
  .mcoeur__panel { padding: 32px 24px 36px 24px; }
  .mcoeur__track { position: absolute; top: 38px; bottom: 44px; left: 30px; width: 1px; height: auto; margin: 0; }
  .mcoeur__line { transform: scaleY(0); transform-origin: center top; }
  .mcoeur__panel.is-in .mcoeur__line { transform: scaleY(1); }
  .mcoeur__walker { display: none; }
  .mcoeur__stops { grid-template-columns: 1fr; gap: 28px; margin: 0; }
  .mcoeur__stop { position: relative; padding-left: 34px; }
  .mcoeur__dot { position: absolute; left: 0; top: 4px; margin: 0; }
  .mcoeur__time { margin-bottom: 12px; }
  .mcoeur__time .num { font-size: 44px; }
  .mcoeur__list li { padding-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .mcoeur__line, .mcoeur__dot, .mcoeur__from, .mcoeur__time, .mcoeur__max, .mcoeur__list { transition: none; transform: none; opacity: 1; }
  .mcoeur__walker { display: none; }
}
.hero__lead.hero__lead--wide { max-width: 820px; }
/* Résidence · section « La Vie La Bella Montbardoise » : texte plus large */
.rbat--about .rbat__cols { grid-template-columns: 600fr 100fr 660fr; }
.rbat__lead { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 1180px) { .rbat--about .rbat__cols { grid-template-columns: 1fr; } }
.rabout__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 120px; align-items: start; }
.rabout__cols > .rbat__text, .rabout__fiche { grid-column: auto; }
.rabout__fiche { margin: 0; }
@media (max-width: 1180px) { .rabout__cols { grid-template-columns: 1fr; gap: 56px; } }
.rfiche { grid-template-columns: repeat(3, 1fr); margin-top: 100px; row-gap: 56px; }
.rfiche li:first-child { border-left: 0; }
@media (max-width: 1180px) { .rfiche { grid-template-columns: repeat(3, 1fr); margin-top: 64px; } .rfiche li { padding: 0 24px; } .rfiche li:nth-child(3) { border-left: 1px solid rgba(172, 72, 48, .6); } }
@media (max-width: 760px) { .rfiche { grid-template-columns: 1fr; } .rfiche li { padding: 20px 0 0; } .rfiche li:nth-child(3) { border-left: 0; } }
@media (max-width: 760px) { .rfiche li { border-left: 0; } }
.rabout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 80px; align-items: start; }
.rabout__head { grid-column: 1 / -1; }
.rabout__head { display: flex; flex-direction: column; gap: 24px; }
.rabout__head .eyebrow { margin: 0; }
.rabout__p { text-align: justify; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 8 4 4; -webkit-hyphenate-limit-lines: 1; hyphenate-limit-lines: 1; }
@media (max-width: 1180px) { .rabout { grid-template-columns: 1fr 1fr; gap: 40px 56px; } .rabout__head { grid-column: 1 / -1; } }
@media (max-width: 760px) { .rabout { grid-template-columns: 1fr; gap: 24px; } .rabout__p { text-align: left; } }
/* Résidence · trois points pleine largeur d'écran */
.rpoints { border-top: 1px solid rgba(172, 72, 48, .25); border-bottom: 1px solid rgba(172, 72, 48, .25); background: var(--papier); }
.rpoints__list { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; }
.rpoints__list li { position: relative; overflow: hidden; padding: 32px 60px; border-left: 1px solid rgba(172, 72, 48, .25); }
.rpoints__in { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; width: 100%; max-width: 420px; }
.rpoints__list li:first-child { border-left: 0; }
.rpoints__list h4 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.2; color: #3a5872; }
.rpoints__list p { font-size: 18px; line-height: 1.65; color: var(--encre-2); }
@media (max-width: 760px) { .rpoints__list { grid-template-columns: 1fr; } .rpoints__list li { padding: 32px 20px; border-left: 0; border-top: 1px solid rgba(172, 72, 48, .25); } .rpoints__list li:first-child { border-top: 0; } .rpoints__list h4 { font-size: 24px; } }
/* Résidence · L'appartement, accordéon horizontal */
.racc__list { display: flex; gap: 20px; height: 600px; }
.racc__item { position: relative; flex: 0 0 140px; min-width: 0; border-radius: var(--radius); overflow: hidden; background: var(--encre); box-shadow: var(--shadow-panel); transition: flex-grow .8s var(--ease); }
.racc__item.is-on { flex-grow: 1; }
.racc__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.5); transition: filter .8s var(--ease); }
.racc__item.is-on img { filter: none; }
.racc__item:not(.is-on):hover img { filter: grayscale(.4) brightness(.65); }
.racc__btn { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: center; padding: 28px 0; border: 0; background: none; color: var(--papier); cursor: pointer; }
.racc__item.is-on .racc__btn { pointer-events: none; }
.racc__label { display: flex; align-items: center; gap: 32px; writing-mode: vertical-rl; text-orientation: sideways; transform: rotate(180deg); line-height: 1; white-space: nowrap; transition: opacity .4s var(--ease); }
.racc__lnum { font-size: 24px; font-weight: 600; color: var(--rose); }
.racc__lname { font-family: var(--serif-text); font-size: 24px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.racc__item.is-on .racc__label { opacity: 0; }
.racc__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(29, 37, 33, .88) 0%, rgba(29, 37, 33, .55) 30%, rgba(29, 37, 33, 0) 62%); opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.racc__item.is-on::after { opacity: 1; }
.racc__text { position: absolute; z-index: 1; left: 40px; right: 40px; bottom: 36px; max-width: 520px; display: flex; flex-direction: column; gap: 8px; color: var(--papier); opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease), transform .4s var(--ease); pointer-events: none; }
.racc__item.is-on .racc__text { opacity: 1; transform: none; transition-delay: .45s; }
.racc__num { font-size: 28px; font-weight: 600; line-height: 1; color: var(--rose); }
.racc__room { font-family: var(--serif); font-size: 36px; font-weight: 600; line-height: 1.1; white-space: nowrap; }
.racc__text p:last-child { font-size: 18px; line-height: 1.6; opacity: .9; }
@media (max-width: 1180px) { .racc__list { height: 520px; gap: 16px; } .racc__item { flex-basis: 96px; } }
@media (max-width: 760px) {
  .racc__list { flex-direction: column; height: auto; gap: 10px; }
  .racc__item { flex: none; height: 72px; transition: height .7s var(--ease); }
  .racc__item.is-on { height: 420px; }
  .racc__btn { align-items: center; justify-content: flex-start; padding: 0 20px; }
  .racc__label { writing-mode: horizontal-tb; transform: none; gap: 12px; }
  .racc__lnum { font-size: 32px; }
  .racc__lname { font-size: 18px; }
  .racc__text { left: 20px; right: 20px; bottom: 24px; }
  .racc__room { font-size: 28px; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .racc__item, .racc__text, .racc__item img { transition: none; } }
.rplus { display: flex; align-items: flex-start; gap: clamp(48px, 7vw, 137px); margin-top: 100px; }
.rplus__title { flex: 1 0 0; min-width: 0; padding-left: 60px; font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1.2; color: var(--encre); }
.rplus__col { display: flex; flex-direction: column; gap: 12px; flex: none; width: 324px; margin: 0; padding: 12px 0 0; list-style: none; }
.rplus__col li { display: flex; align-items: flex-start; gap: 10px; font-size: 18px; font-weight: 500; line-height: 1.5; color: var(--encre); }
.rplus__col:last-child { box-sizing: content-box; padding-right: 60px; }
.rplus__ic { flex: none; display: flex; padding-top: 2px; color: var(--terracotta); }
.rplus__ic .icon { width: 24px; height: 24px; }
.rplus__pet { font-weight: 600 !important; color: #8e3a27 !important; }
@media (max-width: 1180px) { .rplus { flex-wrap: wrap; gap: 32px 48px; } .rplus__title { flex-basis: 100%; padding-left: 0; } .rplus__col { flex: 1 1 280px; width: auto; } .rplus__col:last-child { padding-right: 0; } }
@media (max-width: 760px) { .rplus { margin-top: 56px; gap: 12px; } .rplus__col { flex-basis: 100%; } .rplus__title { font-size: 34px; margin-bottom: 12px; } .rplus__col { padding-top: 0; } .rplus__col li { font-size: 17px; } }

.racc { background: var(--creme); }
/* Image de fond des trois points : grands écrans seulement */
.rpoints__bg { display: none; }
@media (min-width: 1500px) {
  .rpoints__bg { display: block; position: absolute; top: 0; right: 0; bottom: 0; width: 62%; height: 100%; object-fit: cover; filter: grayscale(.55) saturate(.7) brightness(1.08) contrast(.9); opacity: .4; }
  .rpoints__list li::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 62%; background: linear-gradient(90deg, var(--papier) 0%, rgba(251, 248, 243, .55) 45%, rgba(251, 248, 243, .15) 100%); pointer-events: none; }
}
.racc__item img.racc__img--left, .racc__item img.racc__img--right { transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.racc__item img.racc__img--left { object-position: left center; transform-origin: left center; }
.racc__item img.racc__img--right { object-position: right center; transform-origin: right center; }
.racc__item.is-on img.racc__img--left, .racc__item.is-on img.racc__img--right { transform: scale(1.3); }

.racc .rapt__head { padding-left: 60px; padding-right: 60px; }
@media (max-width: 1180px) { .racc .rapt__head { padding-left: 0; padding-right: 0; } }
/* Entre 1500 et 2000 px : l'image prend moins de place, le papier plus */
@media (min-width: 1500px) and (max-width: 1999px) {
  .rpoints__bg, .rpoints__list li::after { width: 46%; }
  .rpoints__list li::after { background: linear-gradient(90deg, var(--papier) 0%, var(--papier) 15%, rgba(251, 248, 243, .6) 55%, rgba(251, 248, 243, .2) 100%); }
}

/* ==================================================================
   RÉSIDENCE · Essais de la section prix (B, C, D)
   ================================================================== */
.rpx__list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rpx__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 18px; font-weight: 500; line-height: 1.5; color: var(--encre); }
.rpx__ic { flex: none; display: flex; padding-top: 2px; color: var(--terracotta); }
.rpx__ic .icon { width: 22px; height: 22px; }

/* B — Figma 128:2331 */
.rpxb { position: relative; isolation: isolate; padding: 150px 0; background: var(--papier); }
.rpxb__frame { position: absolute; inset: 30px; z-index: -1; overflow: hidden; }
.rpxb__frame img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.12) saturate(.55) sepia(.12); opacity: .2; }
.rpxb__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(244, 237, 227, .8) 0%, rgba(251, 248, 243, .56) 33.05%, rgba(251, 248, 243, 0) 98.8%); }
.rpxb__wrap { display: flex; align-items: stretch; gap: 40px; max-width: 1600px; padding: 0 120px; }
.rpxb__left { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 60px 0; }
.rpxb__eyebrow { display: flex; align-items: center; gap: 8px; padding-bottom: 24px; font-size: 14px; font-weight: 600; line-height: 16.8px; letter-spacing: 2.8px; text-transform: uppercase; color: #3a5872; }
.rpxb__eyebrow::before { content: ""; flex: none; width: 36px; height: 1px; background: currentColor; }
.rpxb__amount { display: flex; align-items: baseline; gap: 16px; letter-spacing: -.27px; white-space: nowrap; }
.rpxb__num { font-family: var(--serif-num); font-size: 120px; font-weight: 700; line-height: .7; color: #83331f; }
.rpxb__cur { font-family: var(--serif); font-size: 80px; font-weight: 600; line-height: 1; color: var(--terracotta); }
.rpxb__cc { font-size: 18px; line-height: 29.7px; letter-spacing: .18px; color: var(--encre-2); }
.rpxb__aide { display: flex; flex-direction: column; gap: 12px; padding-right: 40px; }
.rpxb__aide-h { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.2; color: var(--terracotta); white-space: nowrap; margin: 0; }
.rpxb__aide p { font-size: 18.9px; line-height: 31.185px; color: var(--encre-2); margin: 0 0 12px; }
.rpxb__card { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; padding: 32px 40px; border-radius: var(--radius); background: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: var(--shadow-panel); }
.rpxb__top { display: flex; flex-direction: column; gap: 8px; padding-bottom: 24px; border-bottom: 1px solid rgba(172, 72, 48, .6); }
.rpxb__h { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 37.4px; color: #3a5872; margin: 0; }
.rpxb__desc { font-size: 18px; line-height: 29.7px; color: var(--encre-2); margin: 0; }
.rpxb__card .rpx__list { width: 100%; gap: 20px; padding-top: 24px; }
.rpxb__card .rpx__list li { line-height: 1.65; }
.rpxb__card .rpx__ic .icon { width: 24px; height: 24px; }
.rpxb__opts { display: flex; flex-direction: column; width: 100%; margin: 0; padding: 0; list-style: none; }
.rpxb__opts li { display: flex; flex-direction: column; gap: 6px; padding: 24px 0 16px; border-bottom: 1px solid rgba(76, 113, 146, .3); }
.rpxb__opts li:last-child { padding-bottom: 0; border-bottom: 0; }
.rpxb__opts b { font-family: var(--serif-text); font-size: 20px; font-weight: 700; line-height: 1.1; letter-spacing: 1px; text-transform: uppercase; color: var(--terracotta); }
.rpxb__opts span { font-size: 18px; line-height: 1.5; color: var(--encre-2); }
@media (max-width: 1280px) { .rpxb__wrap { flex-wrap: wrap; padding: 0 60px; } .rpxb__left { flex-basis: 100%; padding: 0; } .rpxb__aide { padding-right: 0; max-width: 560px; } }
@media (max-width: 860px) { .rpxb__wrap { flex-direction: column; padding: 0 24px; } }
@media (max-width: 760px) { .rpxb { padding: 72px 0; } .rpxb__frame { inset: 12px; } .rpxb__num { font-size: 80px; } .rpxb__cur { font-size: 54px; } }


/* ---------- Salle commune ---------- */
.rcm__when { font-size: 13px; font-weight: 600; line-height: 1.2; letter-spacing: .18em; text-transform: uppercase; color: var(--terracotta); }

/* C : texte fixe, photos qui défilent */
.rcmc { background: var(--papier); }
.rcmc__wrap { display: grid; grid-template-columns: 520px 1fr; gap: 100px; align-items: start; }
.rcmc__side { position: sticky; top: calc(var(--hdr, 90px) + 60px); display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.rcmc__side .eyebrow, .rcmc__side .title-lg { margin-bottom: 0; }

@media (max-width: 1180px) {
  .rcmc__wrap { grid-template-columns: 1fr; gap: 40px; }
  .rcmc__side { position: static; }
}
.rcmc__side .btn { margin-top: 8px; }

/* Salle commune : grandes photos, texte en surimpression */
.rcmd__list { display: flex; flex-direction: column; gap: 40px; }
.rcmd__card { position: relative; height: 460px; border-radius: var(--radius); overflow: hidden; color: var(--papier); box-shadow: var(--shadow-panel); }
.rcmd__card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rcmd__card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(180deg, rgba(41, 25, 19, 0), rgba(41, 25, 19, .9) 85%); pointer-events: none; }
.rcmd__txt { position: absolute; z-index: 1; left: 40px; right: 40px; bottom: 36px; display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.rcmd__txt .eyebrow { margin: 0; font-size: 12px; }
.rcmd__txt h3 { font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1.05; text-shadow: var(--text-shadow); }
.rcmd__txt > p:last-child { max-width: 480px; font-size: 18px; line-height: 1.5; opacity: .9; }
@media (max-width: 760px) { .rcmd__txt { left: 24px; right: 24px; bottom: 24px; } .rcmd__txt h3 { font-size: 30px; } }
.rcmd__card > img.rcmd__img--top { object-position: center 20%; }

/* Header sur héros clair (Tarifs) */

/* Tarifs : héros clair, 2 colonnes (compris à gauche, loyer à droite) */

/* Tarifs : héros sombre */

/* Tarifs : héros centré sur le prix */
.hero__price { display: flex; align-items: baseline; justify-content: center; gap: 24px; white-space: nowrap; text-shadow: var(--text-shadow); }
.hero__price .num { font-family: var(--serif-num); font-size: 120px; font-weight: 700; line-height: .8; }
.hero__cur { font-family: var(--serif-num); font-size: 120px; font-weight: 700; line-height: .8; }
.hero__incl { text-transform: none; letter-spacing: 0; font-family: var(--serif); font-size: clamp(32px, 2.625vw, 42px); font-weight: 500; line-height: 1.2; text-shadow: var(--text-shadow); }
.hero__incl em { color: var(--peche); } /* même couleur que l’eyebrow « Le loyer par mois » */
@media (max-width: 760px) { .hero__price .num, .hero__cur { font-size: 80px; } }

/* ---------- Tarifs : ce qui est compris ---------- */
.tv__list { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.tv__list li { display: flex; align-items: flex-start; gap: 12px; font-size: 18px; font-weight: 500; line-height: 1.5; }
.tv__ic { flex: none; display: flex; padding-top: 1px; color: var(--terracotta); }
.tv__ic .icon { width: 24px; height: 24px; }
.tvc { background: var(--papier); }
.tvc__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; }
.tvc__head { padding-top: 32px; }
.tvc__card { padding: 32px 40px; border-radius: var(--radius); background: rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: var(--shadow-panel); }
.tvc__card h3 { padding-bottom: 20px; margin-bottom: 24px; font-family: var(--serif); font-size: 32px; font-weight: 600; color: #3a5872; border-bottom: 1px solid rgba(172, 72, 48, .6); }
@media (max-width: 1180px) { .tvc__cards { grid-template-columns: 1fr 1fr; } .tvc__head { grid-column: 1 / -1; padding-top: 0; } }
@media (max-width: 760px) { .tvc__cards { grid-template-columns: 1fr; } }

/* Héros suivi de la navigation de page (Tarifs, Montbard) : héros + nav de 80 px = un écran */
:root { --pnav-h: 60px; }
@media (min-width: 1600px) { :root { --pnav-h: 70px; } }
@media (min-width: 1900px) { :root { --pnav-h: 80px; } }
.pnav a { height: var(--pnav-h); }
.hero--nav { min-height: max(560px, calc(100vh - var(--pnav-h))); min-height: max(560px, calc(100svh - var(--pnav-h))); }
@media (max-width: 760px) { .pnav a { height: 64px; } .hero--nav { min-height: max(560px, 100svh); } }
.tvc__links { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 40px; }
.tvc { isolation: isolate; }
.tvc__frame { position: absolute; inset: 0; z-index: -1; display: flex; overflow: hidden; }
.tvc__frame img { flex: 1 0 0; min-width: 0; height: 100%; object-fit: cover; filter: brightness(1.12) saturate(.55) sepia(.12); opacity: .2; }
.tvc__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(244, 237, 227, .8) 0%, rgba(251, 248, 243, .56) 33.05%, rgba(251, 248, 243, 0) 98.8%); }


/* ---------- Tarifs · les options ---------- */
.toc { background: var(--papier); }
.toc__wrap { display: grid; grid-template-columns: 2fr 3fr; gap: 100px; align-items: stretch; }
.toc__img { min-height: 560px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-panel); }
.toc__img img { width: 100%; height: 100%; object-fit: cover; }
.toc__body { display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.toc__body .eyebrow, .toc__body .title-lg { margin: 0; }
.toc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 60px; margin: 16px 0 0; padding: 32px 0 0; list-style: none; border-top: 1px solid rgba(162, 67, 46, .3); }
.toc__grid h3 { margin-bottom: 8px; font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -.5px; text-transform: none; color: #3a5872; }
.toc__grid p { font-size: 18px; line-height: 1.5; color: var(--encre-2); }
@media (max-width: 1180px) {
  .toc__wrap { grid-template-columns: 1fr; gap: 40px; }
}
.toc__body .title-lg + .lead { margin-top: -8px; }
.toc__body .btn { align-self: flex-start; margin-top: 16px; }

/* Tarifs · Comparer dans le layout « Vivre à Montbard » */
.montbard.tcomp { background: var(--nuit); }
.tcomp__text { width: 66%; gap: 32px; }
.tcomp__text .title-mb em { color: var(--rose); }
.tcomp__text .tcomp__chips { display: flex; flex-wrap: nowrap; gap: 4px; width: 100%; margin: 0; padding: 4px; border: 1px solid rgba(166, 197, 229, .3); border-radius: var(--radius); background: rgba(166, 197, 229, .06); }
.tcomp__text .tcomp__bars { width: 100%; gap: 24px; }
.tcomp__text .tbar { grid-template-columns: 1fr auto; gap: 8px 24px; }
.tcomp__text .tbar__label { grid-column: 1; grid-row: 1; font-size: 20px; }
.tcomp__text .tbar__val { grid-column: 2; grid-row: 1; font-size: 28px; }
.tcomp__text .tbar__track { grid-column: 1 / -1; grid-row: 2; }
.tcomp__text .tcomp__diff { width: 100%; margin-top: 0; }
.tcomp__text .tcomp__diff-num { font-size: 56px; }
.tcomp__text .tcomp__source { margin-top: 0; }
.montbard.tcomp .montbard__frame::after { background: linear-gradient(90deg, var(--nuit) 0%, rgba(35, 33, 34, .9) 58%, rgba(35, 33, 34, .3) 80%, rgba(35, 33, 34, .15) 100%); }
.montbard.tcomp .montbard__wrap { justify-content: flex-start; }
.tcomp__text .chip { flex: none; height: 44px; padding: 0 16px; border: 0; border-radius: 5px; background: transparent; white-space: nowrap; }
.tcomp__text .chip:not(.is-on):hover { background: rgba(166, 197, 229, .12); }
.tcomp__text .chip.is-on { background: var(--creme); color: var(--nuit); }
.tcomp__box { display: flex; flex-direction: column; gap: 32px; width: min-content; max-width: 100%; }
.tcomp__box > * { width: 100%; }
.tcomp__text .tcomp__box { gap: 40px; }
.tcomp__text .tcomp__bars { gap: 28px; }
.tcomp__text .tbar__label { font-family: var(--serif-text); font-size: 17px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tcomp__text .tcomp__diff { justify-content: flex-start; align-items: baseline; gap: 16px; }
.tcomp__text .tcomp__diff-num { font-size: 64px; color: var(--papier); }
.tcomp__diff-label { font-size: 18px; color: rgba(251, 248, 243, .8); }
.tcomp__text .tcomp__source { opacity: .5; font-size: 13px; }
.tcomp__text .tcomp__diff { padding-top: 0; border-top: 0; }

/* Tarifs · les aides (accordéon) */
.taidesb { background: var(--papier); }
.taidesb__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
.taidesb__text { display: flex; flex-direction: column; gap: 24px; }
.taidesb__text .eyebrow, .taidesb__text .title-lg { margin: 0; }
.taidesb__list { width: auto; }
.taidesb__list .apts__items { margin-bottom: 0; border-top: 0; }
.taidesb__list .apts__item:last-child { border-bottom: 0; }
.taidesb__list .apts__meta { font-size: 22px; color: var(--terracotta); }
@media (max-width: 1180px) { .taidesb__cols { grid-template-columns: 1fr; gap: 40px; } }
.tcomp__text .title-mb { font-weight: 600; margin-bottom: 16px; }
.hero__strong { font-weight: 600; }
.hero--tarifs .hero__lead { max-width: 720px; }

.pduo__groups { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.pduo__groups h3 { margin-bottom: 4px; font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -.3px; color: #83331f; }
.pduo__groups p { font-size: 16px; line-height: 1.55; color: var(--encre-2); }
.pduo .rapt__head { padding: 0 115px; }
.pduo__img { position: relative; }
.pduo__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(41, 25, 19, 0) 40%, rgba(41, 25, 19, .8) 100%); pointer-events: none; }
.pduo__who { position: absolute; z-index: 1; left: 24px; right: 16px; bottom: 24px; font-family: var(--serif); font-size: 38px; font-weight: 700; line-height: 1.15; text-transform: uppercase; color: var(--papier); text-shadow: var(--text-shadow); }
@media (max-width: 1180px) { .pduo .rapt__head { padding: 0; } }

/* Pour un parent · Venir le voir (layout « L’essentiel ») */
.piliers--visite .pilier__img { aspect-ratio: 426.67 / 360; }
.hero--parent .hero__title { font-size: clamp(46px, 5.375vw, 86px); }
@media (min-width: 761px) { .hero--parent .hero__title { max-width: none; } .hero--parent .hero__title em { white-space: nowrap; } }
.piliers--visite { background: var(--creme); }
.pilier__img--left { object-position: left center; }
.pilier__credit { position: relative; margin-top: 12px; font-size: 12px; color: var(--encre-3); }
.pilier__credit a { color: inherit; }
.pilier__img--top { object-position: center 20%; }

/* ---------- Pour un parent · Est-ce la bonne solution ---------- */
@media (max-width: 1180px) {
  .pfe__cols { grid-template-columns: 1fr; gap: 40px; }
}
.pfe__cols { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: center; }
.pfe__side { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.pfe__side .eyebrow, .pfe__side .title-lg { margin: 0; }
.pfe__side .btn { margin-top: 8px; }
.pfe .pfit__row:not(.pfit__row--head) p:first-child { font-family: var(--serif-text); letter-spacing: -.2px; }
.pfe .pfit__row { grid-template-columns: 296px 1fr 1fr; column-gap: 48px; }
@media (max-width: 1180px) { .pfe__cols { grid-template-columns: 1fr; gap: 40px; } .pfe .pfit__row { grid-template-columns: 1.4fr 1fr 1fr; column-gap: 24px; } }
.lead__intro { font-weight: 600; color: var(--encre); }

/* ---------- Pour un parent · En parler avec lui ---------- */
.ptc { background: var(--creme); }
.ptc__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 40px; margin: 0; padding: 0; list-style: none; }
.ptc__steps li { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(162, 67, 46, .5); }
.ptc__num { font-size: 56px; font-weight: 700; line-height: .9; color: var(--terracotta); opacity: .25; }
.ptc__steps h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.15; color: #83331f; }
.ptc__steps p { font-size: 17px; line-height: 1.55; color: var(--encre-2); }
@media (max-width: 1180px) {
  .ptc__steps { grid-template-columns: 1fr 1fr; }
}
.nav-lg { display: none; }
@media (min-width: 1600px) { .nav-lg { display: inline; } .nav-sm { display: none; } }
@media (max-width: 1180px) { .nav-lg { display: inline; } .nav-sm { display: none; } }

/* Accordéon des appartements / aides : ouverture douce */
.apts__desc { display: block; max-height: 0; overflow: hidden; opacity: 0; padding-bottom: 0; transition: max-height .5s var(--ease), opacity .4s var(--ease), padding-bottom .5s var(--ease); }
.apts__item.is-on .apts__desc { max-height: 300px; opacity: 1; padding-bottom: 26px; }
.pfaq__head .btn { margin-top: 16px; }
.pfaq__more { margin-top: 32px; }
.pfaq__list { display: flex; flex-direction: column; align-items: flex-start; } .pfaq__list .acc { width: 100%; }
.fq__nav a .icon { transition: transform .4s var(--ease), opacity .4s var(--ease); }
.fq__nav a:hover .icon { opacity: 1; transform: translateX(4px); }
.fq__nav a.is-on .icon { visibility: hidden; }
.fq__group .title-sm { color: var(--bleu); }

/* Hero court (Questions) */
.hero--short { min-height: max(460px, 60vh); min-height: max(460px, 60svh); }

/* E-mail de contact */
.fq__mail, .drawer__mail { font-size: 18px; font-weight: 600; color: var(--terracotta); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .4s var(--ease); }
.fq__mail:hover, .drawer__mail:hover { color: var(--encre); }


/* Contact : boutons Par téléphone / Par e-mail. Au clic, le bouton choisi s'étend
   et affiche la coordonnée, l'autre se réduit en carré (icône seule) ; cliquer le carré inverse. */
.reach { display: flex; gap: 12px; margin: 16px 0 20px; }
.reach__btn { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); flex: 1 1 0; min-width: 0; overflow: hidden; padding: 0 20px; transition: flex-grow .4s var(--ease), flex-basis .4s var(--ease), padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease); }
.reach__face { grid-area: 1 / 1; justify-self: center; display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; transition: opacity .2s var(--ease), transform .3s var(--ease); }
.reach__btn:hover .icon { transform: none; }
.reach__face--value, .reach__face--icon { opacity: 0; transform: translateY(10px); }
.reach__v.num { font-size: 26px; letter-spacing: .02em; }
.reach__btn.is-on .reach__face--label, .reach__btn.is-min .reach__face--label { opacity: 0; transform: translateY(-10px); }
.reach__btn.is-on .reach__face--value, .reach__btn.is-min .reach__face--icon { opacity: 1; transform: none; transition-delay: .15s; }
.reach__btn.is-min { flex-grow: .0001; flex-basis: 58px; padding: 0; }
@media (prefers-reduced-motion: reduce) {
  .reach__btn, .reach__face { transition: none; }
}
.fq__help-title { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.2; color: var(--encre); }
.footer__btn { width: 100%; height: 52px; margin-bottom: 12px; padding: 0 24px; font-size: 16px; }
.rabout__photo { width: 100%; height: auto; aspect-ratio: 1122 / 1402; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 1181px) {
  .rabout__head { grid-column: 1 / 3; }
  .rabout__photo { grid-column: 3; grid-row: 1 / span 2; }
}
.contact__block .reach { margin: 0; }

/* Bandeau d'ouverture, fixe au-dessus du header */
:root { --topbar-h: 40px; }
html { scroll-padding-top: 4px; } /* au défilement, le bandeau est réduit à 4 px */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; justify-content: center; height: var(--topbar-h); padding: 0 16px; background: linear-gradient(90deg, var(--bleu-600), var(--bleu-300)); color: #fff; font-family: var(--serif-text); font-size: 20px; font-weight: 600; line-height: 1; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(51, 75, 97, .5); white-space: nowrap; }
.topbar__t { position: relative; top: 1px; transition: opacity .25s var(--ease), transform .4s var(--ease); }
/* Au défilement : le bandeau se réduit en trait de 4 px, le texte s'efface */
.topbar { overflow: hidden; transition: height .4s var(--ease); }
html.is-solid .topbar, html.is-menu-open .topbar { height: 4px; }
html.is-solid .topbar__t, html.is-menu-open .topbar__t { opacity: 0; transform: translateY(-12px); }
html.is-solid .header, html.is-menu-open .header { top: 4px; }
@media (prefers-reduced-motion: reduce) { .topbar, .topbar__t { transition: none; } }
.reach__s { display: none; }
@media (max-width: 560px) {
  .reach__btn { padding: 0 12px; }
  .reach__face { gap: 8px; }
  .reach__face--value .icon { display: none; }
  .reach__v:not(.num) { font-size: 16px; }
}
/* Nav de page en mobile : 2 colonnes (la règle de la ligne ~545 était écrasée par la règle de base placée après) */
@media (max-width: 760px) {
  .pnav { grid-template-columns: 1fr 1fr; }
  .pnav a { gap: 10px; padding: 12px; font-size: 15px; text-align: center; }
  .pnav a:nth-child(2n) { border-right: 0; }
}
@media (max-width: 760px) {
  .pnav a { min-width: 0; overflow-wrap: anywhere; }
  .pfe .pfit__row { grid-template-columns: 1fr 1fr; column-gap: 16px; }
}
/* Filet de sécurité : jamais de scroll horizontal (clip ne casse pas position: sticky) */
html, body { overflow-x: clip; }

/* Panneau de contact : accordéon en mobile (« Nous contacter » d'abord, ouvert ; « Être rappelé » replié) */
.dacc__head { display: none; }
@media (max-width: 760px) {
  .dacc { display: flex; flex-direction: column; }
  .dacc__item--reach { order: -1; }
  .dacc .drawer__sep { display: none; }
  .dacc__item { border-bottom: 1px solid rgba(162, 67, 46, .15); }
  .dacc__head { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 20px 0; border: 0; background: none; font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.2; color: var(--encre); text-align: left; cursor: pointer; }
  .dacc__head .icon { flex: none; color: var(--terracotta); transition: transform .4s var(--ease); }
  .dacc__item.is-open .dacc__head { cursor: default; }
  .dacc__item.is-open .dacc__head .icon { opacity: 0; }
  .dacc__head .icon { transition: opacity .3s var(--ease); }
  .dacc__label { display: none; }
  .dacc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
  .dacc__item.is-open .dacc__body { grid-template-rows: 1fr; }
  .dacc__in { min-height: 0; overflow: hidden; padding: 0 6px; margin: 0 -6px; } /* marge pour le contour de focus (2 px + 3 px de décalage) */
  .dacc__in > :first-child { margin-top: 0; }
  .dacc__in > :last-child { margin-bottom: 24px; }
  .dacc .reach { margin-top: 0; }
  .dacc .drawer__lead { margin-top: 0; }
  /* Boutons empilés ; le téléphone appelle directement */
  .reach { flex-direction: column; gap: 12px; }
  .reach__btn, .reach__btn.is-min { flex: none; width: 100%; padding: 0 20px; }
  .reach__btn.is-min .reach__face--label { opacity: 1; transform: none; }
  .reach__btn.is-min .reach__face--icon { opacity: 0; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .dacc__body, .dacc__head .icon { transition: none; } }
/* Panneau de contact en mobile : « Par téléphone » devient le bouton principal */
@media (max-width: 760px) {
  .drawer .reach__btn[data-reach-k="tel"] { background: var(--terracotta); border-color: var(--terracotta); color: var(--papier); }
  .drawer .reach__btn[data-reach-k="tel"]:hover { background: #5a88b0; border-color: #5a88b0; }
}
/* Résidence, salle commune : cartes photo carrées en mobile */
@media (max-width: 760px) {
  .rcmd__card { height: auto; aspect-ratio: 1 / 1; }
  .rcmd__card::after { height: 75%; }
}
/* Footer mobile : logo réduit */
@media (max-width: 760px) { .footer__logo { width: 190px; height: auto; } } /* même taille que le logo du header mobile */
.footer__credit { color: inherit; text-decoration: underline; text-decoration-color: rgba(251, 248, 243, .5); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color .3s var(--ease); }
.footer__credit:hover { text-decoration-color: var(--papier); }
/* Footer mobile : liens légaux l'un sous l'autre */
@media (max-width: 760px) { .footer__links { display: flex; flex-direction: column; gap: 16px; } .footer__dot { display: none; } }
/* Héros des pages intérieures en mobile : contenu recentré sous le bandeau + header (le bas gardait 150 px contre 27 px en haut) */
@media (max-width: 760px) { .hero--page .hero__content { padding-top: 140px; padding-bottom: 96px; } }
/* Tarifs mobile : « Toutes charges comprises » plus proche du prix, graisse 600 */
@media (max-width: 760px) { .hero__incl { margin-top: -16px; font-weight: 600; } }
/* Tarifs, « Votre loyer en détail » : les liens passent après les deux cartes (bureau : sous le titre, colonne 1) */
.tvc__cards { row-gap: 0; grid-template-rows: auto 1fr; }
.tvc__head { grid-column: 1; grid-row: 1; }
.tvc__links { grid-column: 1; grid-row: 2; align-self: start; }
.tvc__card { grid-row: 1 / span 2; }
@media (max-width: 1180px) {
  .tvc__cards { row-gap: 40px; grid-template-rows: none; }
  .tvc__head, .tvc__links { grid-column: 1 / -1; grid-row: auto; }
  .tvc__card { grid-row: auto; }
  .tvc__links { margin-top: 0; }
}
@media (max-width: 760px) {
  .tvc__card { padding: 28px 24px; }
  .tv__list li { line-height: 1.3; }
  .tv__ic { padding-top: 0; }
}
.tvc__card h3 { line-height: 1.15; } /* héritait du 1.65 du body : énorme interligne quand le titre passe sur 2 lignes */
/* Tarifs mobile, « Les services à la carte » : photo moins haute, recadrée au centre */
@media (max-width: 760px) { .toc__img { min-height: 0; aspect-ratio: 4 / 5; } .toc__img img { object-position: center; } }
/* Tarifs mobile : les 4 services l'un sous l'autre */
@media (max-width: 760px) { .toc__grid { grid-template-columns: 1fr; gap: 28px; } }
/* Tarifs, « Comparer » : eyebrow + titre regroupés ; en mobile, posés sur la partie sombre de la photo */
.tcomp__head { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.tcomp__head .eyebrow { margin: 0; }
@media (max-width: 760px) {
  .montbard.tcomp .montbard__frame { --mb-h: 92vw; }
  .montbard.tcomp .montbard__frame::after { background: linear-gradient(180deg, rgba(35, 33, 34, 0) 70%, var(--nuit) 100%), linear-gradient(90deg, var(--nuit) 0%, rgba(35, 33, 34, .85) 45%, rgba(35, 33, 34, .2) 75%, rgba(35, 33, 34, 0) 100%); }
  .montbard.tcomp .montbard__wrap { padding-top: 0; }
  .tcomp__text { width: 100%; }
  .tcomp__head { gap: 16px; justify-content: center; min-height: var(--mb-h); } /* centré verticalement sur la photo */
  .tcomp__head .title-mb { max-width: 62%; margin-bottom: 0; }
}
/* Tarifs, « Comparer » en mobile : plus d'onglets, toutes les comparaisons à la suite */
.tcomp__list { display: none; }
@media (max-width: 760px) {
  .tcomp__box { display: none; }
  .tcomp__list { display: flex; flex-direction: column; gap: 32px; width: 100%; }
  .tcomp__save { margin-top: 12px; font-size: 15px; line-height: 1.5; color: rgba(251, 248, 243, .8); }
  .tcomp__save strong { font-size: 18px; font-weight: 600; color: var(--papier); white-space: nowrap; }
  .tcomp__list .tcomp__source { opacity: .5; font-size: 13px; }
}
/* Pour un parent, mobile : libellés des photos sur une ligne (deux au plus), en bas de la photo */
@media (max-width: 760px) { .pduo__who br { display: none; } .pduo__who { font-size: 32px; } }
/* Pour un parent, « En parler avec lui » en mobile : étapes l'une sous l'autre, titre + numéro sur la même ligne (numéro à droite) */
@media (max-width: 760px) {
  .ptc__steps { grid-template-columns: 1fr; gap: 32px; }
  .ptc__steps li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 16px; }
  .ptc__num { grid-column: 2; grid-row: 1; font-size: 44px; }
  .ptc__steps h3 { grid-column: 1; grid-row: 1; }
  .ptc__steps p { grid-column: 1 / -1; }
}
/* Pour un parent, « Une résidence, pas un Ehpad » en mobile : un bloc blanc par situation au lieu du tableau */
.pfit__m { display: none; }
@media (max-width: 760px) {
  .pfit__table { display: flex; flex-direction: column; gap: 12px; margin: 0; border-radius: 0; overflow: visible; background: none; box-shadow: none; }
  .pfit__row--head { display: none; }
  .pfe .pfit__row { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 20px; border: 0; border-radius: var(--radius); background: var(--blanc); box-shadow: var(--shadow-card); }
  .pfit__row > p:not(:first-child) { display: none; }
  .pfit__row > p:first-child { font-size: 22px; }
  .pfit__m { display: flex; flex-direction: column; gap: 10px; }
  .pfe .pfit__row.pfit__row--head { display: none; }
  .pfit__ml { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--encre-2); }
  .pfit__ml strong { font-weight: 600; color: var(--encre); }
  .pfit__ml--ehpad { padding-left: 42px; } /* aligné sur le texte de la ligne au-dessus (pastille 30 px + 12 px) */
}
/* Questions : filtres par thème masqués quand ils passent au-dessus des questions (tablette et mobile) */
@media (max-width: 1180px) { .fq__nav { display: none; } }
/* Montbard, « Le quotidien à pied » : plan à gauche (bords fondus dans le crème), titre + texte à droite */
.mcoeur__head { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
.mcoeur__intro { display: flex; flex-direction: column; align-items: flex-start; }
.mcoeur__intro .lead { margin-top: 24px; }
.mcoeur__map { width: 100%; height: auto; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%); mask-composite: intersect; }
@media (max-width: 760px) { .mcoeur__head { grid-template-columns: 1fr; gap: 24px; } }
/* Montbard, panneau des temps de marche : 5 colonnes égales, gap 60, filets sur toute la largeur de la colonne */
.mcoeur__stops { grid-template-columns: repeat(5, 1fr); gap: 60px; }
.mcoeur__list { align-self: stretch; }
@media (max-width: 1280px) { .mcoeur__stops { grid-template-columns: repeat(5, 1fr); gap: 32px; } }
@media (max-width: 760px) { .mcoeur__stops { grid-template-columns: 1fr; gap: 28px; } }
/* Distance max sur la même ligne que le temps, alignée sur la ligne de base, à droite */
.mcoeur__time { margin-bottom: 28px; align-self: stretch; } /* pleine largeur de colonne : la distance part à droite */
.mcoeur__time .mcoeur__max { margin: 0 0 0 auto; letter-spacing: .04em; text-transform: none; font-weight: 400; opacity: .75; transform: none; }
@media (max-width: 760px) { .mcoeur__time { margin-bottom: 12px; } }
.mcoeur__min { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1; letter-spacing: 0; text-transform: none; color: var(--encre); } /* « min » en serif, encre */
.mcoeur__time { gap: 0 4px; } /* chiffre et « min » plus serrés */
/* Sous 1600 px : la distance passe sous le temps */
@media (max-width: 1599px) {
  .mcoeur__time { flex-wrap: wrap; }
  .mcoeur__time .mcoeur__max { flex-basis: 100%; margin: 6px 0 0; }
}
/* Essai : plus de filet entre les éléments ; un filet en haut et un en bas de la liste */
.mcoeur__list { gap: 16px; padding: 16px 0; border-top: 1px solid rgba(172, 72, 48, .2); border-bottom: 1px solid rgba(172, 72, 48, .2); }
.mcoeur__list li { padding-top: 0; border-top: 0; }
@media (min-width: 761px) { .mcoeur__list { flex: 1 0 auto; } } /* filets du bas alignés d'une colonne à l'autre */
/* Montbard mobile : temps + distance à gauche, liste à droite ; un filet sous chaque bloc */
@media (max-width: 760px) {
  .mcoeur__stops { gap: 28px; }
  .mcoeur__stop:not(.mcoeur__stop--home) { display: grid; grid-template-columns: 88px 1fr; align-items: start; column-gap: 16px; padding-bottom: 28px; border-bottom: 1px solid rgba(172, 72, 48, .2); }
  .mcoeur__stop:not(.mcoeur__stop--home) .mcoeur__time { grid-column: 1; margin: 0; align-self: start; align-content: flex-start; }
  .mcoeur__stop:not(.mcoeur__stop--home) .mcoeur__list { grid-column: 2; grid-row: 1; padding: 6px 0 0; border: 0; gap: 12px; }
}
/* Montbard mobile : la ligne à ronds sort des blocs (à gauche des filets) ; le contenu s'aligne sur le début du filet */
@media (max-width: 760px) {
  .mcoeur__panel { padding-left: 48px; padding-right: 24px; }
  .mcoeur__stop { padding-left: 0; }
  .mcoeur__dot { left: -28px; }
  .mcoeur__track { left: 26px; } /* centre des ronds : 48 − 28 + 6 */
}
@media (max-width: 760px) { .mcoeur__from br { display: none; } } /* « À pied depuis la résidence » sur une ligne si la place le permet */
/* Très petits écrans (≤ 359 px) : les boutons peuvent passer sur 2 lignes, les grilles ne débordent plus */
@media (max-width: 760px) { .pfe__cols, .toc__wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 359px) { .btn { max-width: 100%; height: auto; min-height: 58px; padding-top: 12px; padding-bottom: 12px; white-space: normal; text-align: center; } }

/* ---------- Parallaxe discrète (main.js) ---------- */
[data-parallax] { --py: 0px; transform: translate3d(0, var(--py), 0) scale(1.12); will-change: transform; }
@media (prefers-reduced-motion: reduce) { [data-parallax] { transform: none; will-change: auto; } }
@media (max-width: 760px) { .montbard__img[data-parallax] { transform: none; } } /* en mobile la photo ne remplit pas tout le cadre : pas de parallaxe */
.pduo__img { overflow: hidden; } /* contient la parallaxe de la photo */
@media (max-width: 760px) { .mvenir__img[data-parallax] { transform: none; } } /* en mobile la photo est dans le flux : pas de parallaxe */
/* Formulaire « Être rappelé » */
.rform__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* champ piège pour les robots */
.rform__msg { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); background: rgba(120, 166, 212, .14); font-size: 16px; line-height: 1.5; color: var(--bleu-fonce); }
.rform__msg.is-error { background: rgba(162, 67, 46, .1); color: var(--terracotta); }
.rform.is-sent .choice, .rform.is-sent .field, .rform.is-sent button[type="submit"], .rform.is-sent .drawer__lead { display: none; }
.rform.is-sent .rform__msg { margin-top: 0; }

/* ---------- Pages légales ---------- */
.legal { max-width: 800px; }
.legal h2 { margin: 60px 0 16px; font-family: var(--serif); font-size: clamp(30px, 2.25vw, 36px); font-weight: 600; line-height: 1.1; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0 0 16px; }
.legal a { color: var(--bleu-fonce); text-decoration: underline; text-decoration-color: rgba(76, 113, 146, .3); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; transition: color .4s var(--ease), text-decoration-color .4s var(--ease); }
.legal a:hover { color: var(--terracotta); text-decoration-color: rgba(162, 67, 46, .3); }
.legal__dl { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 12px 32px; margin: 0 0 16px; }
.legal__dl dt { font-weight: 600; }
.legal__dl dd { margin: 0; }
.legal__dl .num, .legal__dl dd.num { font-family: inherit; }
.legal__credits { margin: 0 0 16px; padding-left: 20px; }
.legal__credits li { margin-bottom: 8px; }
.legal__maj { margin-top: 60px !important; font-size: 15px; color: var(--encre-2); }
.drawer__note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .legal h2 { margin-top: 40px; }
  .legal__dl { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .legal__dl dd { margin-bottom: 12px; }
}
.e404__btn { margin-top: 32px; }

/* ---------- Formulaire : message de confirmation en vert anglais, avec transition ---------- */
:root { --vert-anglais: #004225; }
.rform__msg:not(.is-error) { background: rgba(0, 66, 37, .14); color: var(--vert-anglais); }
@keyframes rform-out { to { opacity: 0; transform: translateX(-32px); } }
@keyframes rform-in { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
.rform.is-leaving .choice, .rform.is-leaving .field, .rform.is-leaving button[type="submit"], .rform.is-leaving .drawer__lead { animation: rform-out .3s var(--ease) forwards; }
.rform.is-sent .rform__msg:not(.is-error) { animation: rform-in .5s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  .rform.is-leaving .choice, .rform.is-leaving .field, .rform.is-leaving button[type="submit"], .rform.is-leaving .drawer__lead, .rform.is-sent .rform__msg { animation: none; }
}

/* ---------- Mobile : cadrage des grandes images du haut des pages (sujet principal dans l'écran vertical) ---------- */
@media (max-width: 760px) {
  .hero__img[src$="/hero.webp"] { object-position: 20% 40%; }
  .hero__img[src$="/hero-2.webp"] { object-position: 20% 40%; }
  .hero__img[src$="/hero-plante.webp"] { object-position: 58% 40%; }
  .hero__img[src$="/hero-canal.webp"], .hero__img[src$="/montbard-canal.webp"] { object-position: 23% 40%; }
  .hero__img[src$="/residence-facade-b.webp"] { object-position: 68% 40%; }
  .hero__img[src$="/residence-appartement.webp"] { object-position: 43% 40%; }
  .hero__img[src$="/residence-salle-commune.webp"] { object-position: 57% 40%; }
  .hero__img[src$="/montbard-fontenay.webp"] { object-position: 29% 40%; }
  .hero__img[src$="/vie-salon-residents.webp"] { object-position: 33% 40%; }
  .hero__img[src$="/vie-salon-couple.webp"] { object-position: 15% 40%; }
}

/* ---------- Résidence · « Les petits détails » de 1181 à 1499 px : titre moins écrasé, colonnes de liste souples
   (au-delà de 1500 px, la largeur naturelle suffit) ---------- */
@media (min-width: 1181px) and (max-width: 1499px) {
  .rplus { gap: 48px; }
  .rplus__title { flex: 0 0 320px; }
  .rplus__col { flex: 1 1 0; width: auto; }
}

/* ---------- Résidence · Le loyer (861 à 1499 px) : prix et aides sur une ligne au-dessus, les deux cartes en dessous ---------- */
@media (min-width: 861px) and (max-width: 1499px) {
  .rpxb__wrap { flex-wrap: wrap; gap: 40px; padding: 0 60px; }
  .rpxb__left { flex: 0 0 100%; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 60px; padding: 0 0 20px; }
  .rpxb__aide { flex: 0 1 480px; padding-right: 0; max-width: none; }
  .rpxb__aide p { margin-bottom: 4px; }
  .rpxb__card { flex: 1 1 0; padding: 40px 48px; }
}

/* ---------- Tarifs · Comparer (761 à 1399 px) : les trois boutons se partagent la largeur, le texte peut passer sur deux lignes ---------- */
@media (min-width: 761px) and (max-width: 1399px) {
  .tcomp__box { width: 100%; }
  .tcomp__text .chip { flex: 1 1 auto; height: auto; min-height: 44px; padding: 8px 12px; white-space: normal; line-height: 1.25; text-align: center; }
}

/* ---------- Pour un parent · « Ce qui change » (1181 à 1499 px) : chaque moitié du titre sur une ligne ---------- */
@media (min-width: 1181px) and (max-width: 1499px) {
  .pduo .rapt__head { padding: 0 60px; gap: 60px; }
  .pduo .rapt__head > div { flex: 1 1 auto; }
  .pduo .rapt__head .lead { flex: 0 1 400px; }
}

/* ---------- Menu du haut : jamais sur deux lignes (1181 px et plus) ---------- */
@media (min-width: 1181px) { .header__nav a:not(.btn) { white-space: nowrap; } }

/* ---------- 1181 à 1279 px : plus de bouton « Contactez-nous » dans l'en-tête (place pour le menu, calé à droite) ;
   le contact passe par le bouton rond en bas à droite, comme sur tablette et mobile ---------- */
@media (min-width: 1181px) and (max-width: 1279px) {
  .header__cta { display: none; }
  .header__inner { padding-right: 48px; } /* menu à la même distance du bord droit que du bandeau bleu (≈ 50 px), aussi en sticky */
  .fab-call { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(to bottom left, rgba(120, 166, 212, .9), rgba(58, 88, 114, .9)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--papier); box-shadow: inset -1px 1px 2px rgba(238, 244, 252, .5), inset 1px -1px 2px rgba(29, 46, 62, .3), 0 10px 28px rgba(18, 30, 43, .1), 0 2px 6px rgba(18, 30, 43, .25); cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
  .is-scrolled .fab-call { opacity: 1; transform: none; pointer-events: auto; }
  .is-scrolled.is-menu-open .fab-call { opacity: 0; transform: translateY(12px); pointer-events: none; }
}

/* ---------- Légendes des photos de Montbard (accueil et page Montbard), 761 à 1399 px : carte réduite
   (en dessous de 761 px, les réglages mobile existants s'appliquent déjà) ---------- */
@media (min-width: 761px) and (max-width: 1399px) {
  .hero__card, .montbard__card { padding: 14px 18px; }
  .hero__card { left: 24px; bottom: 24px; }
  .montbard__cap { gap: 6px; }
  .montbard__cap-title { font-size: 26px; letter-spacing: .02em; }
  .montbard__credit { font-size: 12px; }
}

/* ---------- 1280 à 1399 px : en-tête plus aéré (logo un peu plus petit, bouton « Contactez-nous » moins large) ---------- */
@media (min-width: 1280px) and (max-width: 1399px) {
  .header__logo img { width: 195px; }
  .header__cta { padding-left: 24px; padding-right: 24px; }
}

/* ==================================================================
   1181 à 1279 px (notebook étroit) — proportions revues, sans toucher au mobile
================================================================== */
@media (min-width: 1181px) and (max-width: 1279px) {
  /* Accueil · « Ici, vous êtes chez vous » : cartes moins larges, colonne de texte plus large */
  .pourqui__cols { gap: 48px; }
  .pourqui__text { flex: 1 1 auto; width: auto; min-width: 0; }
  .pourqui__cards { flex: none; gap: 24px; }
  .pourqui__card { width: 320px; }
  .pourqui__card-text { left: 24px; right: 24px; bottom: 24px; }
  .pourqui__card-title { font-size: 32px; }
  .pourqui__card .link { font-size: 17px; }
  /* Accueil · « L'essentiel » : titre souple, paragraphe plus large */
  .piliers__head { gap: 60px; }
  .piliers__head > div { flex: 1 1 auto; }
  .piliers__head .title-lg { width: auto; }
  .piliers__head .lead { flex: 0 0 360px; width: auto; margin-left: 0; }
  /* Accueil · Les appartements : images plus petites, liste plus large */
  .apts__stage { width: 480px; }
  .apts__list { flex: 1 1 auto; width: auto; min-width: 0; }
  /* Accueil · Vivre à Montbard : dégradé plus sombre plus tôt, sous le texte */
  .montbard__frame::after { background: linear-gradient(90deg, rgba(35, 33, 34, .15) 0%, rgba(35, 33, 34, .4) 22%, rgba(35, 33, 34, .92) 40%, var(--nuit) 100%); }

  /* Résidence · « Un bâtiment chargé d'histoire » : colonnes plus larges, texte aligné à gauche (plus de trous entre les mots) */
  .rabout { column-gap: 48px; }
  .rabout__p { text-align: left; }
  /* Résidence · « Votre appartement » : titre souple, paragraphe plus large */
  .racc .rapt__head { gap: 60px; }
  .racc .rapt__head > div { flex: 1 1 auto; }
  .racc .rapt__head .lead { flex: 0 1 380px; }
  /* Résidence · « Les petits détails » : sans retrait à gauche, le titre garde toute sa colonne */
  .rplus__title { padding-left: 0; }
  /* Résidence · La salle commune : cartes plus larges (moins hautes et étroites), moins de vide au milieu */
  .rcmc__wrap { grid-template-columns: 1fr 1.1fr; gap: 56px; }
  .rcmd__card { height: 420px; }
  .rcmd__txt { left: 32px; right: 32px; bottom: 28px; }
  .rcmd__txt h3 { font-size: 34px; }
  /* Tarifs · Ce qui est compris : cartes plus larges, colonne de titre plus étroite */
  .tvc__cards { grid-template-columns: .8fr 1fr 1fr; gap: 40px; }
  .tvc__card { padding: 32px; }
  .tvc__card h3 { font-size: 30px; }
  /* Tarifs · Les services à la carte : photo moins large, texte plus large */
  .toc__wrap { grid-template-columns: 1fr 2fr; gap: 60px; }
  .tvc__links .link { font-size: 17px; }
  /* Tarifs · Comparer : colonne un peu plus large, les trois boutons tiennent sur une ligne */
  .tcomp__text { width: 74%; }
  /* Pour un parent · « Ce qui change » : une carte par ligne, photo à gauche, texte sur deux colonnes */
  .pduo__cols { grid-template-columns: 1fr; gap: 40px; }
  .pduo__card { grid-template-columns: 300px 1fr; }
  .pduo__body { padding: 40px 48px 32px; }
  .pduo__groups { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; }
  /* Pour un parent · « Une résidence, pas un Ehpad » : tableau plus large, colonnes de réponses lisibles */
  .pfe__cols { grid-template-columns: 1fr 2.3fr; gap: 48px; }
  .pfe .pfit__row { grid-template-columns: 1.3fr 1fr 1fr; column-gap: 24px; padding-left: 24px; padding-right: 24px; }
  /* Montbard · onglets sur une ligne */
  .pnav a { gap: 12px; padding: 16px; font-size: 16px; letter-spacing: .5px; }
  /* Montbard · soins : 4 cartes, texte moins tassé */
  .msoin__grid { gap: 24px; }
  .msoin__txt { padding: 20px 8px 24px; }
  .msoin__txt h3 { font-size: 26px; }
  .msoin__txt p { font-size: 17px; }
  /* Montbard · promenade : titre souple, paragraphe à droite */
  .mwalk__head { gap: 60px; padding: 0 0 48px; }
  .mwalk__head > div { flex: 1 1 auto; }
  .mwalk__head .lead { flex: 0 1 380px; }
  .mdo__list li { padding: 0 24px; }
  .mdo__list h4 { font-size: 26px; }
  .mdo__list p { font-size: 17px; }
  .walk__text { left: 24px; right: 24px; bottom: 24px; }
  .walk__title { font-size: 32px; }
  /* Montbard · au cœur : frise moins serrée */
  .mcoeur__head { gap: 60px; padding: 0 0 48px; }
  .mcoeur__panel { padding: 60px 48px 64px; }
  .mcoeur__stops { grid-template-columns: .6fr repeat(4, 1fr); gap: 24px; }
  .mcoeur__time .num { font-size: 56px; }
  .mcoeur__place { font-size: 18px; }
}

/* ===== Tablette horizontale (1024–1180) : on garde les mises en page côte à côte quand la place le permet ===== */
@media (min-width: 1024px) and (max-width: 1180px) {
  /* Accueil · piliers : titre à gauche, paragraphe à droite */
  .piliers__head { flex-direction: row; align-items: flex-end; gap: 48px; }
  .piliers__head > div { flex: 1 1 auto; min-width: 0; }
  .piliers__head .title-lg { width: auto; }
  .piliers__head .lead { flex: 0 0 340px; width: auto; max-width: none; margin-left: 0; }
  /* Accueil · Montbard : photo à gauche, texte à droite */
  .montbard__frame { min-height: 720px; display: flex; }
  .montbard__frame::after { background: linear-gradient(90deg, rgba(35, 33, 34, .15) 0%, rgba(35, 33, 34, .4) 20%, rgba(35, 33, 34, .92) 42%, var(--nuit) 100%); }
  .montbard__wrap { padding-top: 96px; padding-bottom: 96px; }
  .montbard__text { width: 480px; }
  .tcomp__text { width: 72%; }
  .montbard__card { top: auto; bottom: 24px; left: 24px; }
  .montbard__dots { top: 24px; left: 24px; }
  .montbard__points { column-gap: 40px; }
  .montbard__points h3 { font-size: 24px; }
  .montbard__points p { font-size: 17px; }
  /* Accueil · appartements : visuel à gauche, liste à droite */
  .apts__cols { flex-direction: row; align-items: center; gap: 48px; }
  .apts__stage { width: 420px; }
  .apts__list { flex: 1 1 auto; width: auto; max-width: none; min-width: 0; }
  /* Accueil · prix : texte à gauche, ticket à droite */
  .prix__cols { flex-direction: row; align-items: center; gap: 48px; }
  .prix__text { flex: 1 1 auto; width: auto; max-width: none; }
  .prix__ticket { width: 460px; }
  /* Contact (toutes pages) : texte à gauche, carte à droite */
  .contact__cols { flex-direction: row; align-items: flex-end; gap: 48px; }
  .contact__text { flex: 1 1 auto; width: auto; max-width: none; }
  .contact__card { width: 440px; }
  /* Pied de page : trois colonnes */
  .footer__cols { grid-template-columns: minmax(0, 360px) auto auto; gap: 48px; }
  /* Pages intérieures · onglets sur une ligne */
  .pnav a { gap: 10px; padding: 12px; font-size: 15px; letter-spacing: .5px; }
  /* Résidence · texte non justifié (moins de césures) */
  .rabout__p { text-align: left; }
  .rpoints__list li { padding: 32px 32px; }
  /* Résidence · salle commune : cartes sur deux colonnes */
  .rcmd__list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .rcmd__card { height: 380px; }
  .rcmd__txt { left: 24px; right: 24px; bottom: 24px; }
  .rcmd__txt h3 { font-size: 30px; }
  .rcmd__txt > p:last-child { font-size: 16px; }
  /* Tarifs · services en option : photo à gauche, liste à droite */
  .toc__wrap { grid-template-columns: 1fr 2fr; gap: 48px; }
  .toc__img { min-height: 0; }
  .toc__grid { gap: 32px 40px; }
  .toc__grid h3 { font-size: 26px; }
  .toc__grid p { font-size: 17px; }
  /* Pour un parent · deux cartes : photo plus large, arguments sur deux colonnes */
  .pduo__card { grid-template-columns: 240px 1fr; }
  .pduo__body { padding: 32px 40px 24px; }
  .pduo__groups { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
  /* Montbard · promenades : trois cartes sur une ligne */
  .mwalk__cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .walk { aspect-ratio: auto; min-height: 400px; }
  .walk__text { left: 20px; right: 20px; bottom: 20px; }
  .walk__title { font-size: 28px; }
}

/* ===== Tablette verticale (761–1023) ===== */
@media (min-width: 761px) and (max-width: 1023px) {
  /* Accueil · intro : photos en haut, texte en dessous */
  .intro__cols { grid-template-columns: 1fr; gap: 48px; }
  .intro__imgs { grid-column: 1; aspect-ratio: 668 / 520; }
  .intro__text { grid-column: 1; max-width: 680px; }
  /* Piliers (accueil, pour un parent) : une ligne par pilier, photo à gauche */
  .piliers__cols { grid-template-columns: 1fr; gap: 48px; }
  .pilier:nth-child(n) { padding-top: 0; }
  .pilier { display: grid; grid-template-columns: 280px 1fr; grid-template-rows: 1fr auto auto 1fr; column-gap: 40px; }
  .pilier__img { grid-column: 1; grid-row: 1 / span 4; }
  .pilier > :not(.pilier__img) { grid-column: 2; }
  .pilier__num { grid-row: 2; top: 0; margin-top: 0; }
  .pilier .title-sm { grid-row: 2; margin-top: 50px; }
  .pilier .body { grid-row: 3; max-width: none; }
  .pilier__credit { grid-row: 4; align-self: start; }
  /* Résidence · trois points : l'un sous l'autre */
  .rpoints__list { grid-template-columns: 1fr; }
  .rpoints__list li { padding: 28px var(--pad); border-left: 0; border-top: 1px solid rgba(172, 72, 48, .25); }
  .rpoints__list li:first-child { border-top: 0; }
  .rpoints__in { max-width: 680px; }
  /* Montbard · promenade : titre puis paragraphe */
  .mwalk__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  /* Pages intérieures · onglets en 2 × 2 */
  .pnav { grid-template-columns: 1fr 1fr; }
  .pnav a { height: 60px; gap: 12px; padding: 12px; font-size: 15px; }
  .hero--nav { min-height: max(560px, calc(100vh - 120px)); min-height: max(560px, calc(100svh - 120px)); }
  .pnav a:nth-child(2n) { border-right: 0; }
  /* Résidence · texte non justifié */
  .rabout__p { text-align: left; }
  /* Résidence · loyer : contenu à l'intérieur du cadre photo */
  .rpxb__wrap { padding: 0 60px; }
  /* Montbard · promenades : la troisième carte prend toute la largeur */
  .mwalk__cards .walk:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
  /* Tarifs · loyer en détail : cartes moins rembourrées */
  .tvc__cards { gap: 24px; }
  .tvc__card { padding: 28px; }
  /* Tarifs · services : photo en bandeau au lieu d'un grand portrait */
  .toc__img { min-height: 0; aspect-ratio: 4 / 3; }
  .toc__img img { object-position: center 40%; }
  /* Tarifs · comparer : pas de grand vide au-dessus, texte plus large */
  .montbard.tcomp .montbard__wrap { padding-top: 96px; padding-bottom: 96px; }
  .tcomp__text { width: 80%; }
}

/* Résidence · « La Vie La Bella Montbardoise » (1024–1180) : paragraphes l'un sous l'autre, portrait à droite au niveau du texte */
@media (min-width: 1024px) and (max-width: 1180px) {
  .rabout { grid-template-columns: 1fr 360px; grid-template-rows: auto auto 1fr; gap: 24px 60px; }
  .rabout__head { grid-column: 1 / -1; margin-bottom: 16px; }
  .rabout__p { grid-column: 1; }
  .rabout__photo { grid-column: 2; grid-row: 2 / span 2; }
}

/* Contact (1024–1180) : « Par tél. » au lieu de « Par téléphone » pour que les deux boutons tiennent */
@media (min-width: 1024px) and (max-width: 1180px) {
  .reach__l:has(+ .reach__s) { display: none; }
  .reach__s { display: inline; }
}

/* Tablette verticale (761–1023) : blocs empilés, le texte est en haut → voile du haut vers le bas (comme en mobile) */
@media (min-width: 761px) and (max-width: 1023px) {
  .pourqui::after { background: linear-gradient(180deg, rgba(240, 234, 234, .94) 0%, rgba(240, 234, 234, .88) 35%, rgba(240, 234, 234, .6) 70%, rgba(240, 234, 234, .5) 100%); }
  .prix::after, .contact::after { background: linear-gradient(180deg, rgba(240, 234, 234, .94) 0%, rgba(240, 234, 234, .88) 40%, rgba(244, 237, 227, .6) 75%, rgba(244, 237, 227, .4) 100%); }
}
