/* Archivo (SIL OFL) served by the site itself: no request to Google, no IP sent there. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/archivo-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* theme: idemmo — Ayrton Silva's seller site (estimation-luxembourg.lu).
 * Editorial « dossier » direction: navy ink on paper, Archivo 400-700, hairline
 * rules, one layered hero, scroll reveals driven by assets/site.js.
 *
 * Brand rules kept by construction:
 * - tokens from the idemmo kit (navy #102b45, paper #fbfaf7, ink2 #3a5573,
 *   rule #e2ddd4); forbidden colours absent;
 * - the house gradient (#e52d78 #ff8a18 #80c84b #12b8d7) appears ONLY as a thin
 *   rule (header, scroll progress, hero sheet top) or a small pill dot: never
 *   text, never a fill, never a logo;
 * - LIGHT is the default whatever the OS theme; dark is opt-in through the
 *   header toggle (html[data-theme="dark"], remembered in localStorage);
 * - type on the Tailwind scale (12 14 16 18 20 24 30 36 48 60 72), spacing on
 *   2 4 8 12 16 24 32 40 48 64 80 96, no weight above 700;
 * - motion: transform + opacity only, cubic-bezier(.22,1,.36,1), and
 *   prefers-reduced-motion turns every movement off;
 * - 390 px first, 16 px gutter, no horizontal scroll, focus always visible,
 *   text contrast >= 4.5:1. */

:root {
  color-scheme: light;
  --navy: #102b45;
  --paper: #fbfaf7;
  --paper-2: #f3f1ec;
  --paper-3: #e9e6df;
  --panel: #ffffff;
  --ink: #102b45;
  --ink2: #3a5573;
  --ink3: #56708b;
  --muted-word: rgba(16, 43, 69, .56);
  --rule: #e2ddd4;
  --accent: #102b45;
  --accent-text: #ffffff;
  --band: #102b45;
  --band-ink: #ffffff;
  --band-ink2: #d7e0ea;
  --band-rule: rgba(255, 255, 255, .16);
  --wa: #0f6b3f;
  --wa-text: #ffffff;
  --asking: #8a3b00;
  --asking-bg: #fff1e3;
  --head-bg: rgba(251, 250, 247, .78);
  --gradient: linear-gradient(90deg, #e52d78 0%, #ff8a18 33%, #80c84b 66%, #12b8d7 100%);
  --font: "Archivo", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --r-ctl: 12px;
  --r-card: 16px;
  --r-sheet: 24px;
  --shadow: 0 1px 2px rgba(16, 43, 69, .05), 0 8px 24px rgba(16, 43, 69, .06);
  --shadow-lift: 0 2px 4px rgba(16, 43, 69, .06), 0 24px 48px rgba(16, 43, 69, .12);
  --gutter: 16px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0d1a2a;
  --paper-2: #122339;
  --paper-3: #18304a;
  --panel: #142940;
  --ink: #f3f1ec;
  --ink2: #c9d3de;
  --ink3: #a8b7c6;
  --muted-word: rgba(243, 241, 236, .56);
  --rule: #2a4059;
  --accent: #f3f1ec;
  --accent-text: #102b45;
  --band: #081320;
  --asking: #ffb98a;
  --asking-bg: #3a2414;
  --head-bg: rgba(13, 26, 42, .78);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 24px 48px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, svg, iframe, table { max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 16px; text-wrap: pretty; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; margin: 0 0 16px; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; text-wrap: balance; }
h1 { font-size: 36px; line-height: 40px; font-weight: 700; letter-spacing: -0.035em; }
/* long single words (de « Immobilienbewertung ») at phone width: a smaller step, then a real hyphen, never a cut letter */
@media (max-width: 420px) { h1 { font-size: 32px; line-height: 36px; } }
h2 { font-size: 30px; line-height: 36px; letter-spacing: -0.03em; }
h3, h2.h3 { font-size: 20px; line-height: 28px; letter-spacing: -0.01em; }
@media (min-width: 720px) {
  h1 { font-size: 60px; line-height: 60px; }
  h2 { font-size: 36px; line-height: 40px; }
}
@media (min-width: 1100px) { h1 { font-size: 72px; line-height: 72px; } }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

:focus-visible { outline: 3px solid #ff8a18; outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 12px 16px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; top: 8px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* scroll progress: a thin house-gradient rule, scaled by site.js */
.progress { position: fixed; left: 0; top: 0; right: 0; height: 2px; background: var(--gradient); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); z-index: 60; pointer-events: none; }

/* header: a compact bar floating off the top edge */
.site-head { position: sticky; top: 0; z-index: 40; padding: 8px 0 0; }
.nav-shell { max-width: 1400px; margin: 0 auto; padding: 0 8px; }
@media (min-width: 720px) { .site-head { padding-top: 12px; } .nav-shell { padding: 0 24px; } }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 56px; padding: 8px 8px 8px 16px; background: var(--head-bg); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border: 1px solid var(--rule); border-radius: 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: box-shadow .3s var(--ease); }
.site-head.scrolled .nav-inner { box-shadow: var(--shadow-lift); }
.brand-rule { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gradient); opacity: .9; }
/* brand = Ayrton Silva first, idemmo second (small logo in the sub line) */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; min-width: 0; }
.brand-mono { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--accent-text); font-weight: 700; font-size: 16px; line-height: 24px; letter-spacing: -0.02em; position: relative; overflow: hidden; }
.brand-mono::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gradient); }
.brand-id { display: grid; gap: 2px; min-width: 0; }
.brand-name { font-size: 18px; line-height: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.brand-sub { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 14px; font-weight: 500; color: var(--ink3); white-space: nowrap; }
.brand-logo { height: 12px; width: auto; display: block; }
.brand-logo-dark { display: none; }
html[data-theme="dark"] .brand-logo { display: none; }
html[data-theme="dark"] .brand-logo-dark { display: block; }
@media (max-width: 420px) { .brand-sub { display: none; } .brand-mono { width: 36px; height: 36px; } }
.nav-links { display: flex; align-items: center; gap: 4px; font-size: 14px; line-height: 20px; font-weight: 500; }
.nav-links a { white-space: nowrap; text-decoration: none; color: var(--ink2); padding: 8px 10px; border-radius: 10px; transition: background-color .3s var(--ease), color .3s var(--ease); }
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav-links .btn { padding: 8px 12px; font-size: 14px; line-height: 20px; }
.nav-links .btn-wa, .nav-links .btn-wa:hover { color: var(--wa-text); background: var(--wa); }
.nav-links .btn-primary, .nav-links .btn-primary:hover { color: var(--accent-text); background: var(--accent); }
.nav-tools { display: flex; align-items: center; gap: 4px; }
.lang-nav { display: flex; gap: 2px; font-size: 12px; line-height: 16px; font-weight: 600; }
.lang-nav a { padding: 8px; border-radius: 8px; text-decoration: none; color: var(--ink3); transition: background-color .3s var(--ease); }
.lang-nav a:hover { background: var(--paper-2); }
.lang-nav a.active { background: var(--accent); color: var(--accent-text); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--rule); background: var(--panel); color: var(--ink); cursor: pointer; transition: transform .3s var(--ease), background-color .3s var(--ease); }
.icon-btn:hover { background: var(--paper-2); }
.icon-btn:active { transform: scale(.96); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .i-moon { display: none; }
html[data-theme="dark"] .theme-toggle .i-sun { display: none; }
html[data-theme="dark"] .theme-toggle .i-moon { display: block; }
.menu-toggle { display: none; }
.menu-toggle .bar { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease), opacity .3s var(--ease); }
.menu-toggle .bars { display: grid; gap: 4px; }
.menu-open .menu-toggle .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle .bar:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1439px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-grid; }
}
@media (max-width: 420px) { .lang-nav a { padding: 8px 3px; } .nav-inner { gap: 8px; padding-left: 12px; } .brand { gap: 8px; } .nav-tools { gap: 2px; } }

/* full-height mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 35; background: var(--head-bg); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); padding: 96px var(--gutter) 32px; display: flex; flex-direction: column; gap: 8px; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s linear .3s; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
.mobile-menu a { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; padding: 8px 0; opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.mobile-menu .btn { font-size: 16px; line-height: 24px; text-align: center; margin-top: 8px; }
.menu-open .mobile-menu a { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 60ms); }
@media (min-width: 1440px) { .mobile-menu { display: none; } }
.menu-open { overflow: hidden; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--r-ctl); font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; font-size: 16px; line-height: 24px; transition: transform .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.btn-primary:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.btn-primary::after { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'><path d='M221.66 133.66l-72 72a8 8 0 0 1-11.32-11.32L196.69 136H40a8 8 0 0 1 0-16h156.69l-58.35-58.34a8 8 0 0 1 11.32-11.32l72 72a8 8 0 0 1 0 11.32z'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'><path d='M221.66 133.66l-72 72a8 8 0 0 1-11.32-11.32L196.69 136H40a8 8 0 0 1 0-16h156.69l-58.35-58.34a8 8 0 0 1 11.32-11.32l72 72a8 8 0 0 1 0 11.32z'/></svg>") center / contain no-repeat; transition: transform .3s var(--ease); }
.btn-primary:hover::after { transform: translateX(2px); }
.nav-links .btn-primary::after, .sticky-cta .btn-primary::after { display: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { background: var(--paper-2); }
/* a row of buttons in a paragraph: they wrap with a gap, never touch */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-wa { background: var(--wa); color: var(--wa-text); border-color: var(--wa); }
.btn-wa:hover { transform: translateY(-1px); }
.btn-wa::before { content: ""; display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: #fff; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18a8 8 0 0 1-4.1-1.1l-.3-.2-3 .8.8-2.9-.2-.3A8 8 0 1 1 12 20zm4.4-6c-.2-.1-1.4-.7-1.7-.8-.2-.1-.4-.1-.5.1l-.8 1c-.1.2-.3.2-.5.1a6.6 6.6 0 0 1-3.3-2.9c-.2-.4.3-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.5-.4h-.5c-.2 0-.5.1-.7.3-.2.3-.9.9-.9 2.2s.9 2.5 1.1 2.7c.1.2 1.9 2.8 4.5 3.9 1.7.7 2.3.8 3.1.6.5-.1 1.4-.6 1.6-1.1.2-.6.2-1 .1-1.1l-.4-.2z'/></svg>") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18a8 8 0 0 1-4.1-1.1l-.3-.2-3 .8.8-2.9-.2-.3A8 8 0 1 1 12 20zm4.4-6c-.2-.1-1.4-.7-1.7-.8-.2-.1-.4-.1-.5.1l-.8 1c-.1.2-.3.2-.5.1a6.6 6.6 0 0 1-3.3-2.9c-.2-.4.3-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.5-.4h-.5c-.2 0-.5.1-.7.3-.2.3-.9.9-.9 2.2s.9 2.5 1.1 2.7c.1.2 1.9 2.8 4.5 3.9 1.7.7 2.3.8 3.1.6.5-.1 1.4-.6 1.6-1.1.2-.6.2-1 .1-1.1l-.4-.2z'/></svg>") center / contain no-repeat; }
.btn-link { background: none; border: 0; color: var(--ink2); text-decoration: underline; font: inherit; cursor: pointer; padding: 8px 0; }

/* hero */
.hero { padding: 40px 0 48px; position: relative; overflow-x: clip; }
@media (min-width: 900px) { .hero { padding: 80px 0 96px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 64px; } }
.hero h1 { max-width: 760px; }
/* the agent leads the hero */
.hero-agent { display: inline-flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.hero-agent-mono { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--accent); color: var(--accent-text); font-weight: 700; font-size: 24px; line-height: 32px; letter-spacing: -0.03em; position: relative; overflow: hidden; box-shadow: var(--shadow-lift); }
.hero-agent-mono::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gradient); }
.hero-agent p { margin: 0; display: grid; gap: 2px; }
.hero-agent strong { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.hero-agent p span { font-size: 14px; line-height: 20px; color: var(--ink2); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); margin-bottom: 16px; }
.hero .eyebrow { padding: 8px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--panel); }
.hero .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gradient); flex: none; }
.tldr { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-card); padding: 16px 20px; margin: 24px 0; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--ink2); max-width: 680px; }
.tldr p { margin: 0; }
.sub { color: var(--ink2); font-size: 18px; line-height: 28px; max-width: 680px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.hero-note { font-size: 14px; line-height: 20px; color: var(--ink3); margin: 0; }
.hero-sub-page, .hero-commune { padding-bottom: 32px; }
@media (min-width: 900px) { .hero-sub-page, .hero-commune { padding: 64px 0 48px; } }
/* commune name as a quiet outline watermark on the empty right of the hero */
.hero-ghost { display: none; }
@media (min-width: 1100px) {
  .hero-ghost { display: block; position: absolute; right: max(32px, calc((100vw - 1200px) / 2 + 32px)); top: 50%; font-size: min(128px, calc(30vw / (var(--len, 10) * .56))); line-height: 1; font-weight: 700; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px var(--rule); white-space: nowrap; overflow: hidden; text-overflow: clip; pointer-events: none; user-select: none; transform: translate3d(0, calc(var(--hy, 0) * 24px), 0); }
  .hero-commune .wrap { position: relative; }
  .hero-commune h1, .hero-commune .tldr, .hero-commune .sub { max-width: 600px; }
}
/* commune hero: the two headline figures on the right, from 1100 px; below, the market section carries them */
.hero-card.hero-figs { display: none; }
@media (min-width: 1100px) {
  .hero-card.hero-figs { display: block; position: absolute; right: 32px; top: 8px; width: min(380px, calc(100% - 700px)); }
  .hero-fig { display: grid; gap: 4px; margin: 0 0 20px; }
  .hero-fig .price-big { font-size: 40px; line-height: 44px; }
  .hero-figs-link { font-weight: 600; text-underline-offset: 4px; }
}

/* hero stage: three planes (back sheet, front sheet, floating tab) moving at
   different rates; site.js writes --sy (0..1 while the hero scrolls away) and
   --px/--py (pointer, -1..1). */
.hero-stage { position: relative; min-height: 360px; perspective: 1200px; }
.plane { will-change: transform; transition: transform .6s var(--ease); }
.plane-back { position: absolute; inset: 24px -8px -16px 32px; border-radius: var(--r-sheet); background: var(--paper-3); border: 1px solid var(--rule); transform: rotate(4deg) translate3d(calc(var(--px, 0) * -6px), calc(var(--sy, 0) * 40px + var(--py, 0) * -6px), 0); }
.plane-back::before { content: ""; position: absolute; inset: 32px; border-radius: 8px; background: repeating-linear-gradient(180deg, transparent 0 23px, var(--rule) 23px 24px); opacity: .7; }
.hero-card { position: relative; padding: 32px 24px 24px; border-radius: var(--r-sheet); background: var(--panel); border: 1px solid var(--rule); box-shadow: var(--shadow-lift); overflow: hidden; transform: translate3d(calc(var(--px, 0) * 4px), calc(var(--sy, 0) * -24px + var(--py, 0) * 4px), 0); }
.hero-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gradient); }
.hero-card .eyebrow { margin-bottom: 12px; }
.plane-tab { position: absolute; right: 16px; top: -20px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--accent); color: var(--accent-text); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; box-shadow: var(--shadow-lift); transform: rotate(2deg) translate3d(calc(var(--px, 0) * 10px), calc(var(--sy, 0) * -64px + var(--py, 0) * 10px), 0); }
.plane-tab::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gradient); }
.national-fact { font-size: 14px; line-height: 20px; padding: 12px 0; border-top: 1px solid var(--rule); margin: 0; }
.hero-card .eyebrow + .national-fact { border-top: 0; padding-top: 0; }
.national-fact .fact-text { font-size: 16px; line-height: 24px; color: var(--ink); font-weight: 500; }
.national-fact .fact-label { display: block; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink3); margin-bottom: 4px; }
.national-note { font-size: 12px; line-height: 16px; color: var(--ink3); margin: 12px 0 0; }

/* sections */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-alt { background: var(--paper-2); }
.section-lead { font-size: 18px; line-height: 28px; color: var(--ink2); max-width: 680px; }
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-card); box-shadow: var(--shadow); }
.two-col { display: grid; gap: 32px; }
@media (min-width: 820px) { .two-col { grid-template-columns: 1fr 1fr; gap: 64px; } }
.two-col h2 { font-size: 24px; line-height: 32px; }
.two-col p { color: var(--ink2); }
.section-kicker { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); margin-bottom: 12px; display: block; }

/* promise: sticky heading on the left, numbered ledger on the right */
.promise-layout { display: grid; gap: 32px; }
@media (min-width: 960px) { .promise-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; } .promise-aside { position: sticky; top: 112px; } }
.agent-card { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 12px; border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--panel); max-width: 400px; }
.agent-mono { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--accent-text); font-weight: 700; font-size: 18px; line-height: 28px; letter-spacing: -0.02em; }
.agent-card p { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink2); }
.agent-card strong { display: block; color: var(--ink); font-weight: 600; font-size: 16px; line-height: 24px; }
.promise-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: p; }
.promise { display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; padding: 24px 0; border-top: 1px solid var(--rule); }
.promise:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 720px) { .promise { grid-template-columns: 96px 1fr; padding: 32px 0; } }
.promise-num { grid-row: span 2; font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink3); font-variant-numeric: tabular-nums; }
.promise-num::before { content: "0"; }
@media (min-width: 720px) { .promise-num { font-size: 48px; line-height: 48px; } }
.promise h3 { font-size: 20px; line-height: 28px; margin: 0 0 8px; }
.promise p { color: var(--ink2); margin: 0; }

/* tagline: words light up one after another (site.js) */
.tagline-section { padding: 96px 0; }
@media (min-width: 900px) { .tagline-section { padding: 160px 0; } }
.tagline { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.03em; max-width: 900px; margin: 0; text-wrap: balance; }
@media (min-width: 720px) { .tagline { font-size: 48px; line-height: 52px; } }
@media (min-width: 1100px) { .tagline { font-size: 60px; line-height: 64px; } }
.js .tagline .w { color: var(--muted-word); transition: color .6s var(--ease); }
.js .tagline .w.on { color: var(--ink); }

/* commune grid */
.commune-grid { list-style: none; padding: 0; margin: 32px 0 24px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.commune-card { position: relative; padding: 20px; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s var(--ease); }
.commune-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--ink3); }
.commune-card a { text-decoration: none; }
.commune-card a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.commune-card a:focus-visible { outline: 0; }
.commune-card:has(a:focus-visible) { outline: 3px solid #ff8a18; outline-offset: 3px; }
.commune-name { font-weight: 600; font-size: 20px; line-height: 28px; letter-spacing: -0.01em; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.commune-name::after { content: ""; flex: none; width: 16px; height: 16px; background: var(--ink3); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'><path d='M200 64v104a8 8 0 0 1-16 0V83.31L69.66 197.66a8 8 0 0 1-11.32-11.32L172.69 72H88a8 8 0 0 1 0-16h104a8 8 0 0 1 8 8z'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'><path d='M200 64v104a8 8 0 0 1-16 0V83.31L69.66 197.66a8 8 0 0 1-11.32-11.32L172.69 72H88a8 8 0 0 1 0-16h104a8 8 0 0 1 8 8z'/></svg>") center / contain no-repeat; transition: transform .5s var(--ease), background-color .3s var(--ease); }
.commune-card:hover .commune-name::after { transform: translate(2px, -2px); background: var(--ink); }
.commune-figure { position: relative; margin: 0; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 14px; line-height: 20px; color: var(--ink2); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.commune-figure strong { font-size: 18px; line-height: 28px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.figure-label { width: 100%; font-size: 12px; line-height: 16px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--ink3); }
.figure-meta { font-size: 12px; line-height: 16px; color: var(--ink3); }
.commune-figure[data-kind="example"] strong { color: var(--ink2); }

/* commune grid by region (lot L7) */
.region-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.region-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--panel); color: var(--ink2); font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: none; transition: border-color .3s var(--ease), color .3s var(--ease); }
.region-jump a:hover { border-color: var(--ink3); color: var(--ink); }
.region-count { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink3); font-variant-numeric: tabular-nums; }
.region-block { scroll-margin-top: 96px; }
.region-title { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); margin: 40px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); }
.region-title + .commune-grid { margin-top: 16px; }
.commune-links { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 4px 24px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.commune-links a { display: inline-block; min-height: 24px; padding: 4px 0; }

/* pills */
.pill { display: inline-block; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink2); vertical-align: middle; border: 1px solid var(--rule); }
.pill-asking { background: var(--asking-bg); color: var(--asking); border-color: transparent; }

/* market */
.price-grid { display: grid; gap: 12px; margin: 24px 0; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.price-card { padding: 24px; position: relative; overflow: hidden; }
.price-kind { font-weight: 500; margin-bottom: 8px; font-size: 14px; line-height: 20px; color: var(--ink2); }
.price-big { font-size: 36px; line-height: 40px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
@media (min-width: 720px) { .price-big { font-size: 48px; line-height: 48px; } }
.price-unit { font-size: 16px; line-height: 24px; font-weight: 500; color: var(--ink3); margin-left: 4px; letter-spacing: 0; }
.price-meta { font-size: 14px; line-height: 20px; color: var(--ink3); margin: 0 0 12px; }
.spark { color: var(--ink3); display: block; width: 100%; }
.table-scroll { overflow-x: auto; margin: 12px 0 16px; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--panel); }
.market-table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 20px; min-width: 520px; font-variant-numeric: tabular-nums; }
.market-table th, .market-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.market-table tr:last-child td { border-bottom: 0; }
.market-table thead th { font-size: 12px; line-height: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink3); background: var(--paper-2); }
/* home « Prix au m² au Luxembourg »: three short columns, no forced width on a phone */
.price-table { min-width: 0; }
.price-table tbody th { font-weight: 500; }
.price-table tr:last-child th { border-bottom: 0; }
.price-table tr.is-national th, .price-table tr.is-national td { font-weight: 700; }
#prix-m2 h3 { margin-top: 32px; }
@media (max-width: 480px) { .price-table th, .price-table td { padding: 10px 8px; } .price-table thead th { letter-spacing: 0; } }
.asking-mark { font-size: 12px; line-height: 16px; color: var(--asking); }
.source-line { font-size: 14px; line-height: 20px; color: var(--ink3); }
.source-line a { color: var(--ink2); }

/* factors, service points */
.factor-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.factor { padding: 24px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.factor:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.factor h3 { font-size: 18px; line-height: 28px; margin-bottom: 8px; }
.factor p { font-size: 16px; line-height: 24px; color: var(--ink2); margin: 0; }

/* facts */
.fact-grid { display: grid; gap: 12px; margin-top: 32px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.fact-card { padding: 24px; }
.fact-card h3 { font-size: 18px; line-height: 28px; }
.fact-rows { list-style: none; margin: 0; padding: 0; }
.fact-rows li { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--rule); }
.fact-rows li:first-child { border-top: 0; padding-top: 0; }
.fact-label { font-weight: 600; font-size: 14px; line-height: 20px; }
.fact-text { font-size: 14px; line-height: 20px; color: var(--ink2); }
.fact-source { font-size: 12px; line-height: 16px; color: var(--ink3); }
.fact-source a { color: var(--ink2); }
.fact-discussion { font-size: 14px; line-height: 20px; color: var(--ink2); margin: 12px 0 0; }
.fact-note { font-size: 14px; line-height: 20px; color: var(--ink3); margin-top: 16px; }

/* faq */
.faq { max-width: 860px; margin-top: 32px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; line-height: 28px; padding: 20px 48px 20px 0; list-style: none; position: relative; transition: color .3s var(--ease); }
.faq summary:hover { color: var(--ink2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 24px; width: 20px; height: 20px; background: var(--ink3); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'><path d='M224 128a8 8 0 0 1-8 8h-80v80a8 8 0 0 1-16 0v-80H40a8 8 0 0 1 0-16h80V40a8 8 0 0 1 16 0v80h80a8 8 0 0 1 8 8z'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'><path d='M224 128a8 8 0 0 1-8 8h-80v80a8 8 0 0 1-16 0v-80H40a8 8 0 0 1 0-16h80V40a8 8 0 0 1 16 0v80h80a8 8 0 0 1 8 8z'/></svg>") center / contain no-repeat; transition: transform .5s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink2); margin: 0 0 24px; max-width: 720px; }

/* guide + contact */
.guide-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .guide-grid { grid-template-columns: 1.2fr 1fr; align-items: start; gap: 64px; } }
.offices-card { padding: 24px; }
.offices-card h3 { font-size: 20px; line-height: 28px; }
.offices-card p { color: var(--ink2); }
.offices { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }

/* form band */
.form-section { padding: 64px 0; background: var(--band); color: var(--band-ink); position: relative; }
@media (min-width: 900px) { .form-section { padding: 96px 0; } }
.form-section h2 { color: var(--band-ink); }
.form-section .cta-line, .form-section p { color: var(--band-ink2); }
.form-section .lead-form p, .form-section .form-status p { color: inherit; }
.lead-form { background: var(--panel); color: var(--ink); border-radius: var(--r-sheet); padding: 24px; max-width: 760px; box-shadow: var(--shadow-lift); margin-top: 24px; }
@media (min-width: 720px) { .lead-form { padding: 32px; } }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-message { grid-column: 1 / -1; } }
.lead-form label { display: grid; gap: 8px; font-weight: 500; font-size: 14px; line-height: 20px; }
.lead-form input[type="text"], .lead-form input[type="email"], .lead-form input[type="tel"], .lead-form textarea, .lead-form select { width: 100%; padding: 12px; border: 1px solid var(--rule); border-radius: var(--r-ctl); font: inherit; font-size: 16px; line-height: 24px; background: var(--paper); color: var(--ink); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.lead-form input:hover, .lead-form textarea:hover, .lead-form select:hover { border-color: var(--ink3); }
.lead-form input:focus, .lead-form textarea:focus, .lead-form select:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 138, 24, .25); }
.lead-form input:user-invalid { border-color: #c8102e; }
.consent-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-weight: 400; font-size: 14px; line-height: 20px; margin: 16px 0 0; color: var(--ink2); }
.consent-row input { width: 20px; height: 20px; margin-top: 0; accent-color: var(--navy); }
.lead-form button[type="submit"] { margin-top: 24px; width: 100%; padding: 12px 20px; background: var(--accent); color: var(--accent-text); border: 0; border-radius: var(--r-ctl); font: inherit; font-weight: 600; font-size: 18px; line-height: 28px; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.lead-form button[type="submit"]:hover { box-shadow: var(--shadow-lift); }
.lead-form button[type="submit"]:active { transform: scale(.98); }
.lead-form button[type="submit"]:disabled { opacity: .5; cursor: not-allowed; }
.form-privacy { font-size: 12px; line-height: 16px; color: var(--ink3); margin: 16px 0 0; }
.form-demo { font-size: 14px; line-height: 20px; color: var(--asking); background: var(--asking-bg); padding: 8px 12px; border-radius: 8px; margin: 12px 0 0; }
.code-form { margin-top: 16px; }
.form-status { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--r-ctl); background: var(--panel); color: var(--ink); max-width: 760px; border: 2px solid var(--rule); }
.form-status-error { border-color: #c8102e; }
.form-status-ok { border-color: #80c84b; }
.form-status a { display: inline-block; margin-top: 8px; }
.form-alt { margin-top: 24px; color: var(--band-ink2); }
.form-alt p { margin-bottom: 8px; }
/* desktop: copy and WhatsApp on the left, the form card on the right */
@media (min-width: 1024px) {
  [data-form-wrap] { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); column-gap: 64px; align-items: start; }
  [data-form-wrap] > * { grid-column: 1; }
  [data-form-wrap] > h2 { font-size: 48px; line-height: 48px; }
  [data-form-wrap] > .lead-form:not(.code-form) { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; }
  [data-form-wrap] > .code-form, [data-form-wrap] > [data-form-status] { grid-column: 2; }
}

/* breadcrumbs, legal */
.breadcrumbs { font-size: 14px; line-height: 20px; color: var(--ink3); padding-top: 24px; }
.breadcrumbs a { color: var(--ink2); text-underline-offset: 4px; }
.legal-body { max-width: 800px; }
.legal-body h2 { font-size: 24px; line-height: 32px; margin-top: 32px; }
.steps { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-card); padding: 24px; }
.step-num { font-weight: 600; color: var(--ink3); font-size: 24px; line-height: 32px; display: block; margin-bottom: 8px; }
.step h3 { font-size: 18px; line-height: 28px; }
.step p { color: var(--ink2); margin: 0; }

/* footer */
.footer { background: var(--band); color: var(--band-ink2); padding: 64px 0 112px; font-size: 14px; line-height: 20px; }
@media (min-width: 1024px) { .footer { padding-bottom: 40px; } }
.footer a { color: var(--band-ink); text-underline-offset: 4px; }
.footer-grid { display: grid; gap: 32px; margin-bottom: 32px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.footer-name { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -0.03em; color: var(--band-ink); margin: 0 0 8px; }
.footer-logo { height: 20px; width: auto; margin: 16px 0 8px; display: block; opacity: .9; }
.footer-agent { margin: 0 0 8px; }
.footer-home a { display: inline-block; padding: 2px 0; min-height: 24px; }
.footer-licence { margin: 16px 0 0; color: var(--band-ink); }
.footer-label { font-size: 12px; line-height: 16px; text-transform: uppercase; letter-spacing: .08em; color: #a8b7c6; margin: 0 0 8px; font-weight: 600; }
.footer-offices ul { list-style: none; padding: 0; margin: 0 0 24px; }
.footer-communes { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-communes a { display: inline-block; padding: 2px 0; min-height: 24px; text-decoration: none; color: var(--band-ink2); transition: color .3s var(--ease); }
.footer-communes a:hover { color: var(--band-ink); text-decoration: underline; }
.footer-sublabel { font-size: 12px; line-height: 16px; color: #a8b7c6; margin: 0 0 4px; }
.footer-offices .footer-sublabel + ul { margin-bottom: 12px; }
.footer-disclaimer { border-top: 1px solid var(--band-rule); padding-top: 24px; font-size: 12px; line-height: 16px; color: #a8b7c6; }
.footer-meta { border-top: 1px solid var(--band-rule); padding-top: 16px; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; font-size: 12px; line-height: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-meta p { margin: 0; }

/* sticky phone CTA (form + WhatsApp) */
.sticky-cta { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 30; display: flex; gap: 8px; padding: 8px; background: var(--head-bg); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--rule); border-radius: 20px; box-shadow: var(--shadow-lift); }
.sticky-cta .btn { flex: 1; min-width: 0; display: block; text-align: center; padding: 12px 8px; font-size: 14px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta .btn-wa { flex: 0 0 auto; padding-left: 16px; padding-right: 16px; }
.sticky-cta .btn-wa::before { vertical-align: -3px; margin-right: 8px; }
@media (min-width: 1024px) { .sticky-cta { display: none; } }
.sticky-cta { transition: opacity .3s var(--ease), transform .3s var(--ease); }
.sticky-cta.is-hidden { opacity: 0; transform: translate3d(0, 24px, 0); pointer-events: none; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s; }

@media print { .sticky-cta, .site-head, .form-section, .progress, .mobile-menu { display: none; } }

/* tools (L2) and service pages (L3) */
.tool-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tool-card { position: relative; padding: 24px; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s var(--ease); }
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--ink3); }
.tool-card a { text-decoration: none; }
.tool-card > a::after, .tool-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tool-card .btn { position: relative; z-index: 1; }
.tool-card strong { font-size: 18px; line-height: 28px; font-weight: 600; display: block; margin-bottom: 8px; }
.tool-card p { font-size: 14px; line-height: 20px; color: var(--ink2); margin: 0; }
/* a card that is only a title (guides on a commune page): no space kept for a summary */
.tool-card > a:only-child strong { margin-bottom: 0; }
.tool-list-big { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tool-list-big .tool-card h2 { font-size: 24px; line-height: 32px; margin-bottom: 8px; }
.tool-list-big .tool-card p { margin-bottom: 16px; }
#situations h3 { margin-top: 48px; }
.tool-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .tool-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.tool-form { padding: 24px; display: grid; gap: 16px; }
.tool-form label { display: grid; gap: 8px; font-weight: 500; font-size: 14px; line-height: 20px; }
.tool-form input[type="number"], .tool-form select { width: 100%; padding: 12px; border: 1px solid var(--rule); border-radius: var(--r-ctl); font: inherit; font-size: 16px; line-height: 24px; background: var(--paper); color: var(--ink); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.tool-form input:focus, .tool-form select:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 138, 24, .25); }
.tool-radios { border: 1px solid var(--rule); border-radius: var(--r-ctl); padding: 12px 16px; margin: 0; display: grid; gap: 8px; }
.tool-radios legend { font-weight: 600; font-size: 14px; line-height: 20px; padding: 0 4px; }
.radio-row, .check-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-weight: 400; font-size: 16px; line-height: 24px; }
.radio-row input, .check-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); }
.check-row .example-note { grid-column: 2; }
.example-note { display: block; font-weight: 400; font-size: 12px; line-height: 16px; color: var(--ink3); }
.tool-radios .example-note { padding-top: 2px; }
.tool-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 4px 0 0; }
.tool-actions .btn { font-size: 16px; padding: 12px 16px; }
.tool-result { padding: 24px; position: sticky; top: 104px; overflow: hidden; }
.tool-result::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gradient); }
.tool-result h3, .tool-result h2.h3 { font-size: 18px; line-height: 28px; margin: 16px 0 8px; }
.result-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 14px; line-height: 20px; }
.result-row:first-child { border-top: 0; }
.result-label { color: var(--ink2); }
.result-value { font-size: 18px; line-height: 28px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.result-mid { background: var(--paper-2); margin: 0 -12px; padding: 12px; border-radius: 12px; border-top: 0; }
.result-mid .result-value { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -0.02em; }
.result-note { font-size: 14px; line-height: 20px; color: var(--ink2); margin: 8px 0 0; }
.tool-empty { color: var(--ink3); }
.tool-source { font-size: 12px; line-height: 16px; color: var(--ink3); margin: 16px 0 0; overflow-wrap: anywhere; }
.quiz-q legend { font-size: 16px; line-height: 24px; }
/* tools upgrade: progress, trend, actions, steps */
.quiz-progress { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 14px; line-height: 20px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.quiz-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--paper-3); overflow: hidden; }
.quiz-bar span { display: block; height: 100%; width: 100%; background: var(--gradient); transform-origin: 0 50%; transform: scaleX(0); transition: transform .5s var(--ease); }
.trend { display: grid; gap: 8px 16px; align-items: start; margin: 8px 0 4px; }
@media (min-width: 480px) { .trend { grid-template-columns: 160px 1fr; } }
.spark-tool { color: var(--ink2); width: 160px; height: 40px; }
.trend-rows { display: grid; }
.result-row-sm { padding: 4px 0; font-size: 14px; line-height: 20px; }
.result-row-sm .result-value { font-size: 14px; line-height: 20px; font-weight: 500; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); }
.result-chain { display: contents; }
.btn-sm { padding: 8px 12px; font-size: 14px; line-height: 20px; }
.result-steps { margin: 4px 0 12px; padding-left: 20px; display: grid; gap: 8px; font-size: 16px; line-height: 24px; color: var(--ink2); }
.result-steps li::marker { color: var(--ink3); }
.result-steps a { color: var(--ink); text-underline-offset: 4px; }
.tool-form fieldset.tool-radios label:not(.radio-row):not(.check-row) { margin-top: 4px; }
.quiz-num { display: inline-block; width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-size: 12px; margin-right: 8px; }

/* scroll reveal (site.js adds .js on <html>, then .in once per element) */
.js .reveal { opacity: 0; transform: translate3d(0, 32px, 0); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 60ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .plane, .plane-back, .hero-card, .plane-tab { transform: none !important; }
  .plane-back { transform: rotate(4deg) !important; }
  .js .tagline .w { color: var(--ink); }
  .commune-card:hover, .tool-card:hover, .factor:hover, .btn:hover { transform: none; }
}

/* actualites (blog): index grid, story page, sources, AI label */
.story-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.fchip { font: inherit; font-size: 14px; line-height: 20px; font-weight: 500; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--panel); color: var(--ink2); cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease); }
.fchip:hover { background: var(--paper-2); }
.fchip.is-on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.story-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.story-grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.story-slot[hidden] { display: none; }
.story-card { overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.story-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.story-media { position: relative; margin: 0; aspect-ratio: 16 / 10; background: var(--paper-2); overflow: hidden; }
.story-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-body { padding: 16px 20px 20px; }
.story-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; line-height: 16px; color: var(--ink3); margin: 0 0 8px; }
.story-title { font-size: 20px; line-height: 28px; margin: 0 0 8px; }
.story-tldr { font-size: 14px; line-height: 20px; color: var(--ink2); margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-communes { font-size: 12px; line-height: 16px; color: var(--ink3); margin: 0; }
@media (min-width: 900px) {
  .story-slot:first-child:has(.story-card-big) { grid-column: 1 / -1; }
  .story-card-big .story-link { display: grid; grid-template-columns: 1.2fr 1fr; }
  .story-card-big .story-media { aspect-ratio: auto; min-height: 320px; }
  .story-card-big .story-body { padding: 32px; align-self: center; }
  .story-card-big .story-title { font-size: 30px; line-height: 36px; }
  .story-card-big .story-tldr { font-size: 16px; line-height: 24px; -webkit-line-clamp: 4; }
}
.story-pages { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; color: var(--ink3); }
.actu-wrap { max-width: 800px; }
.actu-byline { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; font-size: 14px; line-height: 20px; color: var(--ink2); }
.actu-byline strong { color: var(--ink); font-size: 16px; line-height: 24px; }
.actu-langs { font-size: 14px; line-height: 20px; color: var(--ink3); margin: 12px 0 0; }
.actu-figure { margin: 0 0 32px; position: relative; }
.actu-figure img, .actu-figure video { width: 100%; height: auto; border-radius: var(--r-card); display: block; border: 1px solid var(--rule); }
.actu-figure figcaption { font-size: 12px; line-height: 16px; color: var(--ink3); margin-top: 8px; }
.actu-ai-label { position: absolute; left: 12px; top: 12px; padding: 4px 8px; border-radius: 999px; background: rgba(16, 43, 69, .85); color: #fff; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.actu-body { font-size: 18px; line-height: 28px; }
.actu-body h2 { font-size: 24px; line-height: 32px; margin-top: 40px; }
.actu-body h3 { font-size: 20px; line-height: 28px; margin-top: 32px; }
.actu-body p, .actu-body li { color: var(--ink2); }
.actu-body strong { color: var(--ink); font-weight: 600; }
.actu-body ul, .actu-body ol { padding-left: 24px; margin: 0 0 16px; }
.actu-body a { color: var(--ink); text-underline-offset: 4px; }
.cite { font-size: 12px; line-height: 0; }
.cite a { text-decoration: none; color: var(--ink3); padding: 0 2px; }
.actu-cta { padding: 24px; margin: 40px 0; }
.actu-cta p { color: var(--ink2); }
.actu-sources { margin-top: 48px; }
.actu-sources h2, .actu-faq h2, .actu-communes h2 { font-size: 24px; line-height: 32px; }
.actu-sources ol { padding-left: 24px; font-size: 14px; line-height: 20px; color: var(--ink2); display: grid; gap: 8px; }
.actu-sources li:target { background: var(--paper-2); border-radius: 8px; }
.actu-faq, .actu-communes { margin-top: 48px; }
.actu-ranking { margin: 32px 0 0; }

/* lot L6: /outils/widget/ (pick a commune, preview the framed card, copy the snippet) */
.embed { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .embed { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.embed-pick, .embed-code { padding: 24px; min-width: 0; }
.embed-label { display: block; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink2); margin-bottom: 8px; }
.embed-select { width: 100%; padding: 12px; margin-bottom: 24px; border: 1px solid var(--rule); border-radius: var(--r-ctl); font: inherit; font-size: 16px; line-height: 24px; background: var(--paper); color: var(--ink); }
.embed-select:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 138, 24, .25); }
.embed-preview { display: flex; justify-content: center; padding: clamp(4px, 2vw, 16px);border-radius: var(--r-ctl); background: var(--paper-2); }
.embed-preview iframe { display: block; width: 320px; height: 180px; max-width: 100%; }
.embed-snippet { margin: 0 0 16px; padding: 16px; overflow-x: auto; border-radius: var(--r-ctl); background: var(--paper-2); border: 1px solid var(--rule); font: 13px/20px ui-monospace, "SFMono-Regular", Consolas, monospace; white-space: pre-wrap; word-break: break-all; color: var(--ink); }
.embed-how { margin: 0 0 32px; padding-left: 20px; max-width: 720px; }
.embed-how li { margin-bottom: 8px; }
.tool-widget-card { margin-top: 32px; padding: 24px; }

/* the hidden attribute wins over any display rule (« Autre commune » field, code form) */
[hidden] { display: none !important; }

/* dashboard — interactive market panel (home, commune pages). Series colours
   validated with the dataviz validator: light #24619c / #c2541a on #ffffff,
   dark #4a8ad0 / #d96f30 on #142940 (all checks pass). Colour is never the
   only cue: a legend names each line, the selected bar is also bold. */
:root { --s0: #24619c; --s1: #c2541a; --grid: #ece8e0; }
html[data-theme="dark"] { --s0: #4a8ad0; --s1: #d96f30; --grid: #233a54; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dash { position: relative; padding: 20px; margin-top: 24px; }
.dash-controls { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.dash-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); min-width: 0; flex: 1 1 180px; }
.dash-field select { font: inherit; font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-ctl); padding: 10px 12px; min-width: 0; width: 100%; }
.dash-seg { display: flex; flex-wrap: wrap; gap: 8px; flex: 2 1 320px; }
.dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 20px 0; }
.dash-kpi { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-ctl); padding: 14px 16px; min-width: 0; }
.dash-kpi-label { font-size: 13px; line-height: 18px; color: var(--ink3); font-weight: 500; }
.dash-kpi-value { font-size: 26px; line-height: 32px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 4px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.dash-kpi-sub { font-size: 13px; line-height: 18px; color: var(--ink2); margin-top: 2px; }
.dash-kpi.is-up .dash-kpi-value::before, .dash-kpi.is-down .dash-kpi-value::before { content: ""; display: inline-block; width: 0; height: 0; margin-right: 8px; vertical-align: middle; border-left: 6px solid transparent; border-right: 6px solid transparent; }
.dash-kpi.is-up .dash-kpi-value::before { border-bottom: 9px solid var(--ink2); }
.dash-kpi.is-down .dash-kpi-value::before { border-top: 9px solid var(--ink2); }
.dash-loading, .dash-empty { color: var(--ink3); font-size: 14px; }
.dash-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1024px) { .dash-grid { grid-template-columns: 1.15fr 1fr; } }
.dash-panel { margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-ctl); padding: 16px; min-width: 0; }
.dash-panel-title { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink); }
.dash-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 4px; font-size: 13px; line-height: 18px; color: var(--ink2); min-height: 18px; }
.dash-key { display: inline-flex; align-items: center; gap: 6px; }
.dash-swatch { display: inline-block; width: 14px; height: 3px; border-radius: 2px; background: var(--s0); }
.dash-swatch.s1 { background: var(--s1); }
.dash-chart { position: relative; }
.dash-chart-rank { max-height: 420px; overflow-y: auto; margin-top: 8px; overscroll-behavior: contain; }
.dash-svg { display: block; width: 100%; height: auto; overflow: visible; }
.dash-grid-line { stroke: var(--grid); stroke-width: 1; }
.dash-axis { fill: var(--ink3); font-size: 12px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.dash-line { fill: none; stroke: var(--s0); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.dash-line.s1 { stroke: var(--s1); }
.dash-dot { fill: var(--s0); stroke: var(--panel); stroke-width: 2; }
.dash-dot.s1 { fill: var(--s1); }
.dash-cross { stroke: var(--ink3); stroke-width: 1; stroke-dasharray: 3 3; }
.dash-hit { fill: transparent; cursor: crosshair; outline: none; }
.dash-hit:focus-visible { stroke: var(--ink); stroke-width: 2; }
.dash-bar { cursor: pointer; outline: none; }
.dash-bar-hit { fill: transparent; }
.dash-bar:hover .dash-bar-hit, .dash-bar:focus-visible .dash-bar-hit { fill: var(--paper-2); }
.dash-bar-fill { fill: var(--rule); transition: fill .2s var(--ease); }
.dash-bar.is-sel .dash-bar-fill { fill: var(--s0); }
.dash-bar.is-cmp .dash-bar-fill { fill: var(--s1); }
.dash-bar-label { fill: var(--ink2); font-size: 13px; font-family: var(--font); }
.dash-bar.is-sel .dash-bar-label, .dash-bar.is-cmp .dash-bar-label { fill: var(--ink); font-weight: 700; }
.dash-bar-value { fill: var(--ink3); font-size: 12px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.dash-bar.is-sel .dash-bar-value { fill: var(--ink); font-weight: 600; }
.dash-tip { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; background: var(--panel); color: var(--ink); border: 1px solid var(--rule); border-radius: 10px; box-shadow: var(--shadow-lift); padding: 8px 12px; font-size: 13px; line-height: 18px; max-width: 260px; }
.dash-tip-head { font-weight: 600; margin-bottom: 4px; }
.dash-tip-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.dash-tip-row span:last-child { color: var(--ink3); }
.dash-table { margin-top: 4px; }
.dash-foot { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
@media (max-width: 640px) { .dash { padding: 16px; } .dash-kpi-value { font-size: 22px; line-height: 28px; } .dash-chart-rank { max-height: 360px; } }
@media (prefers-reduced-motion: reduce) { .dash-bar-fill { transition: none; } }
/* lot 15/11: the ranking table (sortable headers, small-sample pill) */
.th-sort { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; min-height: 44px; text-align: left; }
.th-sort::after { content: ""; display: inline-block; margin-left: 6px; }
th[aria-sort="descending"] .th-sort::after { content: "\2193"; }
th[aria-sort="ascending"] .th-sort::after { content: "\2191"; }
html:not(.js) .th-sort { cursor: default; }
.pill-small { background: var(--asking-bg); color: var(--asking); }
/* below-the-fold sections: the browser skips their layout and paint until they come near the screen */
main > .section { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* L'essentiel : one fact per line, easy to read and to quote */
.takeaways-section { padding: 40px 0 8px; }
.takeaways { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 820px; }
.takeaways li { position: relative; padding-left: 22px; color: var(--ink2); }
.takeaways li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.takeaways a { font-weight: 600; text-underline-offset: 4px; }
.compare-table tr.is-me th, .compare-table tr.is-me td { font-weight: 700; }
