/* ===================================================================
   MAISON SAINT-MICHEL — Design system (côtier / haut de gamme)
   =================================================================== */

:root {
  /* Palette : océan profond + sable + laiton */
  --ink: #10333f;          /* bleu-vert profond (océan) */
  --ink-2: #0b2530;
  --sea: #2f6f7e;          /* teal */
  --sand: #e9e0d1;         /* sable clair */
  --cream: #f8f5ef;        /* fond principal */
  --cream-2: #f1ece2;
  --surface: #ffffff;
  --text: #23302f;
  --muted: #6a7877;
  --accent: #c1873f;       /* laiton chaud */
  --accent-2: #a96f2d;
  --line: #e5ddd0;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 6px;
  --radius-lg: 16px;
  --shadow-sm: 0 6px 20px rgba(16, 51, 63, 0.08);
  --shadow-md: 0 20px 50px rgba(16, 51, 63, 0.16);
  --shadow-lg: 0 40px 90px rgba(11, 37, 48, 0.28);
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Typo helpers ---------- */
.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
  font-weight: 500;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1.3rem;
  color: var(--ink);
}
.lead { font-size: 1.15rem; color: var(--text); margin: 0 0 1.2rem; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }

.section-split {
  display: grid; grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.section-figure {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.section-figure img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
}
.highlight-media-frame .section-figure-caption {
  position: absolute; inset: auto 0 0 0; padding: 1.2rem 1.4rem;
  background: linear-gradient(to top, rgba(11, 37, 48, 0.75), transparent);
  color: #fff; font-size: 0.92rem; font-style: italic;
}
.section-head { text-align: center; max-width: 680px; margin: 0 auto 4rem; }
.section-head-left { text-align: left; max-width: none; margin: 0 0 1.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1rem 2.1rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.35s var(--ease);
  font-weight: 500;
  white-space: nowrap;
}
.btn-sm { padding: 0.7rem 1.4rem; font-size: 0.72rem; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(193, 135, 63, 0.28); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(193, 135, 63, 0.4); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; transform: translateY(-3px); }
.btn-block { width: 100%; }
.btn-icon {
  padding: 0.65rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.btn-icon svg { width: 18px; height: 18px; }
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.55);
  transform: translateY(-2px);
  box-shadow: none;
}
.scrolled .btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.scrolled .btn-ghost:hover {
  background: var(--cream-2);
  border-color: var(--accent);
  color: var(--accent);
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--ink); font-weight: 500; letter-spacing: 0.04em;
  border-bottom: 1px solid var(--accent); padding-bottom: 3px;
  transition: gap 0.3s var(--ease), color 0.3s;
}
.link-arrow span { color: var(--accent); transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover span { transform: translateX(5px); }

/* ===================== HEADER ===================== */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(248, 245, 239, 0.9);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: 0.75rem; color: #fff; transition: color 0.45s; }
.scrolled .brand { color: var(--ink); }
.brand-mark {
  font-family: var(--font-display); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.04em; line-height: 1;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1.5px solid currentColor; border-radius: 50%;
}
.brand-text { font-family: var(--font-display); font-size: 1.02rem; font-weight: 500; line-height: 1.15; }
.brand-text em { font-style: italic; color: currentColor; opacity: 0.85; font-size: 0.88rem; }

.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav-link {
  color: rgba(255,255,255,0.92); font-size: 0.82rem; letter-spacing: 0.08em;
  position: relative; padding: 0.3rem 0; transition: color 0.3s;
}
.scrolled .nav-link { color: var(--text); }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1.5px; background: var(--accent); transition: width 0.3s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: #fff; }
.scrolled .nav-link.active { color: var(--accent); }

.header-actions { display: flex; align-items: center; flex-shrink: 0; gap: 0.65rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 110; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; transition: all 0.3s var(--ease); }
.scrolled .nav-toggle span { background: var(--ink); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; overflow: hidden;
  transform: scale(1.12);
  animation: heroZoom 18s ease-out forwards;
}
.hero-bg {
  position: absolute; top: -20%; left: 0; width: 100%; height: 140%;
  background: url("assets/header.webp") center/cover no-repeat;
  will-change: transform;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,37,48,0.55) 0%, rgba(11,37,48,0.25) 40%, rgba(11,37,48,0.75) 100%),
    radial-gradient(120% 80% at 20% 20%, rgba(16,51,63,0.15), rgba(11,37,48,0.65));
}
.hero-content { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 820px; padding-top: 84px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.75rem; align-self: flex-start;
  margin: 0 0 1rem; padding: 0.7rem 1.2rem 0.7rem 0.95rem;
  background: linear-gradient(135deg, rgba(193, 135, 63, 0.28), rgba(193, 135, 63, 0.12));
  border: 1.5px solid rgba(193, 135, 63, 0.72);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: clamp(0.78rem, 1.6vw, 0.88rem);
  letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
  backdrop-filter: blur(8px);
  opacity: 0; animation: fadeUp 0.8s var(--ease) 0.12s forwards;
}
.hero-kicker-icon {
  flex-shrink: 0; width: 2rem; height: 2rem;
  display: grid; place-items: center;
  background: rgba(193, 135, 63, 0.35);
  border-radius: 8px; color: #fff;
}
.hero-kicker-icon svg { width: 1.1rem; height: 1.1rem; }
.hero-kicker-text strong {
  color: #ffe8c8; font-weight: 600; letter-spacing: 0.06em;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.9rem;
  letter-spacing: 0.24em; text-transform: uppercase; font-size: 0.8rem; margin: 0 0 1.4rem;
  opacity: 0; animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}
.hero-eyebrow-location {
  font-size: 0.72rem; letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.78); margin-bottom: 1.1rem;
}
.hero-eyebrow .line { width: 42px; height: 1px; background: var(--accent); display: inline-block; }
.hero-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.02; letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
  opacity: 0; animation: fadeUp 0.9s var(--ease) 0.35s forwards;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 300; max-width: 560px; margin: 0 0 2rem; opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.5s forwards;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 0; opacity: 0; animation: fadeUp 0.9s var(--ease) 0.65s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero-facts {
  position: relative; z-index: 2;
  background: rgba(11, 37, 48, 0.42);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.14);
  opacity: 0; animation: fadeUp 0.9s var(--ease) 0.8s forwards;
}
.hero-facts-inner { display: flex; align-items: center; }
.hero-fact { flex: 1; padding: 1.6rem 1rem; display: flex; flex-direction: column; gap: 0.2rem; }
.hero-fact + .hero-fact { border-left: 1px solid rgba(255,255,255,0.14); }
.hero-fact-value { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 500; }
.hero-fact-highlight .hero-fact-value { color: #ffe8c8; }
.hero-fact-highlight .hero-fact-label { color: rgba(255, 232, 200, 0.88); }
.hero-fact-label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.hero-fact-cta { align-items: flex-end; text-align: right; }
.scroll-link { font-size: 0.8rem; letter-spacing: 0.1em; color: #fff; border-bottom: 1px solid var(--accent); padding-bottom: 3px; transition: gap 0.3s; }
.scroll-link:hover { color: var(--accent); }

/* ===================== INTRO ===================== */
.intro { background: var(--cream); }
.intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr);
  grid-template-areas:
    "header header"
    "media details";
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  align-items: stretch;
}
.intro-header {
  grid-area: header;
  max-width: 46rem;
}
.intro-header .lead {
  margin: 0.85rem 0 0;
  color: var(--text);
}
.intro-media {
  grid-area: media;
  margin: 0;
  min-height: 0;
  display: flex;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.intro-media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}
.intro-details {
  grid-area: details;
  display: flex;
  flex-direction: column;
}
.intro-details .link-arrow { margin-top: 1.25rem; }

.intro-surfaces {
  margin-top: 0;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.intro-surfaces-equation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.65rem;
}
.intro-surface-part {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.intro-surface-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
}
.intro-surface-total .intro-surface-value { color: var(--accent); }
.intro-surface-name {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.3;
}
.intro-surface-op {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--sea);
  line-height: 1;
  padding: 0 0.1rem;
}
.intro-surface-op-eq { color: var(--accent); }

.intro-buildings {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.intro-building {
  padding: 1rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.intro-building-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.intro-building-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}
.intro-building-surface {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}
.intro-building-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.intro-building-list li {
  position: relative;
  padding-left: 0.85rem;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.45;
}
.intro-building-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sea);
}

.intro-dpe {
  margin-top: 0.85rem;
  padding: 1rem 1.1rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.intro-dpe-head {
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}
.intro-dpe-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
}
.intro-dpe-meta {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}
.intro-dpe-scales {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.1rem;
}
.dpe-scale-label {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}
.dpe-bars {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 11.5rem;
}
.dpe-bar {
  display: flex;
  align-items: center;
  height: 0.72rem;
  padding: 0 0.4rem;
  clip-path: polygon(0 0, calc(100% - 0.45rem) 0, 100% 50%, calc(100% - 0.45rem) 100%, 0 100%);
  opacity: 0.38;
}
.dpe-bar em {
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.dpe-bar.is-active {
  height: 1.15rem;
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(16, 51, 63, 0.12);
}
.dpe-bar.is-active em { font-size: 0.78rem; }
.dpe-a { width: 42%; background: #319834; }
.dpe-b { width: 50%; background: #33cc31; }
.dpe-c { width: 58%; background: #cbfc34; }
.dpe-c em,
.dpe-d em,
.dpe-e em { color: #1a1a1a; text-shadow: none; }
.dpe-d { width: 66%; background: #fbea49; }
.dpe-e { width: 74%; background: #fccc2f; }
.dpe-f { width: 82%; background: #f9a527; }
.dpe-g { width: 90%; background: #f61400; }
.dpe-scale-value {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.35;
}
.dpe-scale-value strong {
  font-family: var(--font-display);
  font-weight: 500;
  color: #319834;
}
.intro-dpe-cost {
  margin: 0.85rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.45;
}
.intro-dpe-cost strong {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}
.intro-dpe-cost-note {
  display: inline;
  color: var(--muted);
  font-size: 0.8rem;
}

.intro-terrain {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}
.intro-terrain strong {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}

.intro-facts {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 1.25rem;
}
.intro-facts li { display: flex; align-items: flex-start; gap: 0.75rem; }
.intro-fact-icon {
  flex-shrink: 0; width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center;
  background: var(--cream-2); border-radius: 50%;
  font-size: 1.05rem; line-height: 1;
}
.intro-fact-text { font-size: 0.95rem; color: var(--text); line-height: 1.45; padding-top: 0.15rem; }
.intro-fact-text strong { font-family: var(--font-display); font-weight: 500; color: var(--ink); }

/* ===================== GALERIE ===================== */
.galerie { background: var(--cream-2); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 16px;
  align-items: stretch;
}
.gallery-item {
  position: relative; padding: 0; border: none; cursor: pointer; overflow: hidden;
  border-radius: var(--radius-lg); aspect-ratio: 4 / 3; background: var(--sand); box-shadow: var(--shadow-sm);
  min-height: 0;
  touch-action: manipulation;
}
.gallery-feature {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: unset;
  align-self: stretch;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,37,48,0.35), rgba(11,37,48,0)); opacity: 0; transition: opacity 0.4s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { opacity: 1; }
.gallery-tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: rgba(255,255,255,0.9); color: var(--ink);
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  padding: 0.4rem 0.9rem; border-radius: 50px;
}

/* ===================== HIGHLIGHT (dépendance) ===================== */
.highlight { background: var(--ink); color: #fff; position: relative; padding-top: clamp(9.5rem, 14vw, 13rem); padding-bottom: clamp(9.5rem, 14vw, 13rem); }
.highlight-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.highlight-media { position: relative; }
.highlight-media img { border-radius: var(--radius-lg); aspect-ratio: 4 / 3.2; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.highlight-badge {
  position: absolute; bottom: -18px; right: -10px;
  background: var(--accent); color: #fff; font-family: var(--font-display); font-size: 1.1rem;
  padding: 0.7rem 1.4rem; border-radius: 50px; box-shadow: var(--shadow-md);
}
.highlight-text .section-title { color: #fff; }
.highlight-text p { color: rgba(255,255,255,0.8); }
.check-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.9rem; }
.check-list li { position: relative; padding-left: 2rem; color: rgba(255,255,255,0.92); }
.check-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; display: grid; place-items: center;
  background: rgba(193,135,63,0.2); color: var(--accent); border-radius: 50%; font-size: 0.75rem;
}

/* ===================== ATOUTS ===================== */
.atouts { background: var(--cream); }
.atouts-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.atouts-list {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.75rem;
  list-style: none;
}
.atouts-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.atouts-item-icon {
  flex-shrink: 0;
  width: 1.5rem;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  line-height: 1;
}

/* ===================== VENTE ENTRE PARTICULIERS ===================== */
.particuliers { background: var(--cream); }
.particuliers-inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.particuliers-text p { color: var(--muted); }
.particuliers-text .lead { color: var(--text); }
.particuliers-text .link-arrow { margin-top: 1.25rem; }

.particuliers-aside { align-self: stretch; }

.particuliers-compare {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 3.5vw, 2.2rem);
  box-shadow: var(--shadow-md); position: sticky; top: 110px;
}
.particuliers-compare-title {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 500;
  color: var(--ink); margin: 0 0 1.25rem; text-align: center;
}

.compare-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.compare-col {
  border-radius: var(--radius-lg); padding: 1.1rem 1rem 1rem;
  display: flex; flex-direction: column; gap: 0.85rem; min-height: 100%;
}
.compare-col-agency {
  background: var(--cream-2); border: 1px solid var(--line);
}
.compare-col-direct {
  background: #fff; border: 2px solid var(--accent);
  box-shadow: 0 8px 28px rgba(193, 135, 63, 0.18); position: relative;
}
.compare-col-label {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.compare-col-direct .compare-col-label { color: var(--accent-2); }
.compare-badge {
  align-self: flex-start; margin-top: -0.35rem;
  background: var(--accent); color: #fff;
  font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  padding: 0.3rem 0.65rem; border-radius: 50px;
}

.compare-lines { margin: 0; }
.compare-line {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem;
  padding: 0.55rem 0; border-bottom: 1px dashed var(--line);
}
.compare-col-agency .compare-line { border-color: rgba(16, 51, 63, 0.12); }
.compare-line:last-child { border-bottom: none; }
.compare-line dt { font-size: 0.78rem; color: var(--muted); margin: 0; }
.compare-line dd {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 500;
  color: var(--ink); margin: 0; white-space: nowrap;
}
.compare-line-fees dd { color: #b85c4a; }
.compare-line-zero dd { color: #3d7a52; }

.compare-total {
  margin-top: auto; padding-top: 0.85rem;
  border-top: 2px solid var(--line);
  display: flex; flex-direction: column; gap: 0.2rem;
}
.compare-col-direct .compare-total { border-color: rgba(193, 135, 63, 0.35); }
.compare-total span {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.compare-total strong {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; line-height: 1.1;
}
.compare-total-high {
  color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px;
}
.compare-total-low { color: var(--ink); font-size: 1.55rem !important; }

.compare-savings {
  margin-top: 1.25rem; padding: 1.15rem 1.2rem;
  background: linear-gradient(135deg, rgba(193, 135, 63, 0.14), rgba(193, 135, 63, 0.06));
  border: 1px solid rgba(193, 135, 63, 0.35); border-radius: var(--radius-lg);
  text-align: center;
}
.compare-savings-inner {
  display: flex; align-items: center; justify-content: center; gap: 0.85rem;
}
.compare-savings-arrow {
  width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
  background: var(--accent); color: #fff; border-radius: 50%;
  font-size: 1.1rem; font-weight: 600; flex-shrink: 0;
}
.compare-savings-label {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 600; margin: 0 0 0.15rem; text-align: left;
}
.compare-savings-value {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 600; color: var(--ink); line-height: 1; margin: 0; text-align: left;
}
.compare-savings-note {
  margin: 0.85rem 0 0; font-size: 0.88rem; color: var(--text); line-height: 1.5;
}
.compare-savings-note strong { color: var(--accent-2); font-weight: 600; }
.compare-disclaimer {
  margin: 0.85rem 0 0; font-size: 0.72rem; color: var(--muted); line-height: 1.45; text-align: center;
}

/* ===================== LOCALISATION ===================== */
.localisation { background: var(--cream-2); }
.localisation-head {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.localisation-lead {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}
.localisation-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  align-items: stretch;
}
.localisation-photo {
  position: relative;
  margin: 0;
  min-height: 100%;
  display: flex;
}
.localisation-photo img {
  width: 100%;
  height: 100%;
  min-height: clamp(420px, 52vw, 560px);
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 45%;
}
.localisation-photo-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(to top, rgba(11, 37, 48, 0.78), transparent);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.localisation-aside {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  min-height: 100%;
}
.loc-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.loc-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.loc-card-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  background: var(--cream-2);
  border-radius: 50%;
  font-size: 1.05rem;
  line-height: 1;
}
.loc-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.loc-card-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.loc-card-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.15;
}
.localisation-map-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}
.loc-map-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.localisation-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  border: 1px solid var(--line);
  flex: 1;
}
.lifestyle-map-canvas { width: 100%; height: clamp(240px, 34vw, 320px); background: var(--sand); z-index: 1; }
.lifestyle-map-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem 1.1rem;
  margin: 0; padding: 0.85rem 1rem;
  background: var(--surface); border-top: 1px solid var(--line);
  font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted);
}
.lifestyle-map-legend li { display: inline-flex; align-items: center; gap: 0.45rem; }
.lifestyle-legend-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(16, 51, 63, 0.12);
}
.lifestyle-legend-centre { background: var(--sea); }
.lifestyle-legend-maison { background: var(--accent); }
.lifestyle-legend-plage { background: #5ba4c9; }
.lifestyle-legend-walk {
  margin-left: auto; color: var(--ink); font-weight: 500;
  font-family: var(--font-display); font-size: 0.88rem;
}

/* Leaflet — pins & popups */
.lifestyle-pin { background: transparent; border: none; }
.lifestyle-pin-dot {
  display: block; width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 4px 14px rgba(16, 51, 63, 0.28);
}
.lifestyle-pin-centre .lifestyle-pin-dot { background: var(--sea); }
.lifestyle-pin-maison .lifestyle-pin-dot {
  width: 22px; height: 22px; margin: -2px 0 0 -2px;
  background: var(--accent); box-shadow: 0 0 0 6px rgba(193, 135, 63, 0.25), 0 4px 14px rgba(16, 51, 63, 0.28);
}
.lifestyle-pin-plage .lifestyle-pin-dot { background: #5ba4c9; }
.lifestyle-map .leaflet-popup-content-wrapper {
  border-radius: 10px; box-shadow: var(--shadow-md); font-family: var(--font-sans);
}
.lifestyle-map .leaflet-popup-content { margin: 0.65rem 0.85rem; font-size: 0.88rem; line-height: 1.45; }
.lifestyle-map .leaflet-popup-content strong { color: var(--ink); font-family: var(--font-display); font-weight: 500; }
.lifestyle-popup-hint { color: var(--muted); font-size: 0.82rem; }
.lifestyle-map .leaflet-control-zoom a {
  color: var(--ink) !important; border-color: var(--line) !important;
}
.lifestyle-map .leaflet-control-attribution {
  font-size: 0.62rem; background: rgba(255,255,255,0.85) !important;
}

@media (max-width: 620px) {
  .lifestyle-legend-walk { margin-left: 0; width: 100%; }
}

/* Bourg — vie locale (sans distances, contenu factuel) */
.bourg-vie {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line);
}
.bourg-vie-head {
  max-width: 42rem;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}
.bourg-vie-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}
.bourg-vie-lead {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 52ch;
}
.bourg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.1rem);
}
.bourg-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.15rem, 2.5vw, 1.45rem);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bourg-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: var(--cream);
  border-radius: 50%;
  color: var(--accent-2);
}
.bourg-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}
.bourg-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
}
.bourg-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.bourg-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}
.bourg-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.bourg-list strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 900px) {
  .bourg-grid { grid-template-columns: 1fr; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .bourg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bourg-card:last-child { grid-column: 1 / -1; }
}


/* ===================== ALERTE VENTE ===================== */
.alerte-vente { background: var(--cream-2); }
.alerte-vente-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 3rem);
  max-width: 920px; margin: 0 auto; align-items: start;
}
.alerte-vente-intro p { color: var(--muted); }
.alerte-vente-intro .lead { color: var(--text); }
.alerte-vente-triggers {
  margin: 1.4rem 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.65rem 1.2rem;
}
.alerte-vente-triggers li {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.92rem; color: var(--text); font-weight: 500;
}
.alerte-vente-icon { font-size: 1rem; line-height: 1; }
.alerte-vente-reassure {
  margin-top: 1.1rem; font-size: 0.88rem; color: var(--muted); max-width: 38ch;
}
.alerte-vente-form {
  background: var(--surface); color: var(--text);
  padding: clamp(1.6rem, 3vw, 2.2rem); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.field-check { margin-bottom: 1.1rem; }
.check-label {
  display: flex; align-items: flex-start; gap: 0.65rem;
  font-size: 0.86rem; line-height: 1.45; color: var(--muted); cursor: pointer;
}
.check-label input[type="checkbox"] {
  width: 1.05rem; height: 1.05rem; margin-top: 0.15rem; flex-shrink: 0;
  accent-color: var(--accent);
}
.field.invalid .check-label { color: #9b3d34; }

/* ===================== CONTACT ===================== */
.contact { background: var(--ink); color: #fff; padding-top: clamp(9.5rem, 14vw, 13rem); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 4vw, 3rem); max-width: 960px; margin: 0 auto; }
.contact-info .section-title { color: #fff; }
.contact-info p { color: rgba(255,255,255,0.78); }
.contact-details { margin-top: 2rem; }
.contact-details li { display: flex; flex-direction: column; gap: 0.15rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
.ci-label { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.ci-value { font-size: 1.1rem; color: #fff; transition: color 0.3s; }
a.ci-value:hover { color: var(--accent); }

.contact-form { background: var(--surface); color: var(--text); padding: clamp(1.8rem, 4vw, 3rem); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.field { margin-bottom: 1.3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.45rem; }
.field-optional { text-transform: none; letter-spacing: 0; font-size: 0.72rem; color: var(--muted); opacity: 0.85; }
.field input, .field textarea {
  width: 100%; padding: 0.95rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 0.98rem; color: var(--text); background: var(--cream); transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(193,135,63,0.14); }
.field textarea { resize: vertical; }
.error { display: block; color: #c0392b; font-size: 0.78rem; margin-top: 0.35rem; min-height: 1rem; }
.field.invalid input, .field.invalid textarea { border-color: #c0392b; }
.form-success { margin: 1rem 0 0; padding: 1rem 1.1rem; background: #eef6ee; border: 1px solid #cfe6cf; border-radius: var(--radius); color: #2e6b34; font-size: 0.92rem; }
.form-error { margin: 1rem 0 0; padding: 1rem 1.1rem; background: #fdf0ef; border: 1px solid #efc5c0; border-radius: var(--radius); color: #9b3d34; font-size: 0.92rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn.is-loading { opacity: 0.72; pointer-events: none; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--ink-2); color: rgba(255,255,255,0.72); padding: 3.5rem 0; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; color: #fff; font-family: var(--font-display); font-size: 1.2rem; }
.footer-brand .brand-mark { width: 40px; height: 40px; font-size: 0.9rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer-nav a { font-size: 0.85rem; letter-spacing: 0.06em; color: rgba(255,255,255,0.8); transition: color 0.3s; }
.footer-nav a:hover { color: var(--accent); }
.footer-note, .footer-copy { margin: 0; font-size: 0.83rem; }
.footer-copy { opacity: 0.55; }

/* ===================== CTA FLOTTANT ===================== */
.floating-actions {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  display: flex; align-items: stretch; gap: 0.65rem;
  opacity: 0; transform: translateY(20px) scale(0.95); pointer-events: none;
  transition: all 0.4s var(--ease);
}
.floating-actions.show { opacity: 1; transform: none; pointer-events: auto; }
.floating-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  padding: 1rem 1.6rem; border-radius: 50px; box-shadow: var(--shadow-md);
  transition: all 0.35s var(--ease);
}
.floating-cta:hover { background: var(--accent-2); transform: translateY(-3px); }
.floating-share {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  padding: 0 1.15rem; border-radius: 50px; box-shadow: var(--shadow-md);
  cursor: pointer; transition: all 0.35s var(--ease);
}
.floating-share svg { width: 18px; height: 18px; flex-shrink: 0; }
.floating-share:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-3px);
}
.floating-share-label { white-space: nowrap; }

/* ===================== LIGHTBOX ===================== */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 24, 31, 0.96); display: flex; align-items: center; justify-content: center; padding: 2rem; opacity: 0; animation: fadeIn 0.3s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; max-width: 92vw; max-height: 86vh; text-align: center; }
.lightbox-figure img { max-width: 92vw; max-height: 78vh; object-fit: contain; border-radius: var(--radius); margin: 0 auto; box-shadow: var(--shadow-lg); }
.lightbox-figure figcaption { color: rgba(255,255,255,0.85); margin-top: 1.1rem; font-size: 0.95rem; letter-spacing: 0.05em; }
.lightbox-close { position: absolute; top: 22px; right: 30px; background: none; border: none; color: #fff; font-size: 2.6rem; cursor: pointer; line-height: 1; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none; color: #fff; width: 54px; height: 54px; border-radius: 50%; font-size: 2rem; cursor: pointer; transition: background 0.3s; }
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }

/* ===================== PARTAGE ===================== */
.share-sheet {
  position: fixed; inset: 0; z-index: 210;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 1rem;
}
.share-sheet[hidden] { display: none; }
.share-sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 24, 31, 0.55);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.25s forwards;
}
.share-sheet-panel {
  position: relative; z-index: 1;
  width: min(100%, 420px);
  background: var(--cream);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-lg);
  animation: shareSlideUp 0.35s var(--ease) forwards;
}
@keyframes shareSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.share-sheet-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; color: var(--muted);
  font-size: 1.75rem; line-height: 1; cursor: pointer;
  padding: 0.25rem 0.5rem; transition: color 0.25s;
}
.share-sheet-close:hover { color: var(--ink); }
.share-sheet-title {
  margin: 0 2rem 0.35rem 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
}
.share-sheet-lead {
  margin: 0 0 1.35rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}
.share-sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.share-option {
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
  padding: 1rem 0.75rem;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.share-option:hover {
  border-color: var(--accent);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.share-option-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
}
.share-option-icon svg { width: 22px; height: 22px; }
.share-option-icon-native { background: var(--ink); }
.share-option-icon-whatsapp { background: #25d366; }
.share-option-icon-email { background: var(--accent); color: #fff; }
.share-option-icon-facebook { background: #1877f2; }
.share-option-icon-copy { background: var(--ink-2); color: #fff; }
.share-option-label { font-weight: 500; text-align: center; line-height: 1.25; }
#shareNative:not([hidden]) { grid-column: 1 / -1; }
.share-toast {
  position: fixed; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 220;
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 1.35rem;
  border-radius: 50px;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.share-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.share-toast[hidden] { display: block; }

@media (min-width: 621px) {
  .share-sheet { align-items: center; padding: 2rem; }
  .share-sheet-panel { padding: 2rem 1.75rem 1.75rem; }
}

/* ===================== REVEAL + CASCADE ===================== */
/* Arrivée verticale en fondu via @keyframes (n'entre pas en conflit avec
   les transforms de survol). La cascade se fait via animation-delay (JS). */
.reveal { opacity: 0; }
.reveal.visible { opacity: 1; animation: revealUp 0.85s var(--ease) backwards; }
@keyframes revealUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===================== BARRE DE PROGRESSION ===================== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  z-index: 200; background: linear-gradient(90deg, var(--sea), var(--accent));
  box-shadow: 0 0 12px rgba(193,135,63,0.5);
  transition: width 0.1s linear;
}

/* ===================== VAGUES ANIMÉES ===================== */
.wave { position: absolute; left: 0; width: 100%; line-height: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.wave svg { position: relative; display: block; width: 200%; height: 56px; }
.wave-top { top: -1px; }
.wave-top svg { animation: waveShift 14s linear infinite; }
.wave-top path { fill: var(--cream-2); }
.wave-bottom { bottom: -1px; }
.wave-bottom svg { animation: waveShift 18s linear infinite reverse; }
.wave-bottom path { fill: var(--cream); }
@keyframes waveShift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.highlight, .contact { overflow: hidden; }
.highlight .container, .contact .container { position: relative; z-index: 4; }

/* ===================== SURVOL SOBRE DES CARTES ===================== */
/* Léger soulèvement fluide au survol (pas d'effet 3D gadget). */
.gallery-item {
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}

/* ===================== REFLET SUR LES BOUTONS ===================== */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg); transition: none;
}
.btn-primary:hover::after { animation: shine 0.8s var(--ease); }
@keyframes shine { to { left: 140%; } }

/* ===================== KEN BURNS (photo vedette) ===================== */
.gallery-feature img { animation: kenBurns 18s ease-in-out infinite alternate; }
.gallery-feature:hover img { animation-play-state: paused; }
@keyframes kenBurns { from { transform: scale(1); } to { transform: scale(1.12); } }

/* ===================== CADRE PARALLAXE (dépendance) ===================== */
.highlight-media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.highlight-media-frame .section-figure-caption { border-radius: 0; }
.highlight-media-frame img { transform: scale(1.18); will-change: transform; aspect-ratio: 4 / 3.2; object-fit: cover; width: 100%; box-shadow: none; border-radius: 0; }

/* Flottement doux du badge + CTA flottant */
.highlight-badge { animation: floaty 4s ease-in-out infinite; }
.floating-actions.show { animation: ctaPop 0.5s var(--ease); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes ctaPop { from { transform: translateY(20px) scale(0.9); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-kicker, .hero-eyebrow, .hero-title, .hero-sub, .hero-actions, .hero-facts { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero-media, .hero-bg, .gallery-feature img, .highlight-badge, .wave svg { animation: none !important; }
  .highlight-media-frame img { transform: none; }
  html { scroll-behavior: auto; }
}

/* ===================== BALADE PHOTO ===================== */
.section-lead {
  max-width: 620px; margin: 0.8rem auto 0; text-align: center; color: var(--muted);
  font-size: 1.05rem; line-height: 1.65;
}

.tour-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 1.5rem;
  align-items: start;
}

.tour-main {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.tour-toolbar {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.4rem 1rem;
  border-bottom: 1px solid var(--line);
}

.tour-zone {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.35rem;
}

.tour-title {
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 500;
  margin: 0 0 0.25rem; line-height: 1.15;
}

.tour-caption { margin: 0; color: var(--muted); font-size: 0.92rem; }

.tour-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

.tour-action {
  border: 1px solid var(--line); background: var(--cream);
  color: var(--ink); font-family: var(--font-sans); font-size: 0.82rem;
  padding: 0.55rem 0.85rem; border-radius: var(--radius); cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}
.tour-action:hover { background: #fff; border-color: var(--accent); }

.tour-viewer {
  position: relative; aspect-ratio: 16 / 10; background: var(--ink-2);
  overflow: hidden;
}
.tour-stage { position: relative; }
.tour-viewer.is-changing .tour-image { opacity: 0.35; transform: scale(1.02); }

.tour-alternate-badge,
.tour-alternate-toggle {
  display: none !important;
}
.tour-alternate-toggle.is-shown {
  display: inline-flex !important;
}
.tour-alternate-badge.is-shown {
  display: block !important;
}

.tour-alternate-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  margin: 0;
  max-width: calc(100% - 28px);
  padding: 0.45rem 0.85rem;
  border-radius: 50px;
  background: rgba(16, 51, 63, 0.88);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.tour-alternate-toggle {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50px;
  background: rgba(16, 51, 63, 0.82);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 8px 24px rgba(11, 37, 48, 0.28);
  backdrop-filter: blur(8px);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.tour-alternate-toggle:hover {
  background: rgba(193, 135, 63, 0.92);
  border-color: rgba(255, 255, 255, 0.75);
  transform: translateY(-1px);
}
.tour-alternate-toggle[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.95);
}
.tour-viewer.is-alternate::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(11, 37, 48, 0.18), transparent 35%);
}

.tour-image {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease);
}

.tour-hotspots { position: absolute; inset: 0; pointer-events: none; }

.tour-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto; border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(193, 135, 63, 0.92); color: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,0.28);
  display: grid; place-items: center;
  animation: tourPulse 2s ease-in-out infinite;
  transition: transform 0.2s, background 0.2s;
}
.tour-hotspot::before {
  content: ""; width: 10px; height: 10px;
  border-top: 2px solid #fff; border-right: 2px solid #fff;
  transform: rotate(45deg) translate(-1px, 1px);
}

/* Avancer — flèche tout droit (↑) */
.tour-hotspot--forward::before {
  transform: rotate(-45deg) translate(0, 2px);
}

/* Entrer / pièce adjacente — flèche diagonale (↗) */
.tour-hotspot--enter::before {
  transform: rotate(45deg) translate(-1px, 1px);
}

/* Retour / sortie — opposé strict de Avancer (↓) */
.tour-hotspot--back::before {
  transform: rotate(-45deg) translate(0, 2px) rotate(180deg);
}

/* Gauche / droite — perpendiculaires à Avancer */
.tour-hotspot--left::before {
  transform: rotate(-45deg) translate(0, 2px) rotate(-90deg);
}

.tour-hotspot--right::before {
  transform: rotate(-45deg) translate(0, 2px) rotate(90deg);
}

/* Diagonale gauche (↖) — miroir de la flèche diagonale droite */
.tour-hotspot--diag-left::before {
  transform: rotate(45deg) translate(-1px, 1px) scaleX(-1);
}

/* Se retourner — demi-tour (↶) */
.tour-hotspot--turn::before {
  content: "";
  width: 12px;
  height: 6px;
  border: 2px solid #fff;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  transform: translateY(2px);
}
.tour-hotspot--turn::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-right: 5px solid #fff;
  transform: translate(-7px, 5px);
}

.tour-hotspot:hover { transform: translate(-50%, -50%) scale(1.08); background: var(--accent-2); }

.tour-hotspot-label {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; background: rgba(16, 51, 63, 0.88); color: #fff;
  font-size: 0.75rem; letter-spacing: 0.04em; padding: 0.35rem 0.65rem;
  border-radius: 4px; pointer-events: none;
}

@keyframes tourPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(193, 135, 63, 0.45); }
  50% { box-shadow: 0 0 0 12px rgba(193, 135, 63, 0); }
}

.tour-nav {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  padding: 1rem 1.4rem 1.3rem;
  border-top: 1px solid var(--line);
}

.tour-nav-btn {
  border: 1px solid var(--line); background: var(--cream-2);
  font-family: var(--font-sans); font-size: 0.82rem;
  padding: 0.5rem 0.9rem; border-radius: 999px; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.tour-nav-btn:hover { background: #fff; border-color: var(--accent); color: var(--accent-2); }

.tour-sidebar {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 1.2rem;
  position: sticky; top: 100px;
}

.tour-map-title {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1rem;
}

.tour-map-group + .tour-map-group { margin-top: 1rem; }

.tour-map-heading {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--sea); margin: 0 0 0.45rem;
}

.tour-map-list { display: flex; flex-direction: column; gap: 0.35rem; }

.tour-map-btn {
  text-align: left; border: none; background: transparent;
  font-family: var(--font-sans); font-size: 0.88rem; color: var(--text);
  padding: 0.45rem 0.55rem; border-radius: var(--radius); cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tour-map-btn:hover { background: var(--cream-2); }
.tour-map-btn.is-active { background: rgba(193, 135, 63, 0.14); color: var(--accent-2); font-weight: 500; }

.tour-hint {
  margin: 1.2rem 0 0; font-size: 0.78rem; line-height: 1.5; color: var(--muted);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1000px) {
  .intro-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "media"
      "details";
  }
  .intro-media img {
    min-height: clamp(240px, 52vw, 360px);
    aspect-ratio: 16 / 10;
    height: auto;
  }
  .highlight-inner, .localisation-grid, .contact-inner, .section-split, .atouts-inner, .particuliers-inner, .alerte-vente-inner { grid-template-columns: 1fr; }
  .tour-layout { grid-template-columns: 1fr; }
  .tour-sidebar { position: static; }
  .highlight-media { order: -1; max-width: 560px; }
  .contact-form { order: 2; }
  .gallery-feature { grid-column: span 2; grid-row: span 1; aspect-ratio: 16 / 9; align-self: auto; }
  .atouts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .localisation-photo img { min-height: clamp(260px, 55vw, 380px); }
  .lifestyle-map-canvas { height: clamp(260px, 55vw, 340px); }
}

@media (max-width: 820px) {
  .nav {
    position: fixed; top: 0; right: 0;
    width: min(84vw, 340px); height: 100vh;
    background: var(--cream); flex-direction: column; align-items: flex-start; justify-content: center;
    padding: 3rem 2.4rem; gap: 1.8rem;
    transform: translateX(100%); transition: transform 0.45s var(--ease); box-shadow: var(--shadow-lg);
  }
  .nav.open { transform: translateX(0); }
  .nav-link { color: var(--ink); font-size: 1.15rem; }
  .scrolled .nav-link { color: var(--ink); }
  .nav-toggle { display: flex; }
  .nav-toggle.open span { background: var(--ink); }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .header-share,
  .hero-share { display: none; }

  .floating-actions {
    left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom, 16px));
    gap: 0.5rem;
  }
  .floating-cta,
  .floating-share {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 1rem 0.75rem;
    text-align: center;
  }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .share-toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

  .hero-facts-inner { flex-wrap: wrap; }
  .hero-fact { flex: 1 1 50%; min-width: 50%; }
  .hero-fact:nth-child(1), .hero-fact:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.14); }
  .hero-kicker { max-width: 100%; }
  .hero-kicker-text { line-height: 1.35; }
  .hero-fact + .hero-fact:nth-child(odd) { border-left: none; }
  .hero-fact-cta { display: none; }
}

@media (max-width: 620px) {
  .container { padding: 0 20px; }
  .section { padding: clamp(3.25rem, 8vw, 5rem) 0; }
  .section-head { margin-bottom: clamp(2rem, 5vw, 2.75rem); }
  .intro-buildings { grid-template-columns: 1fr; }
  .intro-dpe-scales { grid-template-columns: 1fr; }
  .intro-facts { grid-template-columns: 1fr; }
  .particuliers-compare { position: static; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-col-direct { order: -1; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    grid-auto-rows: auto;
    align-items: start;
  }
  .gallery-item,
  .gallery-feature {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
    align-self: auto;
    height: auto;
  }
  .gallery-feature { grid-column: 1 / -1; }
  .gallery-grid .gallery-item:last-child { grid-column: 1 / -1; }
  .gallery-feature img { animation: none; transform: none; }
  .gallery-tag { top: 12px; left: 12px; font-size: 0.62rem; padding: 0.35rem 0.75rem; }
  .atouts-list { grid-template-columns: 1fr; }
  .tour-toolbar { flex-direction: column; }
  .tour-hotspot-label { display: none; }
  .tour-alternate-toggle.is-shown {
    position: static;
    width: auto;
    max-width: none;
    margin: 0.65rem 1rem 0;
    min-height: 40px;
    padding: 0.5rem 0.9rem;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    box-shadow: none;
    border-radius: var(--radius);
    border-color: var(--line);
    background: var(--cream-2);
    color: var(--ink);
  }
  .tour-alternate-toggle.is-shown[aria-pressed="true"] {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
  }
  .tour-alternate-badge {
    top: 10px;
    left: 10px;
    right: auto;
    max-width: calc(100% - 20px);
    font-size: 0.65rem;
    padding: 0.35rem 0.65rem;
  }
  .field-row { grid-template-columns: 1fr; }
  .field input, .field textarea { font-size: 1rem; }
  .loc-cards { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .hero-actions .btn { width: 100%; }
}

.footer-seo { margin: 2rem 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-seo-title { color: rgba(255,255,255,0.9); font-size: 0.9rem; margin-bottom: 1rem; font-weight: 500; }
.footer-seo-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-seo-links a { color: rgba(255,255,255,0.6); font-size: 0.8rem; text-decoration: none; transition: color 0.3s; }
.footer-seo-links a:hover { color: var(--accent); }

