/* ==========================================================================
   Versant du Soleil — Maison de village rénovée à vendre, Les Chapelles (73)
   ========================================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin.woff2") format("woff2"); }

:root {
  --bg: #fbf9f5;
  --bg-2: #f4efe6;
  --surface: #ffffff;
  --ink: #16130f;
  --ink-2: #4b463f;
  --ink-3: #847c70;
  --line: rgba(22, 19, 15, .09);
  --line-2: rgba(22, 19, 15, .16);
  --sun: #f59e0b;
  --sun-2: #f97316;
  --sun-ink: #b45309;
  --sun-soft: #fff4de;
  --night: #12100d;
  --night-2: #1c1915;
  --night-line: rgba(255, 255, 255, .10);
  --grad: linear-gradient(135deg, #fcd34d 0%, #f59e0b 38%, #f97316 72%, #ea580c 100%);
  --grad-text: linear-gradient(100deg, #c2410c 0%, #ea580c 45%, #f59e0b 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 30px;
  --shadow-sm: 0 1px 2px rgba(22, 19, 15, .05), 0 1px 1px rgba(22, 19, 15, .03);
  --shadow: 0 1px 2px rgba(22, 19, 15, .04), 0 12px 32px -14px rgba(22, 19, 15, .20);
  --shadow-lg: 0 2px 6px rgba(22, 19, 15, .05), 0 34px 70px -24px rgba(22, 19, 15, .38);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 72px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.035em; line-height: 1.06; color: var(--ink); text-wrap: balance; }
h2 { font-size: clamp(2.05rem, 4.3vw, 3.45rem); }
h3 { font-size: 1.16rem; letter-spacing: -.02em; line-height: 1.3; }
strong { font-weight: 650; }
::selection { background: #fde68a; color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--sun-2); outline-offset: 3px; border-radius: 6px; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(76px, 10vw, 132px); }
.section-sand { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: clamp(34px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 14px; }
.section-head .lead { margin-top: 18px; }
.lead { font-size: clamp(1.06rem, 1.35vw, 1.2rem); line-height: 1.65; color: var(--ink-2); }

.accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.012em;
  font-size: 1.08em;
  line-height: .9;
  padding-right: .08em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sun-ink);
}
.eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--grad); }
.section-head.center .eyebrow::after { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--grad); }

/* ---------- Boutons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  height: var(--h); padding: 0 1.4rem;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--font); letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn .i { width: 18px; height: 18px; }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 24px -10px rgba(22, 19, 15, .6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 16px 32px -12px rgba(22, 19, 15, .6); }
.btn-primary .arrow { transition: transform .25s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-sun { background: var(--grad); color: #1b1103; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 12px 30px -10px rgba(234, 88, 12, .65); }
.btn-sun:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 18px 38px -12px rgba(234, 88, 12, .7); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: rgba(22, 19, 15, .28); transform: translateY(-2px); }
.btn-ghost .play { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; margin-left: -.5rem; }
.btn-ghost .play .i { width: 12px; height: 12px; fill: currentColor; stroke: none; margin-left: 2px; }
.btn-sm { --h: 42px; padding: 0 1.1rem; font-size: .94rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--line-2); padding-bottom: 2px; transition: border-color .2s, gap .2s; }
.link-arrow:hover { border-color: var(--sun-2); gap: .6rem; }
.link-arrow .i { width: 16px; height: 16px; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s, box-shadow .3s; }
.nav.is-scrolled { background: rgba(251, 249, 245, .8); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); border-bottom-color: var(--line); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; flex: none; box-shadow: 0 8px 18px -8px rgba(234, 88, 12, .7); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; letter-spacing: -.025em; font-size: 1.02rem; }
.brand-sub { font-size: .74rem; color: var(--ink-3); font-weight: 500; letter-spacing: 0; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { padding: .5rem .72rem; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500; transition: background-color .2s, color .2s; }
.nav-links a:hover { background: rgba(22, 19, 15, .05); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-price { font-weight: 650; font-size: .92rem; color: var(--ink-2); padding-right: .4rem; font-variant-numeric: tabular-nums; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); align-items: center; justify-content: center; cursor: pointer; }
.burger span { position: relative; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease); }
.burger span::before { transform: translateY(-6px); }
.burger span::after { transform: translateY(6px); }
.nav.is-open .burger span { background: transparent; }
.nav.is-open .burger span::before { transform: rotate(45deg); }
.nav.is-open .burger span::after { transform: rotate(-45deg); }
.mobile-menu { display: none; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-price { display: none; }
}
@media (max-width: 860px) {
  .burger { display: inline-flex; }
  .nav-actions .btn { display: none; }
  .mobile-menu {
    display: block; position: fixed; inset: var(--nav-h) 0 0; z-index: 59;
    background: rgba(251, 249, 245, .97); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { background: rgba(251, 249, 245, .97); border-bottom-color: var(--line); }
  .nav.is-open + .mobile-menu { opacity: 1; visibility: visible; transform: none; }
  .mobile-menu a:not(.btn) { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-menu a:not(.btn) .i { color: var(--ink-3); width: 18px; height: 18px; }
  .mobile-menu .btn { margin-top: 24px; }
  .mobile-menu-price { margin-top: 18px; text-align: center; color: var(--ink-3); font-size: .95rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + clamp(28px, 6vw, 76px)) 0 clamp(48px, 7vw, 96px); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(55% 60% at 88% 8%, rgba(251, 191, 36, .30), transparent 62%),
    radial-gradient(40% 45% at 4% 0%, rgba(249, 115, 22, .10), transparent 70%),
    radial-gradient(50% 50% at 50% 110%, rgba(245, 158, 11, .08), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 10%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 10%, #000 10%, transparent 70%);
  opacity: .55;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(36px, 5vw, 76px); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .38rem .9rem .38rem .42rem; border-radius: 999px;
  background: rgba(255, 255, 255, .78); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .88rem; font-weight: 550; color: var(--ink-2);
}
.pill-dot { position: relative; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; flex: none; }
.pill-dot .i { width: 14px; height: 14px; stroke-width: 2.2; }
.pill-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(245, 158, 11, .45); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.45); opacity: 0; } }
.pill strong { color: var(--ink); font-weight: 650; }

.hero h1 { margin-top: 22px; font-size: clamp(2.55rem, 5vw, 4.55rem); font-weight: 750; letter-spacing: -.045em; line-height: 1.02; }
.hero .lead { margin-top: 22px; max-width: 36rem; }
.hero-price { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.1rem; margin-top: 28px; }
.price-tag { display: inline-flex; align-items: baseline; gap: .6rem; }
.price-tag .amount { font-size: clamp(1.9rem, 3vw, 2.35rem); font-weight: 750; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.price-tag .label { font-size: .88rem; color: var(--ink-3); font-weight: 500; }
.dpe-mini { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--ink-2); font-weight: 550; padding: .3rem .6rem .3rem .35rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .7); }
.dpe-mini b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #f0b50f; color: #1b1103; font-weight: 800; font-size: .8rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 30px; font-size: .92rem; color: var(--ink-2); }
.hero-trust li { display: inline-flex; align-items: center; gap: .45rem; }
.check { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--sun-soft); color: var(--sun-ink); flex: none; }
.check .i { width: 12px; height: 12px; stroke-width: 3; }

.hero-media { position: relative; aspect-ratio: 1 / 1.02; }
.hm-photo {
  position: absolute; left: 0; top: 4%; width: 86%; aspect-ratio: 4 / 3.35; margin: 0;
  border-radius: var(--radius-lg); overflow: hidden; background: #d9cbb8; box-shadow: var(--shadow-lg);
}
.hm-photo img { width: 100%; height: 100%; object-fit: cover; }
.hm-video {
  position: absolute; right: 0; bottom: 0; width: 41%; aspect-ratio: 9 / 16;
  border-radius: 28px; overflow: hidden; background: #7088a3;
  border: 6px solid #fff; box-shadow: var(--shadow-lg);
}
.hm-video video, .hm-video img { width: 100%; height: 100%; object-fit: cover; }
.hm-video video { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease); }
.hm-video video.is-playing { opacity: 1; }
.hm-chip {
  position: absolute; display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap;
  background: rgba(255, 255, 255, .86); color: var(--ink); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px -8px rgba(22, 19, 15, .35);
}
.hm-chip .i { width: 16px; height: 16px; color: var(--sun-2); }
.hm-photo .hm-chip { left: 16px; bottom: 16px; }
.hm-video .hm-chip { left: 10px; bottom: 10px; font-size: .74rem; padding: .38rem .6rem; background: rgba(22, 19, 15, .55); color: #fff; }
.rec { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .25); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hm-float {
  position: absolute; display: flex; align-items: center; gap: .7rem;
  padding: .7rem .95rem .7rem .7rem; border-radius: 18px; background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: var(--shadow); font-size: .82rem; line-height: 1.25; color: var(--ink-2);
}
.hm-float b { display: block; color: var(--ink); font-size: .95rem; font-weight: 700; letter-spacing: -.01em; }
.hm-float .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; }
.hm-float .ic .i { width: 20px; height: 20px; }
.hm-float-1 { top: 0; right: 4%; animation: floaty 7s ease-in-out infinite; }
.hm-float-2 { left: -3%; bottom: 7%; animation: floaty 8s ease-in-out -2s infinite; }
@keyframes floaty { 50% { transform: translateY(-8px); } }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 620px; width: 100%; margin-inline: auto; aspect-ratio: 1 / .98; }
}
@media (max-width: 560px) {
  .hero h1 { letter-spacing: -.04em; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hm-float { font-size: .74rem; padding: .5rem .7rem .5rem .5rem; border-radius: 14px; gap: .5rem; }
  .hm-float b { font-size: .84rem; }
  .hm-float .ic { width: 30px; height: 30px; border-radius: 9px; }
  .hm-float .ic .i { width: 16px; height: 16px; }
  .hm-float-2 { left: 0; bottom: 3%; }
  .hm-photo .hm-chip { left: 10px; bottom: 10px; font-size: .74rem; }
  .hm-video { border-width: 4px; border-radius: 20px; }
}

/* ---------- Chiffres clés ---------- */
.stats { position: relative; z-index: 2; margin-top: clamp(-28px, -2vw, -10px); }
.stats-card {
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stat { padding: 26px 20px 24px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line); }
.stat-n { display: block; font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 750; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat-n small { font-size: .55em; font-weight: 700; letter-spacing: -.02em; margin-left: .08em; }
.stat-l { display: block; margin-top: 6px; font-size: .86rem; color: var(--ink-3); font-weight: 500; line-height: 1.3; }
@media (max-width: 980px) {
  .stats-card { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4)::before { display: none; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .stats-card { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 20px 12px; }
  .stat:nth-child(odd)::before { display: none; }
  .stat:nth-child(4)::before { display: block; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- La maison ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.about-text .lead { color: var(--ink); font-size: clamp(1.12rem, 1.5vw, 1.3rem); line-height: 1.6; letter-spacing: -.01em; }
.about-text p { color: var(--ink-2); }
.about-text h2 { margin: 14px 0 26px; }
.note-card {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 26px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  font-size: .96rem; color: var(--ink-2); line-height: 1.5;
}
.note-card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sun-soft); color: var(--sun-ink); flex: none; }
.note-card strong { color: var(--ink); }
.levels { margin-top: 30px; border-top: 1px solid var(--line); }
.levels li { display: grid; grid-template-columns: 176px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .98rem; color: var(--ink-2); }
.levels .lv { font-weight: 650; color: var(--ink); font-size: .9rem; display: flex; align-items: center; gap: .5rem; }
.levels .lv .i { width: 17px; height: 17px; color: var(--sun-2); }
@media (max-width: 560px) { .levels li { grid-template-columns: 1fr; gap: 4px; } }

.about-visual { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-visual figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: #d9cbb8; box-shadow: var(--shadow); position: relative; }
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-visual .av-tall { grid-row: span 2; aspect-ratio: 9 / 16; }
.about-visual .av-a, .about-visual .av-b { aspect-ratio: 4 / 4.2; }
.av-badge {
  position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%);
  display: flex; align-items: center; gap: .75rem; white-space: nowrap;
  padding: .75rem 1.1rem .75rem .8rem; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg);
  font-size: .86rem; line-height: 1.25;
}
.av-badge .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #1b1103; flex: none; }
.av-badge b { display: block; font-size: .98rem; }
.av-badge span { color: rgba(255, 255, 255, .7); }
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 620px; margin-bottom: 28px; }
}

/* ---------- Atouts (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(190px, auto); gap: 14px; grid-auto-flow: dense; }
.b-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 24px; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.b-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.b-card h3 { font-size: 1.12rem; }
.b-card p { font-size: .94rem; color: var(--ink-2); line-height: 1.5; margin: 0; }
.b-card .ic { position: absolute; top: 22px; left: 22px; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--sun-soft); color: var(--sun-ink); }
.b-card .ic .i { width: 22px; height: 22px; }
.b-card.icon-card { justify-content: flex-end; padding-top: 86px; }
.b-card.photo { color: #fff; border: 0; background: #7d6a55; }
.b-card.photo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.b-card.photo:hover img { transform: scale(1.04); }
.b-card.photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 12, 8, 0) 35%, rgba(15, 12, 8, .72) 100%); }
.b-card.photo h3 { color: #fff; font-size: 1.3rem; }
.b-card.photo p { color: rgba(255, 255, 255, .86); }
.b-card.photo .tag { position: absolute; top: 18px; left: 18px; }
.tag { display: inline-flex; align-items: center; gap: .4rem; padding: .32rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 600; background: rgba(255, 255, 255, .88); color: var(--ink); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tag .i { width: 14px; height: 14px; color: var(--sun-2); }
.b-card.big { grid-column: span 2; grid-row: span 2; min-height: 420px; padding: 30px; }
.b-card.big h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.03em; }
.b-card.big p { font-size: 1rem; max-width: 30rem; }
.b-card.tall { grid-row: span 2; }
.b-card.wide { grid-column: span 2; }
.b-card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.b-card.dark h3 { color: #fff; }
.b-card.dark p { color: rgba(255, 255, 255, .72); }
.b-card.dark .ic { background: rgba(255, 255, 255, .08); color: #fbbf24; }
.b-card.sun { background: var(--grad); border: 0; color: #1b1103; }
.b-card.sun p { color: rgba(27, 17, 3, .78); }
.b-card.sun .ic { background: rgba(255, 255, 255, .35); color: #1b1103; }
.b-card .more { margin-top: 10px; display: inline-flex; align-items: center; gap: .35rem; font-weight: 650; font-size: .92rem; text-decoration: none; color: inherit; }
.b-card .more .i { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.b-card .more:hover .i { transform: translateX(3px); }
.big-num { font-size: 3.2rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; margin-bottom: 4px; }
@media (max-width: 1080px) { .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(170px, auto); gap: 12px; }
  .b-card { padding: 18px; }
  .b-card.icon-card { padding-top: 76px; }
  .b-card .ic { top: 18px; left: 18px; width: 40px; height: 40px; }
  .b-card.big { min-height: 360px; }
}
@media (max-width: 480px) {
  .b-card.icon-card h3 { font-size: 1rem; }
  .b-card.icon-card p { font-size: .86rem; }
  .b-card.wide { grid-column: span 2; }
}

/* ---------- Projetez-vous (comparateur) ---------- */
.proj { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.room-tabs { display: flex; flex-direction: column; gap: 6px; }
.room-tab {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 10px 12px 10px 10px; border-radius: 16px; border: 1px solid transparent; background: transparent;
  cursor: pointer; transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.room-tab img { width: 56px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; background: #d9cbb8; }
.room-tab span { font-weight: 600; font-size: .95rem; letter-spacing: -.01em; }
.room-tab small { display: block; font-weight: 500; color: var(--ink-3); font-size: .8rem; }
.room-tab:hover { background: rgba(22, 19, 15, .04); }
.room-tab[aria-selected="true"] { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.compare { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #b9a58d; box-shadow: var(--shadow-lg); aspect-ratio: 3 / 2; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .9s var(--ease), transform 1.4s var(--ease); }
.compare .cmp-ai { opacity: 0; transform: scale(1.02); }
.compare.show-ai .cmp-ai { opacity: 1; transform: none; }
.compare .cmp-pair { position: absolute; inset: 0; }
.compare .cmp-pair[hidden] { display: none; }
.seg {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: inline-flex; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -12px rgba(22, 19, 15, .45);
}
.seg button { display: inline-flex; align-items: center; gap: .4rem; height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--ink-2); transition: background-color .25s, color .25s; white-space: nowrap; }
.seg button .i { width: 16px; height: 16px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cmp-label {
  position: absolute; left: 16px; bottom: 16px; z-index: 3; display: inline-flex; align-items: center; gap: .45rem;
  padding: .42rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: rgba(22, 19, 15, .62); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cmp-label .i { width: 15px; height: 15px; }
.cmp-label .ai-only { display: none; }
.compare.show-ai .cmp-label .ai-only { display: inline; }
.compare.show-ai .cmp-label .real-only { display: none; }
.compare.show-ai .cmp-label { background: rgba(234, 88, 12, .88); }
.fine { font-size: .84rem; color: var(--ink-3); line-height: 1.5; margin-top: 14px; display: flex; gap: .5rem; align-items: flex-start; }
.fine .i { width: 16px; height: 16px; margin-top: 2px; flex: none; }
@media (max-width: 980px) {
  .proj { grid-template-columns: 1fr; }
  .room-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scroll-snap-type: x mandatory; }
  .room-tabs::-webkit-scrollbar { display: none; }
  .room-tab { width: auto; flex: none; scroll-snap-align: start; background: var(--surface); border-color: var(--line); padding: 6px 14px 6px 6px; }
  .room-tab img { width: 44px; height: 36px; border-radius: 9px; }
  .room-tab small { display: none; }
  .room-tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
  .compare { aspect-ratio: 4 / 3.4; }
}
@media (max-width: 480px) {
  .seg button { padding: 0 12px; font-size: .84rem; height: 34px; }
  .compare { border-radius: var(--radius); }
}

/* ---------- Terrasse (section sombre) ---------- */
.section-dark { background: var(--night); color: #efe9df; overflow: hidden; isolation: isolate; }
.section-dark::before { content: ""; position: absolute; z-index: -1; right: -15%; top: -30%; width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px; background: radial-gradient(closest-side, rgba(245, 158, 11, .22), transparent); pointer-events: none; }
.section-dark::after { content: ""; position: absolute; z-index: -1; left: -20%; bottom: -40%; width: 60vw; height: 60vw; background: radial-gradient(closest-side, rgba(249, 115, 22, .10), transparent); pointer-events: none; }
.section-dark h2 { color: #fff; }
.section-dark .lead { color: rgba(239, 233, 223, .74); }
.section-dark .eyebrow { color: #fbbf24; }
.terrace-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.terrace-list { margin-top: 30px; display: grid; gap: 12px; }
.terrace-list li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--night-line); }
.terrace-list .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #1b1103; flex: none; }
.terrace-list b { display: block; color: #fff; font-weight: 650; letter-spacing: -.01em; }
.terrace-list span { color: rgba(239, 233, 223, .66); font-size: .92rem; }
.terrace-visual { position: relative; }
.t-stage { position: relative; aspect-ratio: 16 / 10.2; border-radius: var(--radius-lg); overflow: hidden; background: #3b3f45; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); border: 1px solid var(--night-line); }
.t-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s var(--ease); }
.t-stage img.is-active { opacity: 1; }
.t-tabs { position: absolute; top: 14px; right: 14px; z-index: 2; display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(18, 16, 13, .6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .12); }
.t-tabs button { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .8); font-weight: 600; font-size: .86rem; cursor: pointer; transition: background-color .25s, color .25s; }
.t-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); }
.t-stage .cmp-label { left: auto; right: 16px; background: rgba(234, 88, 12, .9); }
.t-today {
  position: absolute; left: -26px; bottom: -34px; width: 30%; min-width: 132px; aspect-ratio: 9 / 14; margin: 0;
  border-radius: 20px; overflow: hidden; border: 5px solid var(--night-2); background: #798ca6; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
}
.t-today img { width: 100%; height: 100%; object-fit: cover; }
.t-today figcaption { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: .4rem .55rem; border-radius: 10px; font-size: .72rem; font-weight: 600; line-height: 1.25; background: rgba(18, 16, 13, .66); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.section-dark .fine { color: rgba(239, 233, 223, .5); }
@media (max-width: 980px) {
  .terrace-grid { grid-template-columns: 1fr; }
  .terrace-visual { margin: 10px 0 0; }
  .t-today { position: relative; left: auto; bottom: auto; width: 100%; min-width: 0; aspect-ratio: 16 / 9; margin-top: 12px; border-width: 1px; border-color: var(--night-line); }
  .t-today img { object-position: 50% 58%; }
}
@media (max-width: 480px) {
  .t-tabs { top: 10px; right: 10px; }
  .t-tabs button { padding: 0 10px; font-size: .8rem; height: 30px; }
  .t-stage { aspect-ratio: 4 / 3.3; border-radius: var(--radius); }
  .t-stage .cmp-label { display: none; }
}

/* ---------- Galerie ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  display: inline-flex; align-items: center; gap: .45rem; height: 40px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-weight: 550; font-size: .92rem; color: var(--ink-2);
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: rgba(22, 19, 15, .3); color: var(--ink); }
.filter .n { font-size: .78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter[aria-pressed="true"] .n { color: rgba(255, 255, 255, .6); }
.filter .i { width: 15px; height: 15px; color: var(--sun-2); }
@media (max-width: 760px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 4px; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
}
.gallery {
  --cols: 4;
  --row: calc((min(100vw - 2 * var(--gutter), var(--container)) - (var(--cols) - 1) * 14px) / var(--cols) * 1.32);
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: var(--row); gap: 14px; grid-auto-flow: dense;
}
.g-item { position: relative; display: block; border-radius: 18px; overflow: hidden; cursor: zoom-in; background: #d9cbb8; box-shadow: var(--shadow-sm); }
.g-item.l { grid-column: span 2; }
.g-item[hidden] { display: none; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
@media (max-width: 900px) { .gallery { --cols: 3; } }
@media (max-width: 600px) { .gallery { --cols: 2; gap: 10px; --row: calc((100vw - 2 * var(--gutter) - 10px) / 2 * 1.32); } .g-item { border-radius: 14px; } }
.g-item:hover img { transform: scale(1.035); }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15, 12, 8, .6)); opacity: 0; transition: opacity .35s; }
.g-item:hover::after, .g-item:focus-visible::after { opacity: 1; }
.g-cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; color: #fff; font-size: .88rem; font-weight: 600; line-height: 1.3; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease); text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.g-item:hover .g-cap, .g-item:focus-visible .g-cap { opacity: 1; transform: none; }
.g-item .tag { position: absolute; top: 12px; left: 12px; z-index: 1; font-size: .72rem; }
.g-zoom { position: absolute; top: 12px; right: 12px; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .88); color: var(--ink); opacity: 0; transform: scale(.9); transition: opacity .3s, transform .3s var(--ease); }
.g-zoom .i { width: 16px; height: 16px; }
.g-item:hover .g-zoom, .g-item:focus-visible .g-zoom { opacity: 1; transform: none; }
@media (hover: none) { .g-cap { opacity: 1; transform: none; font-size: .8rem; } .g-item::after { opacity: .9; } }
.gallery-more { display: flex; justify-content: center; margin-top: 18px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto 1fr auto; background: rgba(12, 10, 8, .95); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; opacity: 0; transition: opacity .25s; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; padding-top: calc(14px + env(safe-area-inset-top)); }
.lb-count { font-size: .9rem; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; padding-left: 6px; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 72px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); transition: opacity .25s; user-select: none; -webkit-user-drag: none; }
.lb-stage img.is-loading { opacity: .35; }
.lb-bottom { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); text-align: center; font-size: .95rem; color: rgba(255, 255, 255, .88); min-height: 56px; flex-wrap: wrap; }
.lb-bottom .tag { background: rgba(234, 88, 12, .9); color: #fff; }
.lb-bottom .tag .i { color: #fff; }
.lb-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; transition: background-color .2s; }
.lb-btn:hover { background: rgba(255, 255, 255, .18); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
@media (max-width: 640px) {
  .lb-stage { padding: 0 8px; }
  .lb-prev, .lb-next { top: auto; bottom: -58px; transform: none; width: 42px; height: 42px; }
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
  .lb-bottom { padding-inline: 64px; font-size: .88rem; }
}

/* ---------- Visite vidéo ---------- */
.video-grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.player-wrap { position: sticky; top: calc(var(--nav-h) + 20px); }
.player { position: relative; aspect-ratio: 9 / 16; max-height: calc(100vh - var(--nav-h) - 60px); margin-inline: auto; border-radius: 32px; overflow: hidden; background: #111; box-shadow: var(--shadow-lg); border: 7px solid var(--ink); }
.player video { width: 100%; height: 100%; object-fit: cover; background: #111; }
.player-title { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 2; display: flex; align-items: center; gap: .5rem; padding: .5rem .7rem; border-radius: 14px; background: rgba(18, 16, 13, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-size: .84rem; font-weight: 600; pointer-events: none; transition: opacity .3s; }
.player.is-playing .player-title { opacity: 0; }
.player-title .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--grad); color: #1b1103; font-size: .74rem; font-weight: 800; flex: none; }
.player-play { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; border: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .35)); cursor: pointer; transition: opacity .3s; }
.player-play span { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 12px 40px -10px rgba(0, 0, 0, .6); transition: transform .3s var(--ease); }
.player-play:hover span { transform: scale(1.06); }
.player-play .i { width: 28px; height: 28px; fill: currentColor; stroke: none; margin-left: 4px; }
.player.is-playing .player-play { opacity: 0; pointer-events: none; }
.chapters { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chapter {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 8px 14px 8px 8px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.chapter:hover { border-color: var(--line-2); transform: translateX(2px); }
.chapter img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #d9cbb8; }
.chapter b { display: block; font-weight: 650; letter-spacing: -.01em; font-size: .98rem; line-height: 1.3; }
.chapter small { display: block; color: var(--ink-3); font-size: .84rem; margin-top: 2px; }
.chapter .dur { font-size: .82rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; padding: .28rem .55rem; border-radius: 999px; background: var(--bg-2); }
.chapter[aria-current="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow); }
.chapter[aria-current="true"] .dur { background: var(--ink); color: #fff; }
.video-note { margin-top: 18px; }
@media (max-width: 900px) {
  .video-grid { grid-template-columns: 1fr; }
  .player-wrap { position: static; }
  .player { max-width: 380px; max-height: none; }
}

/* ---------- Prestations ---------- */
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.spec { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.spec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.spec-head .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--sun-soft); color: var(--sun-ink); flex: none; }
.spec ul { display: grid; gap: 10px; }
.spec li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); line-height: 1.45; }
.spec li .check { margin-top: 1px; }
.spec.energy { display: flex; flex-direction: column; }
.dpe { display: grid; gap: 5px; margin-top: 4px; }
.dpe-row { display: flex; align-items: center; gap: 10px; }
.dpe-bar { height: 22px; border-radius: 0 6px 6px 0; display: flex; align-items: center; padding-left: 8px; font-size: .74rem; font-weight: 800; color: #fff; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%); }
.dpe-row.is-current .dpe-bar { height: 30px; font-size: .95rem; box-shadow: 0 0 0 2px var(--ink); }
.dpe-row .you { display: none; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 700; color: var(--ink); }
.dpe-row.is-current .you { display: inline-flex; }
.dpe-row .you::before { content: ""; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-right: 8px solid var(--ink); }
.spec .fine { margin-top: auto; padding-top: 14px; }
@media (max-width: 980px) { .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .specs { grid-template-columns: 1fr; } }

/* ---------- Situation ---------- */
.loc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.distances { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.distances li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.distances .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--sun-ink); }
.distances .ic .i { width: 19px; height: 19px; }
.distances b { display: block; font-weight: 650; letter-spacing: -.01em; font-size: .98rem; }
.distances small { display: block; color: var(--ink-3); font-size: .85rem; line-height: 1.35; }
.distances .t { text-align: right; font-weight: 650; font-size: .92rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.distances .t span { display: block; font-weight: 500; color: var(--ink-3); font-size: .8rem; }
.map-card { position: sticky; top: calc(var(--nav-h) + 20px); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-frame { position: relative; aspect-ratio: 4 / 3.6; background: #e8e1d4; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; background: #dcd3c3; overflow: hidden; }
.map-placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.map-placeholder::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 16, 13, .15), rgba(18, 16, 13, .55)); }
.map-placeholder .btn { position: relative; z-index: 1; }
.map-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; flex-wrap: wrap; }
.map-meta b { display: block; letter-spacing: -.01em; }
.map-meta small { color: var(--ink-3); font-size: .84rem; }
@media (max-width: 980px) { .loc-grid { grid-template-columns: 1fr; } .map-card { position: static; } }

/* ---------- Prix ---------- */
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); align-items: stretch; }
.price-card { position: relative; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; box-shadow: var(--shadow-lg); }
.price-card::before { content: ""; position: absolute; z-index: -1; right: -30%; top: -50%; width: 90%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(245, 158, 11, .35), transparent); }
.price-card .badge { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; font-weight: 600; color: #fbbf24; }
.price-card .badge .i { width: 14px; height: 14px; }
.price-big { margin-top: 18px; font-size: clamp(3rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-sub { margin-top: 10px; color: rgba(255, 255, 255, .68); }
.price-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 28px 0 30px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .12); }
.price-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: rgba(255, 255, 255, .9); line-height: 1.4; }
.price-list .check { background: rgba(251, 191, 36, .15); color: #fbbf24; }
.price-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.price-card .btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .2); box-shadow: none; }
.price-card .btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.price-card .fine { color: rgba(255, 255, 255, .5); }
.steps { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.steps h3 { font-size: 1.5rem; letter-spacing: -.03em; margin-bottom: 8px; }
.steps > p { color: var(--ink-2); }
.steps ol { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 0; }
.steps li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-bottom: 26px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; left: 21px; top: 46px; bottom: 6px; width: 2px; background: repeating-linear-gradient(180deg, var(--line-2) 0 5px, transparent 5px 10px); }
.steps li:last-child::before { display: none; }
.step-n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 750; background: var(--sun-soft); color: var(--sun-ink); }
.steps li:first-child .step-n { background: var(--grad); color: #1b1103; }
.steps b { display: block; font-size: 1.04rem; letter-spacing: -.01em; margin-top: 2px; }
.steps span { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .price-list { grid-template-columns: 1fr; } .price-ctas .btn { flex: 1 1 100%; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-aside { position: sticky; top: calc(var(--nav-h) + 24px); }
.faq-aside .note-card { margin-top: 28px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 2px; cursor: pointer; list-style: none; font-weight: 650; font-size: 1.06rem; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; transition: background-color .25s, border-color .25s, transform .3s var(--ease); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), background-color .25s; }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm { background: var(--ink); border-color: var(--ink); transform: rotate(180deg); }
.faq details[open] summary .pm::before, .faq details[open] summary .pm::after { background: #fff; }
.faq details[open] summary .pm::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--sun-ink); }
.faq .answer { padding: 0 48px 24px 2px; color: var(--ink-2); line-height: 1.65; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-aside { position: static; } }
@media (max-width: 480px) { .faq .answer { padding-right: 4px; } .faq summary { font-size: 1rem; } }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; isolation: isolate; }
.contact::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: 1100px; height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(251, 191, 36, .18), transparent); pointer-events: none; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-info { display: grid; gap: 12px; margin-top: 30px; }
.contact-info li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.contact-info .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sun-soft); color: var(--sun-ink); flex: none; }
.contact-info b { display: block; letter-spacing: -.01em; }
.contact-info span { color: var(--ink-3); font-size: .9rem; }
.form-card { position: relative; padding: clamp(22px, 3.5vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.intents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 22px; padding: 0; border: 0; }
.intents legend { font-weight: 650; font-size: .95rem; margin-bottom: 10px; padding: 0; }
.intent { position: relative; }
.intent input { position: absolute; opacity: 0; pointer-events: none; }
.intent label { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; height: 100%; padding: 12px 12px 12px; border-radius: 14px; border: 1px solid var(--line-2); cursor: pointer; font-weight: 600; font-size: .9rem; line-height: 1.25; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.intent label .i { width: 20px; height: 20px; color: var(--ink-3); transition: color .2s; }
.intent input:checked + label { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: #fffdf9; }
.intent input:checked + label .i { color: var(--sun-2); }
.intent input:focus-visible + label { outline: 2.5px solid var(--sun-2); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .9rem; }
.field label .opt { color: var(--ink-3); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff;
  font: 400 1rem/1.4 var(--font); color: var(--ink); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23847c70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a8a093; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgba(22, 19, 15, .3); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--sun-2); box-shadow: 0 0 0 4px rgba(249, 115, 22, .15); }
.field.has-error input, .field.has-error textarea { border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, .1); }
.field .err { display: none; color: #b91c1c; font-size: .84rem; font-weight: 500; }
.field.has-error .err { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 20px; font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.consent a { color: var(--ink); }
.consent.has-error { color: #b91c1c; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-size: .92rem; font-weight: 500; min-height: 1.4em; }
.form-status.is-error { color: #b91c1c; }
.form-foot { display: flex; align-items: center; justify-content: center; gap: .45rem; margin-top: 14px; font-size: .82rem; color: var(--ink-3); }
.form-foot .i { width: 15px; height: 15px; }
.btn .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; display: none; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { display: none; text-align: center; padding: clamp(20px, 5vw, 48px) 8px; }
.form-card.is-sent form { display: none; }
.form-card.is-sent .form-success { display: block; animation: pop .5s var(--ease); }
.form-success .ic { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px; display: grid; place-items: center; background: var(--grad); color: #1b1103; box-shadow: 0 16px 36px -14px rgba(234, 88, 12, .7); }
.form-success .ic .i { width: 30px; height: 30px; stroke-width: 2.4; }
.form-success h3 { font-size: 1.6rem; letter-spacing: -.03em; }
.form-success p { color: var(--ink-2); margin-top: 10px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .intents { grid-template-columns: 1fr; }
  .intent label { flex-direction: row; align-items: center; }
}

/* ---------- Footer ---------- */
.footer { background: var(--night); color: rgba(239, 233, 223, .7); padding: 72px 0 calc(32px + env(safe-area-inset-bottom)); font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand { color: #fff; }
.footer .brand-sub { color: rgba(239, 233, 223, .55); }
.footer p { margin-top: 18px; max-width: 30rem; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 650; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer a { color: rgba(239, 233, 223, .78); text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fbbf24; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: .84rem; color: rgba(239, 233, 223, .5); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Barre CTA mobile ---------- */
.mobile-cta {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 55;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 18px; border-radius: 20px; background: rgba(22, 19, 15, .92); color: #fff;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55);
  transform: translateY(140%); transition: transform .4s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta b { display: block; font-size: 1.05rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mobile-cta span { font-size: .78rem; color: rgba(255, 255, 255, .62); }
.mobile-cta .btn { --h: 46px; padding: 0 1.1rem; }
@media (max-width: 860px) { .mobile-cta { display: flex; } .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); } }

/* ---------- Bandeau consentement (actif seulement si un tag Google est configuré) ---------- */
.consent-bar { position: fixed; left: 16px; bottom: 16px; z-index: 90; max-width: 420px; padding: 18px 18px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: .9rem; color: var(--ink-2); }
.consent-bar[hidden] { display: none; }
.consent-bar p { margin-bottom: 12px; }
.consent-bar .row { display: flex; gap: 8px; }
.consent-bar .btn { --h: 40px; font-size: .9rem; flex: 1; }
@media (max-width: 860px) { .consent-bar { left: 10px; right: 10px; bottom: calc(86px + env(safe-area-inset-bottom)); max-width: none; } }

/* ---------- Apparition au défilement ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Page légale ---------- */
.legal { padding: calc(var(--nav-h) + 56px) 0 96px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 14px 0 30px; }
.legal h2 { font-size: 1.35rem; letter-spacing: -.02em; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: 6px; margin-bottom: 1em; }
.legal a { color: var(--ink); }

/* ==========================================================================
   Pages intérieures
   ========================================================================== */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(24px, 4.5vw, 56px)) 0 clamp(44px, 6vw, 80px); overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(55% 70% at 90% 0%, rgba(251, 191, 36, .26), transparent 62%), radial-gradient(40% 45% at 0% 0%, rgba(249, 115, 22, .08), transparent 70%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 80% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 70% at 80% 0%, #000 10%, transparent 70%);
  opacity: .5;
}
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero-grid.solo { grid-template-columns: minmax(0, 1fr); }
.page-hero-grid.solo > div { max-width: 860px; }
.page-hero h1 { margin-top: 16px; font-size: clamp(2.3rem, 4.5vw, 3.9rem); font-weight: 750; letter-spacing: -.045em; line-height: 1.04; }
.page-hero .lead { margin-top: 20px; max-width: 40rem; }
.page-hero-media { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.2; background: #d9cbb8; box-shadow: var(--shadow-lg); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media .hm-chip { left: 16px; bottom: 16px; }
.page-hero-media .tag { position: absolute; top: 16px; left: 16px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .82); border: 1px solid var(--line); font-size: .86rem; font-weight: 550; color: var(--ink-2); white-space: nowrap; }
.chip .i { width: 16px; height: 16px; color: var(--sun-2); }
.chip b { color: var(--ink); font-weight: 700; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } .page-hero-media { max-width: 640px; } }

/* Fil d'Ariane */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: 0 0 18px; padding: 0; list-style: none; font-size: .84rem; color: var(--ink-3); }
.crumbs li { display: inline-flex; align-items: center; gap: .35rem; }
.crumbs li + li::before { content: "›"; opacity: .6; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* Texte éditorial */
.prose { font-size: 1.05rem; line-height: 1.75; color: var(--ink-2); max-width: 74ch; }
.prose > h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); margin: 72px 0 18px; color: var(--ink); scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.22rem; margin: 34px 0 10px; color: var(--ink); letter-spacing: -.02em; }
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sun-2); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose a.btn { text-decoration: none; }
.prose strong { color: var(--ink); }
.prose ul.dots { list-style: none; padding: 0; margin: 0 0 1.3em; display: grid; gap: 10px; }
.prose ul.dots li { position: relative; padding-left: 24px; }
.prose ul.dots li::before { content: ""; position: absolute; left: 5px; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.prose figure { margin: 30px 0; }
.prose figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); background: #d9cbb8; }
.prose figcaption { font-size: .86rem; color: var(--ink-3); margin-top: 10px; line-height: 1.5; }
.prose .fig-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 30px 0; }
.prose .fig-duo figure { margin: 0; }
.prose .fig-duo img { aspect-ratio: 4 / 5; object-fit: cover; }
.prose .note-card { margin: 28px 0; }
@media (max-width: 560px) { .prose .fig-duo { grid-template-columns: 1fr; } .prose .fig-duo img { aspect-ratio: 4 / 3; } }

/* Mise en page avec sommaire */
.toc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.toc-title { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sun-ink); font-weight: 650; margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc ol a { display: flex; gap: .65rem; padding: 7px 9px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-size: .92rem; line-height: 1.35; transition: background-color .2s, color .2s; }
.toc ol a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: .78rem; font-weight: 600; margin-top: 2px; }
.toc ol a:hover, .toc ol a.is-active { background: var(--bg-2); color: var(--ink); }
.toc ol a.is-active::before { color: var(--sun-2); }
.toc .btn { margin-top: 16px; width: 100%; }
@media (max-width: 980px) {
  .toc-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .toc ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .toc ol { grid-template-columns: 1fr; } }

/* Faits clés */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 28px 0 30px; }
.fact { padding: 16px 16px 15px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.fact b { display: block; font-size: 1.45rem; font-weight: 750; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.fact span { display: block; font-size: .84rem; color: var(--ink-3); margin-top: 5px; line-height: 1.35; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Frise chronologique */
.timeline { list-style: none; margin: 30px 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--sun), rgba(245, 158, 11, .12)); }
.timeline li { position: relative; padding: 0 0 26px 38px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--sun); box-shadow: 0 0 0 5px var(--bg); }
.timeline .when { display: block; font-weight: 750; color: var(--ink); letter-spacing: -.01em; font-size: 1.02rem; }
.timeline p { margin: 4px 0 0; }

/* Tableau des distances */
.table-wrap { overflow-x: auto; margin: 26px 0; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.dist-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.dist-table caption { text-align: left; padding: 16px 18px 6px; font-weight: 650; color: var(--ink); }
.dist-table th, .dist-table td { padding: 12px 18px; text-align: left; border-top: 1px solid var(--line); }
.dist-table thead th { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; border-top: 0; }
.dist-table td:nth-child(n+2), .dist-table th:nth-child(n+2) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dist-table tbody th { font-weight: 600; color: var(--ink); }
.dist-table tbody th small { display: block; font-weight: 500; color: var(--ink-3); font-size: .82rem; }
.dist-table tbody tr:hover { background: #fffbf3; }

/* Cartes de navigation */
.explore { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.x-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.x-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.x-card figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: #d9cbb8; }
.x-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.x-card:hover img { transform: scale(1.05); }
.x-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.x-body h3 { font-size: 1.14rem; }
.x-body p { font-size: .93rem; color: var(--ink-2); line-height: 1.5; margin: 0; }
.x-body .more { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: .35rem; font-weight: 650; font-size: .9rem; color: var(--ink); }
.x-body .more .i { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.x-card:hover .more .i { transform: translateX(3px); }
.x-card .tag { position: absolute; top: 12px; left: 12px; }
.explore.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .explore { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .explore, .explore.two { grid-template-columns: 1fr; } }

/* Bandeau d'appel à l'action */
.cta-band { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(26px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; z-index: -1; right: -10%; top: -80%; width: 60%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(245, 158, 11, .38), transparent); }
.cta-band .eyebrow { color: #fbbf24; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); margin-top: 10px; }
.cta-band p { color: rgba(255, 255, 255, .7); margin-top: 10px; max-width: 34rem; }
.cta-band .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-band .btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .22); box-shadow: none; }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.related-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.related-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* Pièce par pièce */
.level { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(24px, 4vw, 60px); align-items: center; padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.level.flip .level-text { order: 2; }
.level-text h3 { font-size: clamp(1.5rem, 2.5vw, 2.05rem); letter-spacing: -.035em; line-height: 1.12; margin: 12px 0 16px; }
.level-text p { color: var(--ink-2); }
.level-text .link-arrow { margin-top: 8px; }
.level-media { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.level-media figure { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: #d9cbb8; aspect-ratio: 4 / 3.1; }
.level-media figure.wide { grid-column: span 2; aspect-ratio: 16 / 8.6; }
.level-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.level-media figure:hover img { transform: scale(1.03); }
.level-media figcaption { position: absolute; left: 10px; bottom: 10px; padding: .3rem .6rem; border-radius: 999px; background: rgba(22, 19, 15, .6); color: #fff; font-size: .74rem; font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.level-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.level-facts .fact { padding: 22px; }
.level-facts .fact .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--sun-soft); color: var(--sun-ink); margin-bottom: 14px; }
.level-facts .fact b { font-size: 1.1rem; }
@media (max-width: 900px) { .level { grid-template-columns: 1fr; } .level.flip .level-text { order: 0; } }

/* Mot du propriétaire */
.quote-card { position: relative; padding: clamp(30px, 4.5vw, 52px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.quote-card::before { content: "“"; position: absolute; top: -26px; left: 26px; font-family: var(--serif); font-size: 7.5rem; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quote-card p { font-size: clamp(1.06rem, 1.5vw, 1.22rem); line-height: 1.7; color: var(--ink); letter-spacing: -.005em; }
.quote-card footer { margin-top: 18px; font-size: .9rem; color: var(--ink-3); display: flex; align-items: center; gap: .6rem; }
.quote-card footer::before { content: ""; width: 24px; height: 2px; background: var(--grad); border-radius: 2px; }

/* Deux colonnes */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0; }
.duo > div { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.duo h3 { display: flex; align-items: center; gap: .65rem; margin: 0 0 12px; font-size: 1.12rem; }
.duo h3 .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--sun-soft); color: var(--sun-ink); flex: none; }
.duo p, .duo li { font-size: .97rem; color: var(--ink-2); line-height: 1.6; }
.duo p { margin: 0 0 .8em; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* Carte schématique */
.schema-map { margin: 28px 0 10px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #f4efe4; box-shadow: var(--shadow-sm); }
.schema-map svg { width: 100%; height: auto; display: block; }
.schema-note { font-size: .84rem; color: var(--ink-3); margin: 0 0 24px; }
.nav-links a[aria-current="page"] { color: var(--ink); background: rgba(22, 19, 15, .06); }
.mobile-menu a[aria-current="page"] { color: var(--sun-ink); }
.page-section-tight { padding-top: 0; }

.quote-card { margin: 0; }
.legal .crumbs { margin-bottom: 18px; }

/* Carte schématique et tableau : lisibles sur mobile */
.schema-hint { display: none; }
@media (max-width: 680px) {
  .schema-map { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .schema-map svg { width: 680px; max-width: none; }
  .schema-hint { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--ink-3); margin: 10px 0 0; }
  .schema-hint .i { width: 16px; height: 16px; }
  .dist-table th, .dist-table td { padding: 11px 12px; }
  .dist-table { font-size: .9rem; }
}
