/* La Conciergerie du Haut-Jura — identité « chalet chic du Haut-Jura »
   Fond ivoire, titres en serif, vert sapin pour l'action, cuivre du logo en touche rare. */

@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('../fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('../fonts/fraunces-latin-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('../fonts/fraunces-latin-ext-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ground: #faf8f4;          /* ivoire chaud */
  --surface: #f2eee6;
  --card: #ffffff;
  --ink: #222222;
  --muted: #666159;
  --line: #e5dfd3;
  --line-strong: #cfc7b8;
  --brand: #17624e;
  --brand-hover: #0e4335;
  --brand-soft: #cbe6d7;
  --forest: #0f2e25;          /* bandeaux vert sapin */
  --forest-2: #17392f;
  --on-forest: #f4efe6;
  --on-forest-muted: #b8c6bd;
  --copper: #8a4f26;
  --copper-light: #d6a173;

  --r-xl: 32px;
  --r-card: 22px;
  --r-media: 16px;
  --r-btn: 12px;
  --r-pill: 999px;
  --shadow-soft: 0 1px 2px rgba(31, 27, 20, 0.05), 0 8px 24px rgba(31, 27, 20, 0.06);
  --shadow-lift: 0 2px 6px rgba(31, 27, 20, 0.06), 0 18px 40px rgba(31, 27, 20, 0.12);
  --shadow-pop: 0 10px 40px rgba(15, 46, 37, 0.22);

  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --pad: clamp(1.25rem, 4.5vw, 4.5rem);
  --max: 1360px;
  --header-h: 5rem;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.75rem 1rem; border-radius: var(--r-btn); background: var(--ink); color: #fff; }
.skip:focus { top: 1rem; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- typographie ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; color: var(--copper); font-size: 0.875rem; font-weight: 650; letter-spacing: 0.02em; }
.eyebrow::before { content: ''; width: 1.5rem; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow--light { color: var(--copper-light); }
h1, h2, .serif { font-family: var(--serif); font-weight: 500; font-optical-sizing: auto; }
h1 { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.25rem); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(1.875rem, 1.2rem + 2vw, 2.875rem); line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
h3 { font-size: 1.0625rem; line-height: 1.35; font-weight: 650; }
.lede { margin-top: 1rem; max-width: 40rem; font-size: 1.0625rem; color: var(--muted); }

.todo { background: none; color: var(--copper); font-size: 0.8125rem; font-weight: 600; padding: 0.05rem 0.45rem; border: 1px dashed var(--copper); border-radius: 6px; white-space: nowrap; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 3.125rem; padding: 0 1.5rem; border: 0; border-radius: var(--r-btn); font-weight: 650; font-size: 0.9875rem; text-decoration: none; white-space: nowrap; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.12s var(--ease), box-shadow 0.25s var(--ease); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; stroke-width: 2.2; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(23, 98, 78, 0.22); }
.btn--primary:hover { background: var(--brand-hover); box-shadow: 0 8px 22px rgba(14, 67, 53, 0.28); }
.btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--light { background: var(--on-forest); color: var(--forest); }
.btn--light:hover { background: #fff; }
.btn--ghost-light { background: transparent; color: var(--on-forest); box-shadow: inset 0 0 0 1.5px rgba(244, 239, 230, 0.5); }
.btn--ghost-light:hover { background: rgba(244, 239, 230, 0.1); box-shadow: inset 0 0 0 1.5px var(--on-forest); }
.btn--sm { min-height: 2.75rem; padding: 0 1.15rem; font-size: 0.9375rem; }
.btn--block { width: 100%; white-space: normal; text-align: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 650; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 0.1rem; }
.link-arrow::after { content: '→'; transition: transform 0.2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- en-tête ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 244, 0.97); transition: box-shadow 0.3s var(--ease), background-color 0.3s; }
.header.is-compact { box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(31, 27, 20, 0.05); }
.header__inner { display: flex; align-items: center; gap: 2rem; height: var(--header-h); transition: height 0.3s var(--ease); }
.header.is-compact .header__inner { height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; flex: none; }
.brand__logo { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); transition: width 0.3s var(--ease), height 0.3s var(--ease); }
.header.is-compact .brand__logo { width: 40px; height: 40px; }
.brand__name { display: flex; flex-direction: column; line-height: 1.1; }
.brand__t { font-family: var(--serif); font-size: 1.1875rem; font-weight: 550; letter-spacing: -0.01em; }
.brand__s { font-size: 0.8125rem; color: var(--muted); font-weight: 550; letter-spacing: 0.04em; }

.nav { display: flex; gap: 0.25rem; margin-inline: auto; }
.nav a { position: relative; padding: 0.55rem 0.85rem; white-space: nowrap; font-size: 0.9375rem; font-weight: 550; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav a::after { content: ''; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.25rem; height: 1.5px; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.header__owner { font-size: 0.9375rem; font-weight: 600; text-decoration: none; padding: 0.5rem 0.25rem; white-space: nowrap; }
@media (max-width: 1320px) { .header__owner { display: none; } }
.header__owner:hover { color: var(--brand); }

/* bouton menu : trois traits qui deviennent une croix */
.burger { position: relative; display: grid; place-items: center; width: 2.875rem; height: 2.875rem; border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--card); transition: border-color 0.2s, background-color 0.2s, transform 0.15s var(--ease); }
.burger:hover { border-color: var(--ink); }
.burger:active { transform: scale(0.94); }
.burger span { position: absolute; left: 50%; width: 18px; height: 1.8px; margin-left: -9px; border-radius: 2px; background: var(--ink); transition: transform 0.35s var(--ease-out), opacity 0.2s var(--ease), top 0.35s var(--ease-out); }
.burger span:nth-child(1) { top: calc(50% - 6px); }
.burger span:nth-child(2) { top: calc(50% - 0.9px); }
.burger span:nth-child(3) { top: calc(50% + 4.2px); }
.burger[aria-expanded='true'] { background: var(--ink); border-color: var(--ink); }
.burger[aria-expanded='true'] span { background: #fff; }
.burger[aria-expanded='true'] span:nth-child(1) { top: calc(50% - 0.9px); transform: rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.burger[aria-expanded='true'] span:nth-child(3) { top: calc(50% - 0.9px); transform: rotate(-45deg); }

.menu { position: absolute; right: var(--pad); top: calc(100% + 0.5rem); width: min(22rem, calc(100vw - 2rem)); padding: 0.75rem; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-pop); transform-origin: top right; }
.menu.is-open { animation: menu-in 0.32s var(--ease-out); }
.menu.is-closing { animation: menu-out 0.18s var(--ease) forwards; }
.menu__links a { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1rem; border-radius: var(--r-btn); font-weight: 600; text-decoration: none; transition: background-color 0.2s; }
.menu__links a::after { content: '→'; color: var(--muted); opacity: 0; transform: translateX(-6px); transition: opacity 0.2s, transform 0.25s var(--ease-out); }
.menu__links a:hover { background: var(--surface); }
.menu__links a:hover::after { opacity: 1; transform: none; }
.menu__foot { display: grid; gap: 0.5rem; margin-top: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.menu__foot .btn { width: 100%; }
.menu__phone { display: block; padding: 0.4rem 1rem; color: var(--muted); font-size: 0.9375rem; text-decoration: none; }
.menu.is-open .menu__links a { animation: menu-link 0.4s var(--ease-out) both; }
.menu.is-open .menu__links a:nth-child(2) { animation-delay: 25ms; }
.menu.is-open .menu__links a:nth-child(3) { animation-delay: 50ms; }
.menu.is-open .menu__links a:nth-child(4) { animation-delay: 75ms; }
.menu.is-open .menu__links a:nth-child(5) { animation-delay: 100ms; }
.menu.is-open .menu__links a:nth-child(6) { animation-delay: 125ms; }
.menu.is-open .menu__links a:nth-child(7) { animation-delay: 150ms; }
.menu.is-open .menu__links a:nth-child(8) { animation-delay: 175ms; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes menu-out { to { opacity: 0; transform: translateY(-6px) scale(0.97); } }
@keyframes menu-link { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .menu.is-open, .menu.is-closing, .menu.is-open .menu__links a { animation: none; } }

/* ---------- listes déroulantes sur mesure ---------- */
.select { position: relative; }
.select__native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.select__btn { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; width: 100%; min-height: 1.6rem; padding: 0; border: 0; background: none; text-align: left; font-size: 1rem; color: var(--ink); cursor: pointer; }
.select__btn[data-empty] .select__value { color: var(--muted); }
.select__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select__btn svg { flex: none; width: 16px; height: 16px; stroke-width: 2; color: var(--muted); transition: transform 0.25s var(--ease-out); }
.select.is-open .select__btn svg { transform: rotate(180deg); }
.select__list { position: absolute; left: -0.75rem; top: calc(100% + 0.6rem); width: max-content; min-width: calc(100% + 1.5rem); max-width: min(21rem, calc(100vw - 2rem)); z-index: 60; max-height: 18rem; overflow-y: auto; padding: 0.4rem; border-radius: var(--r-media); background: var(--card); box-shadow: var(--shadow-pop); overscroll-behavior: contain; transform-origin: top center; animation: list-in 0.22s var(--ease-out); }
.select.is-up .select__list { top: auto; bottom: calc(100% + 0.6rem); transform-origin: bottom center; }
.field .select__btn:focus-visible { outline: none; }
.select__option { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.7rem 0.85rem; border-radius: 10px; font-size: 1rem; cursor: pointer; transition: background-color 0.15s; }
.select__option[data-placeholder] { color: var(--muted); }
.select__option.is-active { background: var(--surface); }
.select__option[aria-selected='true'] { font-weight: 650; color: var(--brand-hover); }
.select__option[aria-selected='true']::after { content: ''; width: 0.5rem; height: 0.85rem; margin-right: 0.2rem; border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
@keyframes list-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .select__list { animation: none; } }

/* ---------- champs ---------- */
.field { position: relative; display: flex; flex-direction: column; gap: 0.2rem; padding: 0.65rem 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-btn); background: var(--card); transition: border-color 0.2s, box-shadow 0.2s; }
.field:focus-within, .field.is-open { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23, 98, 78, 0.12); }
.field > span:first-child { font-size: 0.75rem; font-weight: 650; color: var(--muted); letter-spacing: 0.01em; }
.field input, .field textarea, .field select { width: 100%; padding: 0; border: 0; background: transparent; font-size: 1rem; outline: none; appearance: none; -webkit-appearance: none; }
.field textarea { resize: vertical; min-height: 5rem; }
.field:has(:user-invalid) { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.1); }

/* ---------- héros ---------- */
.hero { --hero-gap: clamp(8px, 0.8vw, 14px); --p: 0; position: relative; padding-top: 0.5rem; padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.hero__panel { --inset: max(calc(var(--pad) - var(--hero-gap)), calc((100% - var(--max)) / 2 + var(--pad))); position: relative; height: clamp(34rem, 82svh, 50rem); margin-inline: var(--hero-gap); border-radius: calc(var(--r-xl) + var(--p) * 12px); overflow: hidden; background: var(--forest); isolation: isolate; transform: scale(calc(1 - var(--p) * 0.045)); transform-origin: 50% 0; }
.hero__slide { position: absolute; inset: -12% 0 0; opacity: 0; transform: translate3d(0, calc(var(--p) * 10%), 0); transition: opacity 1.4s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .hero__slide.is-active img { animation: kenburns 9s var(--ease) both; }
}
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero__slide { inset: 0; } }
.hero__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10, 30, 24, 0.72) 0%, rgba(10, 30, 24, 0.45) 42%, rgba(10, 30, 24, 0) 72%), linear-gradient(0deg, rgba(10, 30, 24, 0.55) 0%, rgba(10, 30, 24, 0) 40%); }
.hero__content { position: absolute; z-index: 2; left: var(--inset); top: clamp(2.5rem, 7vh, 4.5rem); max-width: 40rem; color: #fff; transform: translate3d(0, calc(var(--p) * -48px), 0); opacity: calc(1 - var(--p) * 0.85); }
.hero__content h1 { color: #fff; }
.hero__lede { margin-top: 1.25rem; max-width: 34rem; font-size: 1.125rem; line-height: 1.55; color: rgba(255, 255, 255, 0.88); }
.hero__ready { position: absolute; z-index: 2; right: var(--inset); top: clamp(1.25rem, 3vw, 2.5rem); transform: translate3d(0, calc(var(--p) * -28px), 0); display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 1.1rem 0.8rem 0.8rem; border-radius: var(--r-media); background: rgba(255, 255, 255, 0.95); box-shadow: var(--shadow-lift); font-size: 0.875rem; line-height: 1.35; }
.hero__ready strong { display: block; font-weight: 650; }
.hero__ready small { color: var(--muted); font-size: 0.8125rem; }
.check { display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.check svg { width: 18px; height: 18px; stroke-width: 2.5; }
.hero__foot { position: absolute; z-index: 2; right: var(--inset); bottom: 5.75rem; display: flex; align-items: center; gap: 1rem; color: rgba(255, 255, 255, 0.85); font-size: 0.8125rem; }
.hero__dots { display: flex; gap: 0.4rem; }
.hero__dots button { position: relative; width: 2.25rem; height: 0.25rem; padding: 0; border: 0; border-radius: 2px; background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.hero__dots button::after { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__dots button.is-active::after { transform: scaleX(1); transition: transform 6s linear; }
.hero__dots button::before { content: ''; position: absolute; inset: -0.75rem -0.1rem; }
@media (prefers-reduced-motion: reduce) { .hero__dots button.is-active::after { transition: none; } }

/* le module d'estimation, posé à cheval sur la photo */
.estimate-card { position: relative; z-index: 3; width: min(62rem, 100%); margin: -4.25rem 0 0; padding: 1.25rem; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-lift); }
.estimate-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0.25rem 0.9rem; }
.estimate-card__title { font-family: var(--serif); font-size: 1.25rem; font-weight: 550; }
.estimate-card__hint { color: var(--muted); font-size: 0.875rem; }
.estimate-card__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 0.75rem; align-items: stretch; }
.estimate-card .btn { min-height: 100%; padding: 0 1.75rem; }
.hero__links { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin: 1.5rem 0 0; font-size: 0.9375rem; }
.hero__links .muted { color: var(--muted); }

/* ---------- chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat { padding: 1.5rem 1.5rem 1.4rem; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem); font-weight: 500; line-height: 1; letter-spacing: -0.02em; color: var(--brand-hover); }
.stat span { display: block; margin-top: 0.55rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.4; }
.towns { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1.25rem; }
.towns__label { margin-right: 0.5rem; color: var(--muted); font-size: 0.875rem; font-weight: 600; }
.towns a { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.25rem; padding: 0.4rem 0.9rem; border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-size: 0.875rem; font-weight: 550; text-decoration: none; transition: background-color 0.2s, color 0.2s, transform 0.15s var(--ease); }
.towns a::after { content: '→'; color: var(--muted); font-size: 0.8125rem; transition: transform 0.2s var(--ease), color 0.2s; }
.towns a:hover { background: var(--forest); color: #fff; }
.towns a:hover::after { color: var(--copper-light); transform: translateX(2px); }
.towns a:active { transform: scale(0.97); }

/* le mot-clé du titre principal, posé au-dessus comme sur-titre */
.hero__kicker { display: flex; margin-bottom: 1rem; font-family: var(--sans); font-size: 0.875rem; line-height: 1.4; letter-spacing: 0.02em; text-wrap: wrap; }

/* ---------- pages par commune ---------- */
.breadcrumb { padding-top: clamp(1rem, 3vw, 2rem); font-size: 0.875rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; color: var(--muted); }
.breadcrumb li + li::before { content: '›'; margin-right: 0.4rem; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--ink); }
.commune-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(1rem, 3vw, 2rem); }
.commune-hero .lede { max-width: 36rem; }
.commune-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 1.75rem; }
.commune-hero__call { margin-top: 1.25rem; color: var(--muted); font-size: 0.9375rem; }
.commune-hero__call a { color: var(--ink); font-weight: 650; }
.commune-hero__media { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-lift); }
.commune-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.commune-hero__media figcaption, .commune-extra figcaption { position: absolute; left: 0.9rem; bottom: 0.9rem; padding: 0.35rem 0.8rem; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.94); font-size: 0.8125rem; font-weight: 650; }
.commune-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.commune-intro__text > p:not(.eyebrow) { margin-top: 1rem; color: var(--muted); font-size: 1.0625rem; }
.commune-extra { position: relative; margin-top: 1.75rem; overflow: hidden; border-radius: var(--r-card); background: var(--surface); }
.commune-extra img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.commune-why__title { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); }
.commune-why { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.commune-why li { padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); }
.commune-why h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 550; }
.commune-why p { margin-top: 0.35rem; color: var(--muted); }
.commune-svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem 2rem; }
.commune-svc li { padding-top: 1rem; border-top: 1px solid rgba(244, 239, 230, 0.18); }
.commune-svc h3 { color: #fff; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.commune-svc p { margin-top: 0.4rem; color: var(--on-forest-muted); font-size: 0.9375rem; }
.commune-others h2 { max-width: 40rem; }
.others { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.others a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; padding: 0 1.1rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); background: var(--card); color: var(--ink); font-weight: 600; text-decoration: none; transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.others a::after { content: '→'; color: var(--muted); }
.others a:hover { border-color: var(--forest); background: var(--forest); color: #fff; }
.others a:hover::after { color: var(--copper-light); }
@media (max-width: 960px) {
  .commune-hero__grid, .commune-intro { grid-template-columns: minmax(0, 1fr); }
  .commune-svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 743px) {
  .commune-svc { grid-template-columns: minmax(0, 1fr); }
  .commune-hero__media { border-radius: var(--r-card); }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; max-width: none; }
.section__head--row > div { max-width: 46rem; }

/* bandeau vert sapin, avec les courbes de niveau du Jura en filigrane */
.band { position: relative; color: var(--on-forest); background-color: var(--forest); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300' viewBox='0 0 600 300'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1.2'%3E%3Cpath d='M0 220 C80 180 140 200 210 170 S330 90 420 110 S540 170 600 140'/%3E%3Cpath d='M0 245 C90 205 150 225 220 195 S340 115 430 135 S550 195 600 165'/%3E%3Cpath d='M0 270 C100 230 160 250 230 220 S350 140 440 160 S560 220 600 190'/%3E%3Cpath d='M0 195 C70 155 130 175 200 145 S320 65 410 85 S530 145 600 115'/%3E%3Cpath d='M0 170 C60 130 120 150 190 120 S310 40 400 60 S520 120 600 90'/%3E%3C/g%3E%3C/svg%3E"); background-size: 600px 300px; }
.band h2 { color: #fff; }
.band .lede { color: var(--on-forest-muted); }
.band--rounded { margin-inline: auto; width: calc(100% - 2 * clamp(0.75rem, 2vw, 1.5rem)); max-width: calc(var(--max) + 4rem); border-radius: var(--r-xl); }

/* ---------- cartes de services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.card { display: flex; flex-direction: column; padding: 0.75rem 0.75rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.3s; }
.card__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-media); overflow: hidden; background: var(--surface); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.card__media--logo { display: grid; place-items: center; }
.card__media--logo img { width: auto; height: 76%; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(15, 46, 37, 0.2)); }
.card h3 { margin: 1.1rem 0.6rem 0; font-family: var(--serif); font-size: 1.3125rem; font-weight: 550; letter-spacing: -0.01em; }
.card p { margin: 0.45rem 0.6rem 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }
.badge { position: absolute; left: 0.75rem; top: 0.75rem; padding: 0.35rem 0.75rem; border-radius: var(--r-pill); background: var(--forest); color: var(--on-forest); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.02em; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: transparent; }
  .card:hover .card__media img { transform: scale(1.05); }
}

/* le livret d'accueil digital */
.livret { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.75rem, 4vw, 3.5rem); border-radius: var(--r-xl); background: var(--surface); overflow: hidden; }

/* téléphone dessiné : cadre titane, Dynamic Island, reflet du verre, légère perspective */
.device { --w: 15rem; --bezel: calc(3px + var(--w) * 0.028); --radius: calc(var(--w) * 0.168); position: relative; justify-self: center; width: var(--w); margin: 0.5rem 0 2rem; perspective: 1600px; }
.device__body { position: relative; aspect-ratio: 72 / 150; border-radius: var(--radius); background: linear-gradient(145deg, #d3d0ca 0%, #77746f 12%, #3a3936 30%, #96938d 50%, #33322f 70%, #7d7a74 87%, #cbc8c2 100%); box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.45), inset 0 -1px 1px rgba(0, 0, 0, 0.45), 0 44px 70px -26px rgba(15, 30, 24, 0.55), 0 20px 30px -20px rgba(0, 0, 0, 0.45); transform: rotateY(-16deg) rotateX(5deg) rotateZ(-2deg); transform-style: preserve-3d; transition: transform 0.9s var(--ease-out); }
.device__body::before { content: ''; position: absolute; inset: 3px; border-radius: calc(var(--radius) - 3px); background: #0a0a0b; }
.device--right .device__body { transform: rotateY(16deg) rotateX(5deg) rotateZ(2deg); }
.device__btn { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #3e3d3a, #b3b0aa 55%, #4c4b48); }
.device__btn--action { left: -2.5px; top: 17%; height: 4.5%; }
.device__btn--up { left: -2.5px; top: 25%; height: 8.5%; }
.device__btn--down { left: -2.5px; top: 35.5%; height: 8.5%; }
.device__btn--power { right: -2.5px; top: 28%; height: 13%; }
.device__btn--camera { right: -2.5px; top: 62%; height: 6%; }
.device__screen { position: absolute; inset: var(--bezel); overflow: hidden; border-radius: calc(var(--radius) - var(--bezel)); background: #fff; }
.device__screen picture, .device__screen img { display: block; width: 100%; }
.device__island { position: absolute; z-index: 3; top: calc(var(--w) * 0.032); left: 50%; width: 30%; height: calc(var(--w) * 0.088); border-radius: 999px; background: #000; transform: translateX(-50%); }
.device__status { position: absolute; z-index: 2; top: calc(var(--w) * 0.05); left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 calc(var(--w) * 0.09) 0 calc(var(--w) * 0.11); color: #111; font: 650 calc(var(--w) * 0.05) / 1 var(--sans); letter-spacing: 0.01em; }
.device__status svg { width: calc(var(--w) * 0.2); height: auto; fill: currentColor; stroke: none; }
.device__home { position: absolute; z-index: 2; bottom: calc(var(--w) * 0.024); left: 50%; width: 36%; height: calc(var(--w) * 0.014); border-radius: 999px; background: #111; opacity: 0.85; transform: translateX(-50%); }
.device__glare { position: absolute; inset: 0; z-index: 4; border-radius: inherit; background: linear-gradient(115deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.07) 26%, rgba(255, 255, 255, 0) 40%); pointer-events: none; }
.device__floor { position: absolute; left: 12%; right: 12%; bottom: -1.6rem; height: 1.4rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(15, 30, 24, 0.32), transparent); filter: blur(5px); }
@media (hover: hover) {
  .livret:hover .device__body { transform: rotateY(-7deg) rotateX(2deg) rotateZ(-1deg) translateY(-6px); }
  .appli:hover .device__body { transform: rotateY(7deg) rotateX(2deg) rotateZ(1deg) translateY(-6px); }
}

/* écran de l'application (thème sombre de app.conciergeriehautjura.fr) */
.device__screen--app { background: #0f1110; color: #eceeed; }
.device__screen--app .device__status { color: #f2f2f2; }
.device__screen--app .device__home { background: #f2f2f2; }
.appui { padding: calc(var(--w) * 0.2) calc(var(--w) * 0.07) 0; font-family: var(--sans); }
.appui__brand { color: #9aa29f; font-size: calc(var(--w) * 0.036); font-weight: 650; letter-spacing: 0.12em; }
.appui__title { margin-top: calc(var(--w) * 0.03); font-size: calc(var(--w) * 0.088); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.appui__lede { margin-top: calc(var(--w) * 0.025); color: #a9b0ad; font-size: calc(var(--w) * 0.042); line-height: 1.35; }
.appui__cards { display: grid; gap: calc(var(--w) * 0.03); margin-top: calc(var(--w) * 0.06); }
.appui__card { padding: calc(var(--w) * 0.04) calc(var(--w) * 0.045); border: 1px solid #262a28; border-radius: calc(var(--w) * 0.045); background: #171a19; }
.appui__card b { display: block; font-size: calc(var(--w) * 0.048); font-weight: 750; }
.appui__card span { display: block; margin-top: calc(var(--w) * 0.012); color: #98a09d; font-size: calc(var(--w) * 0.038); }
.appui__card--accent { border-color: transparent; background: #86c49f; color: #0c1f15; }
.appui__card--accent span { color: #1d4630; }
.appui__tabs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: calc(var(--w) * 0.035) 0 calc(var(--w) * 0.07); border-top: 1px solid #222624; background: #121413; color: #8d9592; font-size: calc(var(--w) * 0.034); font-weight: 650; }
.appui__tabs .is-on { color: #86c49f; }

/* l'application de gestion */
.appli { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-top: 1.25rem; padding: clamp(1.75rem, 4vw, 3.5rem); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--card); overflow: hidden; }
.appli h3 { font-family: var(--serif); font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; }
.appli > div > p { margin-top: 0.85rem; color: var(--muted); }
.appli__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; margin: 1.5rem 0; }
.appli__cols h4 { margin-bottom: 0.6rem; color: var(--copper); font-size: 0.875rem; font-weight: 650; letter-spacing: 0.02em; }
.appli__cols ul { display: grid; gap: 0.5rem; }
.appli__cols li { position: relative; padding-left: 1.6rem; font-size: 0.9375rem; }
.appli__cols li::before { content: ''; position: absolute; left: 0.2rem; top: 0.35rem; width: 0.45rem; height: 0.8rem; border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.appli__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.appli__url { color: var(--muted); font-size: 0.875rem; }
@media (prefers-reduced-motion: reduce) { .device__body, .device--right .device__body { transform: none; transition: none; } }
.livret h3 { font-family: var(--serif); font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; }
.livret p { margin-top: 0.85rem; color: var(--muted); }
.livret__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.5rem; margin: 1.25rem 0; }
.livret__list li { position: relative; padding-left: 1.6rem; font-size: 0.9375rem; }
.livret__list li::before { content: ''; position: absolute; left: 0.2rem; top: 0.35rem; width: 0.45rem; height: 0.8rem; border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.livret__prices { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }
.livret__prices span { padding: 0.65rem 1rem; border-radius: var(--r-btn); background: var(--card); font-size: 0.9375rem; }
.livret__prices b { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--brand-hover); }

/* ---------- comment ça marche ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.step__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-media); overflow: hidden; }
.step__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.step:hover .step__media img { transform: scale(1.04); }
.step__num { display: block; margin: 1.25rem 0 0.35rem; font-family: var(--serif); font-size: 2.25rem; font-weight: 400; line-height: 1; color: var(--copper-light); }
.step h3 { font-family: var(--serif); font-size: 1.375rem; font-weight: 500; color: #fff; }
.step p { margin-top: 0.5rem; color: var(--on-forest-muted); font-size: 0.9375rem; }
.band__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 2rem; border-top: 1px solid rgba(244, 239, 230, 0.15); }
.band__cta p { color: var(--on-forest-muted); }
.band__cta strong { color: #fff; font-weight: 650; }

/* ---------- qui sommes-nous ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about__text p { margin-top: 1rem; color: var(--muted); }
.team { display: grid; gap: 0.75rem; margin: 1.75rem 0; }
.team li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; padding: 0.9rem 1rem; border-radius: var(--r-media); background: var(--card); border: 1px solid var(--line); }
.team__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.team__icon svg { width: 20px; height: 20px; }
.team strong { display: block; font-weight: 650; }
.team span { color: var(--muted); font-size: 0.9375rem; }
.quote { margin-top: 0.5rem; font-family: var(--serif); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); font-style: italic; font-weight: 400; color: var(--copper); }
.about__art { position: relative; aspect-ratio: 5 / 6; }
.about__art figure { position: absolute; width: 64%; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-lift); background: var(--surface); }
.about__art figure:first-child { left: 0; top: 0; transform: rotate(-3deg); }
.about__art figure:last-child { right: 0; bottom: 0; transform: rotate(3deg); }
.about__art img { width: 100%; height: auto; }
.about__art figcaption { position: absolute; left: 0.75rem; bottom: 0.75rem; padding: 0.3rem 0.7rem; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.92); font-size: 0.8125rem; font-weight: 650; }

/* ---------- estimation ---------- */
.estimator { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; padding: clamp(1.5rem, 4vw, 3.5rem); border-radius: var(--r-xl); background: var(--surface); }
.estimator .lede { margin-bottom: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; padding: 0; border: 0; }
.chips legend { width: 100%; margin-bottom: 0.75rem; padding: 0; font-weight: 650; font-size: 0.9375rem; }
.chips label { position: relative; }
.chips input, .segmented input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.1rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-btn); background: var(--card); font-size: 0.9375rem; font-weight: 550; cursor: pointer; transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.1s; }
.chips span:hover { border-color: var(--ink); }
.chips label:active span { transform: scale(0.96); }
.chips input:checked + span { border-color: var(--forest); background: var(--forest); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.chips input.is-now + span::after { content: ''; width: 6px; height: 6px; margin-left: 0.5rem; border-radius: 50%; background: var(--brand); }
.chips input.is-now:checked + span::after { background: var(--copper-light); }
.estimator__result { position: sticky; top: calc(var(--header-h) + 1.5rem); padding: 1.75rem; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-soft); }
.estimator__label { color: var(--muted); font-size: 0.875rem; font-weight: 600; }
.estimator__price { margin-top: 0.25rem; font-family: var(--serif); font-size: clamp(3rem, 2rem + 3vw, 4.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: var(--brand-hover); font-variant-numeric: lining-nums; }
.estimator__price span { display: inline-block; }
.estimator__price span.is-changing { animation: price-pop 0.4s var(--ease-out); }
.estimator__for { margin-top: 0.75rem; font-weight: 600; }
.estimator__now { display: inline-flex; margin-top: 0.75rem; padding: 0.3rem 0.75rem; border-radius: var(--r-pill); background: var(--brand-soft); color: var(--brand-hover); font-size: 0.8125rem; font-weight: 650; }
.estimator__note { margin: 1rem 0 1.5rem; color: var(--muted); font-size: 0.875rem; }
.estimator__more { margin-top: 1.1rem; font-size: 0.9375rem; }
@keyframes price-pop { from { opacity: 0.3; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.grid-wrap { margin-top: 1.5rem; }
.grid-wrap summary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0; font-weight: 650; cursor: pointer; list-style: none; border-bottom: 1.5px solid currentColor; }
.grid-wrap summary::-webkit-details-marker { display: none; }
.grid-wrap summary::after { content: ''; width: 0.45rem; height: 0.45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.25s var(--ease); }
.grid-wrap[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.grid-scroll { margin-top: 1rem; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-media); background: var(--card); }
.grid-table { width: 100%; min-width: 44rem; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.grid-table th, .grid-table td { padding: 0.8rem 1rem; text-align: right; border-bottom: 1px solid var(--line); }
.grid-table thead th { font-weight: 650; background: var(--surface); }
.grid-table th span { display: block; color: var(--muted); font-size: 0.8125rem; font-weight: 500; }
.grid-table th:first-child { text-align: left; }
.grid-table tbody tr:last-child > * { border-bottom: 0; }
.grid-table tr.is-now { background: #eef6f1; }
.grid-note { margin-top: 0.75rem; color: var(--muted); font-size: 0.875rem; }

/* ---------- logements ---------- */
.cats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
.cat { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1.1rem 0 0.9rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); background: var(--card); font-size: 0.9375rem; font-weight: 600; color: var(--ink); transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.1s; }
.cat svg { width: 20px; height: 20px; stroke-width: 1.7; }
.cat:hover { border-color: var(--ink); }
.cat:active { transform: scale(0.96); }
.cat.is-active { background: var(--forest); border-color: var(--forest); color: #fff; }
.cat__count { min-width: 1.4rem; padding: 0 0.35rem; border-radius: var(--r-pill); background: var(--surface); color: var(--muted); font-size: 0.75rem; text-align: center; }
.cat.is-active .cat__count { background: rgba(255, 255, 255, 0.16); color: #fff; }

.homes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.home[hidden] { display: none; }
.home.is-entering { animation: home-in 0.45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes home-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.home__card { position: relative; height: 100%; display: flex; flex-direction: column; padding: 0.75rem; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.3s; }
@media (hover: hover) and (pointer: fine) { .home__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: transparent; } }
.home__body { position: relative; display: flex; flex: 1; flex-direction: column; padding: 1rem 0.5rem 0.4rem; }
.home__title { font-family: var(--serif); font-size: 1.3125rem; font-weight: 550; letter-spacing: -0.01em; line-height: 1.25; }
.home__title a { text-decoration: none; }
.home__title a::after { content: ''; position: absolute; inset: 0; }
.home__title a:focus-visible { outline: none; }
.home__title a:focus-visible::after { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-btn); }
.home__facts { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.7rem; color: var(--muted); font-size: 0.9rem; }
.home__facts span { display: inline-flex; align-items: center; gap: 0.35rem; }
.home__facts svg { width: 17px; height: 17px; stroke-width: 1.7; color: var(--copper); }
.home__cta { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: auto; padding-top: 1rem; font-weight: 650; font-size: 0.9375rem; color: var(--brand); }
.home__cta svg { width: 16px; height: 16px; stroke-width: 2.2; transition: transform 0.25s var(--ease-out); }
.home__card:hover .home__cta svg { transform: translate(2px, -2px); }
.home__town { position: absolute; left: 0.75rem; top: 0.75rem; z-index: 3; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.35rem 0.75rem 0.35rem 0.55rem; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.94); font-size: 0.8125rem; font-weight: 650; pointer-events: none; }
.home__town svg { width: 14px; height: 14px; stroke-width: 2; color: var(--copper); }
.homes__empty { padding: 2rem; border-radius: var(--r-card); background: var(--surface); color: var(--muted); text-align: center; }
.homes__more { display: flex; justify-content: center; margin-top: 2rem; }
.homes__note { margin-top: 1.5rem; color: var(--muted); font-size: 0.875rem; }

/* carrousel de photos (cartes de logement) */
.carousel { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-media); overflow: hidden; background: var(--surface); }
.carousel__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.carousel__slide { display: block; flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.home__card:hover .carousel__slide img { transform: scale(1.03); }
.carousel__nav { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 2.125rem; height: 2.125rem; margin-top: -1.0625rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.94); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); opacity: 0; transform: scale(0.9); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
.carousel__nav svg { width: 15px; height: 15px; stroke-width: 2.6; }
.carousel__nav--prev { left: 0.75rem; }
.carousel__nav--next { right: 0.75rem; }
.carousel:hover .carousel__nav, .carousel:focus-within .carousel__nav { opacity: 1; transform: none; }
.carousel__nav:hover { background: #fff; transform: scale(1.08) !important; }
.carousel__nav[disabled] { opacity: 0 !important; pointer-events: none; }
.carousel__dots { position: absolute; left: 50%; bottom: 0.75rem; z-index: 3; display: flex; gap: 0.35rem; transform: translateX(-50%); pointer-events: none; }
.carousel__dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.6); transition: background-color 0.2s, width 0.3s var(--ease-out); }
.carousel__dots span.is-active { width: 16px; border-radius: 3px; background: #fff; }

/* ---------- le Haut-Jura : bande de saisons ---------- */
.strip-nav { display: flex; gap: 0.5rem; flex: none; }
.strip-nav button { display: grid; place-items: center; width: 3rem; height: 3rem; border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--card); transition: border-color 0.2s, background-color 0.2s, opacity 0.2s; }
.strip-nav button:hover { border-color: var(--ink); }
.strip-nav button[disabled] { opacity: 0.35; pointer-events: none; }
.strip-nav svg { width: 18px; height: 18px; stroke-width: 2.2; }
.strip { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); padding: 0 var(--pad) 0.5rem; margin-inline: calc(var(--pad) * -1); scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.scard { position: relative; flex: 0 0 clamp(16rem, 26vw, 22rem); aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: var(--r-card); overflow: hidden; background: var(--surface); scroll-snap-align: start; cursor: zoom-in; text-align: left; }
.scard picture, .scard img { width: 100%; height: 100%; }
.scard img { object-fit: cover; transition: transform 0.8s var(--ease-out); }
.scard:hover img { transform: scale(1.05); }
.scard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 30, 24, 0.78) 0%, rgba(10, 30, 24, 0) 55%); }
.scard__cap { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1.1rem; z-index: 1; color: #fff; }
.scard__cap small { display: inline-block; margin-bottom: 0.4rem; padding: 0.2rem 0.6rem; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.18); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.02em; }
.scard__cap strong { display: block; font-family: var(--serif); font-size: 1.375rem; font-weight: 500; line-height: 1.2; }
.seasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.seasons li { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; align-items: start; }
.seasons svg { grid-row: span 2; width: 30px; height: 30px; stroke-width: 1.5; color: var(--copper); margin-top: 0.15rem; }
.seasons h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 550; }
.seasons p { color: var(--muted); font-size: 0.9375rem; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; margin-top: 1.5rem; }
.gallery__item img { width: 100%; height: auto; border-radius: var(--r-media); }
.gallery__item figcaption { margin-top: 0.6rem; font-weight: 650; font-size: 0.9375rem; }
.gallery__item small { display: block; margin-top: 0.15rem; color: var(--muted); font-weight: 400; font-size: 0.8125rem; }

/* ---------- questions fréquentes ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.faq__intro a { color: var(--ink); font-weight: 650; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary { position: relative; display: block; padding: 1.35rem 3rem 1.35rem 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; cursor: pointer; list-style: none; transition: color 0.2s; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::before, .faq__list summary::after { content: ''; position: absolute; right: 0.5rem; top: 50%; width: 14px; height: 1.8px; border-radius: 2px; background: currentColor; transition: transform 0.3s var(--ease-out); }
.faq__list summary::after { transform: rotate(90deg); }
.faq__list details[open] summary::after { transform: rotate(0deg); }
.faq__list summary:hover { color: var(--brand); }
.faq__list details p { padding: 0 3rem 1.5rem 0; color: var(--muted); }
.faq__list details p a { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .faq__list details[open] p { animation: fade-down 0.35s var(--ease-out); } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- contact ---------- */
#contact { padding-bottom: 0; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; padding: clamp(2rem, 5vw, 4.5rem); }
.contact__list { display: grid; gap: 0.25rem; margin: 2rem 0; }
.contact__list a { display: flex; align-items: center; gap: 1rem; padding: 0.75rem; margin-inline: -0.75rem; border-radius: var(--r-media); text-decoration: none; transition: background-color 0.2s; }
.contact__list a:hover { background: rgba(244, 239, 230, 0.07); }
.contact__list strong { display: block; color: #fff; font-weight: 650; overflow-wrap: anywhere; }
.contact__list small { color: var(--on-forest-muted); font-size: 0.875rem; }
.contact__icon { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: rgba(244, 239, 230, 0.1); color: var(--copper-light); }
.contact__icon svg { width: 20px; height: 20px; }
.contact__card { padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: var(--r-card); background: var(--card); color: var(--ink); box-shadow: var(--shadow-pop); }
.contact__card h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 550; margin-bottom: 1.25rem; }

.form { display: grid; gap: 0.85rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.form__note { color: var(--muted); font-size: 0.8125rem; }
.form__note a { color: var(--ink); }
.form__status { padding: 0.85rem 1rem; border-radius: var(--r-btn); font-size: 0.9375rem; font-weight: 600; }
.form__status.is-ok { background: var(--brand-soft); color: var(--brand-hover); }
.form__status.is-error { background: #fbe9e7; color: #a12a1a; }
.form button[type='submit'][disabled] { opacity: 0.6; cursor: progress; }
.segmented { margin: 0 0 0.25rem; padding: 0; border: 0; }
.segmented legend { margin-bottom: 0.6rem; padding: 0; font-size: 0.875rem; font-weight: 650; }
.segmented__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.25rem; padding: 0.25rem; border-radius: var(--r-btn); background: var(--surface); }
.segmented label { position: relative; }
.segmented span { display: grid; place-items: center; min-height: 2.5rem; border-radius: 9px; font-size: 0.9375rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.segmented input:checked + span { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.segmented input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 1px; }

/* ---------- fenêtres et tiroirs ---------- */
.sheet { width: min(36rem, calc(100vw - 2rem)); max-height: min(52rem, calc(100svh - 3rem)); padding: 0; border: 0; border-radius: 26px; background: var(--card); color: var(--ink); box-shadow: 0 24px 64px rgba(15, 46, 37, 0.3); overflow: auto; overscroll-behavior: contain; }
.sheet::backdrop { background: rgba(15, 30, 24, 0.5); }
.sheet--wide { width: min(64rem, calc(100vw - 2rem)); }
.sheet__bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; padding: 1rem 1rem 0.25rem; background: var(--card); }
.sheet__close { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: var(--surface); transition: background-color 0.2s, transform 0.2s var(--ease-out); }
.sheet__close:hover { background: var(--line); transform: rotate(90deg); }
.sheet__close svg { width: 16px; height: 16px; stroke-width: 2.4; }
.sheet__body { padding: 0 1.75rem 1.75rem; }
.sheet__body h2 { font-size: 1.75rem; }
.sheet__lede { margin-top: 0.4rem; color: var(--muted); }
.sheet__fields { display: grid; gap: 0.75rem; margin: 1.5rem 0; }
.sheet .form { margin-top: 1.5rem; }
.lead__summary { margin-top: 1rem; padding: 0.85rem 1rem; border-radius: var(--r-btn); background: var(--brand-soft); color: var(--brand-hover); font-size: 0.9375rem; font-weight: 600; }
.estimate { margin-bottom: 1.5rem; }
.estimate__now { margin-bottom: 1rem; color: var(--muted); font-size: 0.9375rem; }
.estimate__group + .estimate__group { margin-top: 1.25rem; }
.estimate__group h3 { display: flex; justify-content: space-between; margin-bottom: 0.4rem; font-size: 0.9375rem; }
.estimate__group h3 span { color: var(--muted); font-weight: 500; font-size: 0.8125rem; }
.estimate li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0.75rem; margin-inline: -0.75rem; border-radius: var(--r-btn); }
.estimate li.is-now { background: var(--brand-soft); }
.estimate li small { display: block; color: var(--muted); font-size: 0.8125rem; }
.estimate li b { font-family: var(--serif); font-weight: 600; font-size: 1.125rem; font-variant-numeric: lining-nums; }
.estimate__empty { padding: 1rem; border-radius: var(--r-btn); background: var(--surface); color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheet-in 0.38s var(--ease-out); }
  .sheet[open]::backdrop { animation: fade-in 0.3s var(--ease); }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- pied de page ---------- */
.footer { margin-top: clamp(3rem, 6vw, 5rem); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: 0.9375rem; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 3fr); gap: 2.5rem; }
.footer__brand img { width: 64px; height: 64px; border-radius: 50%; }
.footer__brand p { margin-top: 1rem; color: var(--on-forest-muted); line-height: 1.5; }
.footer__brand strong { display: block; color: #fff; font-family: var(--serif); font-size: 1.375rem; font-weight: 500; }
.footer__brand em { display: block; margin-top: 0.4rem; font-family: var(--serif); font-size: 1.125rem; color: var(--copper-light); }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.footer__cols h2 { margin-bottom: 0.85rem; font-family: var(--sans); font-size: 0.875rem; font-weight: 650; color: #fff; letter-spacing: 0.02em; }
.footer__cols li { padding: 0.25rem 0; color: var(--on-forest-muted); }
.footer__cols a { color: var(--on-forest); text-decoration: none; overflow-wrap: anywhere; }
.footer__cols a:hover { color: #fff; text-decoration: underline; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(244, 239, 230, 0.14); color: var(--on-forest-muted); font-size: 0.875rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.footer__legal a, .footer__cookies { padding: 0.25rem 0; border: 0; background: none; color: var(--on-forest); font-size: 0.875rem; text-decoration: none; }
.footer__legal a:hover, .footer__cookies:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__made a, .footer__made .zk { color: var(--on-forest); font-weight: 650; }

/* ZK Studio's : au survol, le nom s'allume comme une enseigne à leds — les couleurs de zkstudios.fr
   (bleu, violet, magenta) défilent dans les lettres de gauche à droite, avec un halo néon. */
.footer__made a { --zk-blue: #5ca8ff; --zk-violet: #8f7bff; --zk-magenta: #c86bff; text-decoration: none; transition: color 0.25s, filter 0.3s; }
.footer__made a:hover, .footer__made a:focus-visible {
  color: transparent; -webkit-text-fill-color: transparent;
  background-image: linear-gradient(90deg, var(--zk-blue) 0%, var(--zk-violet) 25%, var(--zk-magenta) 50%, var(--zk-violet) 75%, var(--zk-blue) 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.55)) drop-shadow(0 0 5px rgba(143, 123, 255, 0.85)) drop-shadow(0 0 12px rgba(92, 168, 255, 0.55));
}
@media (prefers-reduced-motion: no-preference) {
  .footer__made a:hover, .footer__made a:focus-visible { animation: zk-defile 1.6s linear infinite, zk-neon 2.4s ease-in-out infinite; }
}
@keyframes zk-defile { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes zk-neon {
  0%, 100% { filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.55)) drop-shadow(0 0 5px rgba(143, 123, 255, 0.85)) drop-shadow(0 0 12px rgba(92, 168, 255, 0.55)); }
  50% { filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 7px rgba(200, 107, 255, 0.9)) drop-shadow(0 0 16px rgba(143, 123, 255, 0.6)); }
}

/* ---------- information cookies ---------- */
.cookie-note { position: fixed; z-index: 70; left: clamp(0.75rem, 2vw, 1.5rem); bottom: clamp(0.75rem, 2vw, 1.5rem); width: min(25rem, calc(100vw - 1.5rem)); padding: 1.15rem 1.25rem 1.1rem; border-radius: var(--r-card); background: var(--forest); color: var(--on-forest); box-shadow: 0 18px 48px rgba(10, 30, 24, 0.35); }
.cookie-note h2 { margin-bottom: 0.35rem; color: #fff; font-size: 1.125rem; font-weight: 550; letter-spacing: 0; }
.cookie-note p { color: var(--on-forest-muted); font-size: 0.9375rem; line-height: 1.5; }
.cookie-note__actions { display: flex; align-items: center; justify-content: flex-end; gap: 1.25rem; margin-top: 0.95rem; }
.cookie-note__actions a { color: var(--on-forest); font-size: 0.9375rem; font-weight: 600; text-underline-offset: 3px; }
.cookie-note .btn { background: var(--on-forest); color: var(--forest); }
.cookie-note .btn:hover { background: #fff; }
.cookie-note :focus-visible { outline-color: var(--copper-light); }
@media (prefers-reduced-motion: no-preference) {
  .cookie-note { animation: cookie-in 0.5s var(--ease-out) 0.6s both; }
  .cookie-note.is-leaving { animation: cookie-out 0.25s var(--ease) forwards; }
}
@keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes cookie-out { to { opacity: 0; transform: translateY(12px); } }

/* ---------- pages secondaires ---------- */
.legal { max-width: 52rem; padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: 2rem; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); }
.legal__lede { margin-top: 0.75rem; color: var(--muted); font-size: 1.0625rem; }
.legal section { margin-top: 2.75rem; }
.legal h2 { font-size: 1.5rem; margin-bottom: 0.85rem; }
.legal p + p { margin-top: 0.75rem; }
.legal p, .legal li { color: #4a4640; }
.legal a { color: var(--ink); }
.legal__facts { display: grid; margin: 0; border-top: 1px solid var(--line); }
.legal__facts div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.legal__facts dt { color: var(--muted); }
.legal__facts dd { margin: 0; font-weight: 600; }
.legal__list { margin: 0.75rem 0; padding-left: 1.2rem; list-style: disc; display: grid; gap: 0.4rem; }
.legal h3 { margin: 1.75rem 0 0.25rem; font-family: var(--serif); font-size: 1.1875rem; font-weight: 550; }
.legal__summary { margin-top: 2rem; padding: 1.4rem 1.5rem; border-radius: var(--r-card); background: var(--surface); }
.legal__summary h2 { margin-bottom: 0.6rem; font-size: 1.25rem; }
.legal__summary ul { display: grid; gap: 0.5rem; }
.legal__summary li { position: relative; padding-left: 1.6rem; }
.legal__summary li::before { content: ''; position: absolute; left: 0.25rem; top: 0.35rem; width: 0.4rem; height: 0.75rem; border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.legal__table-wrap { margin: 1rem 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-media); background: var(--card); }
.legal__table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.9375rem; }
.legal__table th, .legal__table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: #4a4640; }
.legal__table thead th { background: var(--surface); color: var(--ink); font-weight: 650; }
.legal__table tbody th { color: var(--ink); font-weight: 650; white-space: nowrap; }
.legal__table tbody tr:last-child > * { border-bottom: 0; }
.legal code { padding: 0.1rem 0.4rem; border-radius: 6px; background: var(--surface); font-size: 0.875rem; }
.page-message { min-height: 60svh; display: grid; place-content: center; justify-items: center; gap: 1rem; padding-block: 4rem; text-align: center; }
.page-message p { color: var(--muted); max-width: 32rem; }
.page-message p a { color: var(--ink); }
.page-message .check { width: 3.5rem; height: 3.5rem; }
.page-message .check svg { width: 26px; height: 26px; }
.page-message .eyebrow { margin-bottom: 0; }

/* ---------- apparitions douces ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-anim] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-anim].is-in { opacity: 1; transform: none; }
  .hero__content > * { animation: rise 0.9s var(--ease-out) both; }
  .hero__content > :nth-child(2) { animation-delay: 0.08s; }
  .hero__content > :nth-child(3) { animation-delay: 0.16s; }
  .estimate-card { animation: rise 0.9s var(--ease-out) 0.25s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- grand écran moyen ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .homes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .estimator { grid-template-columns: minmax(0, 1fr); }
  .estimator__result { position: static; }
  .footer__top { grid-template-columns: 1fr; }
}

/* ---------- tablette ---------- */
@media (max-width: 960px) {
  .estimate-card { width: auto; margin: -3rem 0 0; }
  .estimate-card__fields { grid-template-columns: 1fr 1fr; }
  .estimate-card .btn { min-height: 3.25rem; }
  .about, .faq, .contact, .livret, .appli { grid-template-columns: 1fr; }
  .appli .device { order: -1; }
  .about__art { max-width: 30rem; width: 100%; justify-self: center; }
  .faq__intro { position: static; }
  .seasons { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header__owner { display: none; }
}

/* ---------- téléphone ---------- */
@media (max-width: 743px) {
  :root { --header-h: 4.25rem; }
  .header__inner { gap: 0.75rem; }
  .header.is-compact .header__inner { height: 3.75rem; }
  .brand__logo { width: 40px; height: 40px; }
  .brand__t { font-size: 1.0625rem; }
  .brand__s { font-size: 0.75rem; }
  .header__cta { display: none; }
  .menu { position: fixed; left: 0.75rem; right: 0.75rem; top: calc(var(--header-h) + 0.25rem); width: auto; max-height: calc(100svh - var(--header-h) - 1.5rem); overflow-y: auto; }
  .menu__links a { padding: 0.95rem 1rem; font-family: var(--serif); font-size: 1.375rem; font-weight: 500; }

  .hero { padding-top: 0.25rem; }
  .hero__panel { height: min(76svh, 40rem); min-height: 31rem; border-radius: calc(24px + var(--p) * 8px); }
  .hero__shade { background: linear-gradient(0deg, rgba(10, 30, 24, 0.82) 0%, rgba(10, 30, 24, 0.5) 45%, rgba(10, 30, 24, 0.15) 75%); }
  .hero__content { left: 1.25rem; right: 1.25rem; top: auto; bottom: 4.75rem; }
  .hero__lede { font-size: 1rem; margin-top: 0.85rem; }
  .hero__ready { left: 1rem; right: auto; top: 1rem; padding: 0.55rem 0.85rem 0.55rem 0.55rem; font-size: 0.8125rem; }
  .hero__ready small { display: none; }
  .check { width: 1.85rem; height: 1.85rem; }
  .hero__foot { left: 1.25rem; right: 1.25rem; bottom: 4.6rem; justify-content: flex-end; display: none; }
  .estimate-card { margin: -3.25rem 0 0; padding: 1rem; }
  .estimate-card__head { flex-direction: column; gap: 0.15rem; }
  .estimate-card__fields { grid-template-columns: 1fr; gap: 0.6rem; }
  .hero__links { flex-direction: column; gap: 0.75rem; }

  .stats { gap: 0.75rem; }
  .stat { padding: 1.1rem; }
  .stat span { font-size: 0.875rem; }

  .cards { display: flex; gap: 1rem; margin-inline: calc(var(--pad) * -1); padding: 0.25rem var(--pad) 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 80%; scroll-snap-align: start; }
  .livret { padding: 1.75rem 1.25rem; }
  .livret__list { grid-template-columns: 1fr; }
  .device { --w: 13rem; }
  .appli { padding: 1.75rem 1.25rem; }
  .appli__cols { grid-template-columns: 1fr; }

  .steps { display: flex; gap: 1rem; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; }
  .steps::-webkit-scrollbar { display: none; }
  .step { flex: 0 0 74%; scroll-snap-align: start; }
  .band--rounded { width: 100%; border-radius: 0; }

  .estimator { margin-inline: calc(var(--pad) * -1); padding: 2rem var(--pad); border-radius: 0; }
  .chips span { padding: 0 0.9rem; font-size: 0.875rem; }
  .estimator__result { padding: 1.5rem; }

  .cats { flex-wrap: nowrap; margin-inline: calc(var(--pad) * -1); padding: 0.25rem var(--pad); overflow-x: auto; scrollbar-width: none; }
  .cats::-webkit-scrollbar { display: none; }
  .cat { flex: none; }
  .homes { grid-template-columns: 1fr; gap: 1.25rem; }
  .carousel__nav { display: none; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .strip-nav { display: none; }
  .scard { flex-basis: 78%; }
  .gallery { grid-template-columns: 1fr; }
  .faq__list summary { font-size: 1.125rem; padding-right: 2.5rem; }
  .faq__list details p { padding-right: 0; }
  .form__row { grid-template-columns: 1fr; }
  .contact { padding: 2rem 1.25rem; }
  .contact__card { padding: 1.25rem; }
  .footer__cols { gap: 1.75rem 1rem; }
  .legal__facts div { grid-template-columns: 1fr; gap: 0.15rem; }

  .sheet { width: 100%; max-width: none; max-height: 92svh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .sheet__body { padding: 0 1.25rem calc(1.5rem + env(safe-area-inset-bottom)); }
}
@media (max-width: 743px) and (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheet-up 0.42s var(--ease-out); }
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }

/* livret : l'écran capturé commence sous la barre d'état, sur le ciel de son illustration */
.device__screen--livret { background: linear-gradient(#92c1d9 0 22%, #fff 22%); }
.device__screen--livret picture { margin-top: calc(var(--w) * 0.14); }
.commune-svc__more { margin-top: 1.75rem; color: var(--on-forest-muted); }
.commune-svc__more a { color: #fff; font-weight: 650; text-underline-offset: 3px; }
