/* Extracted from ssg/static/commune-bordeaux.html (bundle inline styles).
   Contient les règles CSS spécifiques au layout commune qui ne sont pas
   dans commune.css : commune-recit__picto, dimensions de hero, etc. */

/* =========================================================================
   NextToYourPlace — Design System v2
   colors_and_type.css — base tokens + semantic CSS variables
   Palette : 5 couleurs verrouillées. Typo : Spectral + Source Serif 4.
   ========================================================================= */

/* Spectral — Google Fonts (FLAG: brand font file not provided; Google Fonts substitute) */
@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=JetBrains+Mono:wght@400;500&display=swap');

/* Source Serif 4 — fichiers locaux non fournis. La pile retombe sur Spectral, puis serif système. */

:root {
  /* ==================== PALETTE — 5 COULEURS VERROUILLÉES ==================== */
  --ink:        #1A1A1A;
  --paper:      #F5EFE0;
  --terracotta: #C4582D;
  --forest:     #2D4A3A;
  --sepia:      #8B6F47;

  /* ==================== NUANCES DÉRIVÉES (par fonction, pas par enrichissement) ==================== */
  --ink-soft:         color-mix(in oklab, var(--ink) 78%, var(--paper));
  --ink-muted:        color-mix(in oklab, var(--ink) 62%, var(--paper));
  --ink-subtle:       color-mix(in oklab, var(--ink) 30%, var(--paper));
  --ink-faint:        color-mix(in oklab, var(--ink) 12%, var(--paper));

  --paper-warm:       color-mix(in oklab, var(--paper) 92%, var(--sepia));
  --paper-ridge:      color-mix(in oklab, var(--paper) 86%, var(--sepia));
  --paper-deep:       color-mix(in oklab, var(--paper) 76%, var(--ink));

  --terracotta-deep:  color-mix(in oklab, var(--terracotta) 88%, var(--ink));
  --terracotta-wash:  color-mix(in oklab, var(--terracotta) 14%, var(--paper));

  --forest-deep:      color-mix(in oklab, var(--forest) 88%, var(--ink));
  --forest-wash:      color-mix(in oklab, var(--forest) 14%, var(--paper));

  --sepia-deep:       color-mix(in oklab, var(--sepia) 86%, var(--ink));
  --sepia-wash:       color-mix(in oklab, var(--sepia) 14%, var(--paper));

  /* ==================== SÉMANTIQUE — RÔLES UI ==================== */
  --bg:             var(--paper);
  --bg-alt:         var(--paper-warm);
  --bg-deep:        var(--paper-ridge);
  --fg:             var(--ink);
  --fg-soft:        var(--ink-soft);
  --fg-muted:       var(--ink-muted);
  --fg-subtle:      var(--ink-subtle);
  --rule:           var(--ink-subtle);
  --rule-fine:      var(--ink-faint);
  --link:           var(--terracotta);
  --link-hover:     var(--terracotta-deep);

  --ok:             var(--forest);
  --warn:           var(--sepia);
  --risk:           var(--terracotta);

  /* Profile color — overridden by [data-profile="..."] */
  --profile-color:  var(--terracotta);
  --profile-wash:   var(--terracotta-wash);

  /* ==================== TYPOGRAPHIE ==================== */
  --font-display: 'Spectral', 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  --font-body:    'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  --font-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;

  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semi:     600;
  --fw-bold:     700;

  /* Dix styles canon (display-xl, display-l, display-m, h1, h2, h3, body-l, body, caption, micro) */
  --fs-display-xl: clamp(60px, 6vw,    72px);
  --fs-display-l:  clamp(44px, 4.4vw,  52px);
  --fs-display-m:  clamp(32px, 3.4vw,  38px);
  --fs-h1:         clamp(28px, 2.8vw,  32px);
  --fs-h2:         clamp(22px, 2.2vw,  26px);
  --fs-h3:         clamp(18px, 1.6vw,  20px);
  --fs-body-l:     18px;
  --fs-body:       16px;
  --fs-caption:    14px;
  --fs-micro:      12px;

  --lh-display: 1.05;
  --lh-title:   1.18;
  --lh-body:    1.6;
  --lh-tight:   1.15;
  --lh-numeric: 1;

  /* ==================== ESPACE ==================== */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-24: 96px;

  /* ==================== RAYONS ==================== */
  --radius-0:    0;
  --radius-1:    2px;
  --radius-2:    4px;
  --radius-3:    8px;
  --radius-4:    12px;
  --radius-pill: 9999px;

  /* ==================== OMBRES ==================== */
  --shadow-0: none;
  --shadow-1: 2px 2px 0 var(--ink-faint);
  --shadow-2: 3px 3px 0 var(--ink-subtle);
  --shadow-3: 4px 4px 0 var(--sepia);
  --shadow-focus: 0 0 0 2px var(--paper), 0 0 0 4px var(--terracotta);

  /* ==================== BORDS ==================== */
  --border-fine:    1px solid var(--ink-faint);
  --border-regular: 1px solid var(--ink-subtle);
  --border-strong:  1.5px solid var(--ink);

  /* ==================== MOTION ==================== */
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;
  --ease:  cubic-bezier(0.2, 0, 0.2, 1);

  /* ==================== CONTENEURS ==================== */
  --measure: 72ch;
  --w-narrow: 640px;
  --w-page:   1120px;
  --w-wide:   1280px;

  /* ==================== Z-INDEX ==================== */
  --z-base:    0;
  --z-raised:  10;
  --z-sticky:  20;
  --z-overlay: 50;
  --z-modal:   100;
}

/* ==================== PROFILS — sélection exclusive ==================== */
[data-profile="calme"],
[data-profile="serenite"] {
  --profile-color: var(--forest);
  --profile-deep:  var(--forest-deep);
  --profile-wash:  var(--forest-wash);
}
[data-profile="dynamique"] {
  --profile-color: var(--terracotta);
  --profile-deep:  var(--terracotta-deep);
  --profile-wash:  var(--terracotta-wash);
}
[data-profile="famille"] {
  --profile-color: var(--sepia);
  --profile-deep:  var(--sepia-deep);
  --profile-wash:  var(--sepia-wash);
}
[data-profile="investisseur"] {
  --profile-color: var(--ink);
  --profile-deep:  var(--ink);
  --profile-wash:  var(--paper-ridge);
}

/* Overlay Expat — actif en plus du profil principal. Accent sépia transversal. */
[data-overlay~="expat"] {
  --overlay-accent: var(--sepia);
  --overlay-wash:   var(--sepia-wash);
}

/* ==================== STYLES SÉMANTIQUES ==================== */
html, body { background: var(--bg); color: var(--fg); }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: "ss01", "onum";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-semi);
  line-height: var(--lh-title);
  color: var(--fg);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

.display-xl { font-family: var(--font-display); font-size: var(--fs-display-xl); line-height: var(--lh-display); font-weight: var(--fw-semi); letter-spacing: -0.02em; }
.display-l  { font-family: var(--font-display); font-size: var(--fs-display-l);  line-height: 1.08; font-weight: var(--fw-semi); letter-spacing: -0.015em; }
.display-m  { font-family: var(--font-display); font-size: var(--fs-display-m);  line-height: 1.12; font-weight: var(--fw-semi); letter-spacing: -0.01em; }

.body-l   { font-family: var(--font-body); font-size: var(--fs-body-l); line-height: 1.65; }
.body     { font-family: var(--font-body); font-size: var(--fs-body);   line-height: var(--lh-body); }
.caption  { font-family: var(--font-body); font-size: var(--fs-caption); line-height: 1.5; color: var(--fg-muted); font-style: italic; }
.micro    {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: var(--fw-medium);
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

p { margin: 0 0 var(--sp-4); max-width: var(--measure); text-wrap: pretty; }

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: color var(--dur-1) var(--ease); }
a:hover { color: var(--link-hover); }

code, pre, kbd { font-family: var(--font-mono); font-size: 0.92em; }

hr { border: 0; border-top: var(--border-regular); margin: var(--sp-8) 0; }

::selection { background: var(--terracotta); color: var(--paper); }

/* Focus visible — clavier */
:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
  border-radius: var(--radius-1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
/* =========================================================================
   NextToYourPlace — components.css
   Atomic + composed components. Pair with colors_and_type.css.
   ========================================================================= */

/* ==================== BUTTON ==================== */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: var(--fw-semi);
  line-height: 1;
  padding: 12px 20px;
  border: 1.5px solid currentColor;
  border-radius: var(--radius-1);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
  background: transparent;
  color: var(--ink);
}
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

/* Primary — terracotta filled */
.btn--primary {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--paper);
}
.btn--primary:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); box-shadow: var(--shadow-2); transform: translate(-1px, -1px); }
.btn--primary:active { transform: translate(0, 0); box-shadow: none; }

/* Secondary — outlined ink */
.btn--secondary { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--paper); }

/* Ghost — text on paper */
.btn--ghost { border-color: transparent; padding: 12px 12px; }
.btn--ghost:hover { background: var(--paper-warm); }

/* Link — inline serif underline */
.btn--link {
  border: 0; padding: 0;
  font-family: var(--font-body); font-weight: var(--fw-medium);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em;
  color: var(--terracotta);
}
.btn--link:hover { color: var(--terracotta-deep); }

.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.42; cursor: not-allowed; }
.btn--small { padding: 8px 14px; font-size: var(--fs-caption); }
.btn--large { padding: 16px 28px; font-size: var(--fs-body-l); }

/* ==================== INPUT / SELECT / TEXTAREA ==================== */
.field { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.field__label { font-family: var(--font-body); font-size: var(--fs-caption); font-weight: var(--fw-medium); color: var(--fg-soft); }
.field__hint  { font-family: var(--font-body); font-size: var(--fs-micro); color: var(--fg-muted); font-style: italic; }
.field__error { font-family: var(--font-body); font-size: var(--fs-caption); color: var(--terracotta); }

.input, .select, .textarea {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.4;
  padding: 12px 14px;
  background: var(--paper);
  border: 1.5px solid var(--ink-subtle);
  border-radius: var(--radius-1);
  color: var(--fg);
  width: 100%;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px var(--terracotta-wash); }
.input::placeholder, .textarea::placeholder { color: var(--ink-subtle); font-style: italic; }
.textarea { min-height: 96px; resize: vertical; }

.select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%231A1A1A' stroke-width='1.5'><path d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
}

/* ==================== CHECKBOX / RADIO ==================== */
.check, .radio { display: inline-flex; align-items: center; gap: var(--sp-2); cursor: pointer; font-family: var(--font-body); font-size: var(--fs-body); }
.check input, .radio input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; border: 1.5px solid var(--ink); background: var(--paper); cursor: pointer; transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease); flex-shrink: 0; }
.check input { border-radius: var(--radius-1); }
.radio input { border-radius: 50%; }
.check input:checked { background: var(--ink); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23F5EFE0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M3 8.5l3.5 3.5L13 4.5'/></svg>"); background-repeat: no-repeat; background-position: center; }
.radio input:checked { background: var(--paper); border-width: 5px; border-color: var(--ink); }
.check input:focus-visible, .radio input:focus-visible { box-shadow: var(--shadow-focus); }

/* ==================== SWITCH ==================== */
.switch { display: inline-flex; align-items: center; gap: var(--sp-3); cursor: pointer; font-family: var(--font-body); font-size: var(--fs-body); }
.switch input { appearance: none; -webkit-appearance: none; width: 40px; height: 22px; background: var(--ink-subtle); border: 1.5px solid var(--ink); border-radius: var(--radius-pill); position: relative; cursor: pointer; transition: background var(--dur-2) var(--ease); margin: 0; }
.switch input::after { content: ""; position: absolute; top: 1px; left: 1px; width: 16px; height: 16px; background: var(--paper); border-radius: 50%; transition: transform var(--dur-2) var(--ease); }
.switch input:checked { background: var(--terracotta); border-color: var(--terracotta); }
.switch input:checked::after { transform: translateX(18px); }

/* ==================== BADGE / TAG / KICKER ==================== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-body); font-size: var(--fs-micro); font-weight: var(--fw-medium);
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 8px; border-radius: var(--radius-2);
  background: var(--ink); color: var(--paper);
  line-height: 1.2;
}
.badge--partner { background: var(--sepia); color: var(--paper); }
.badge--source  { background: transparent; color: var(--fg-muted); border: 1px solid var(--ink-subtle); }
.badge--ok      { background: var(--forest); color: var(--paper); }
.badge--warn    { background: var(--sepia); color: var(--paper); }
.badge--risk    { background: var(--terracotta); color: var(--paper); }

.tag {
  display: inline-flex; align-items: center;
  font-family: var(--font-body); font-size: var(--fs-caption);
  padding: 2px 10px; border-radius: var(--radius-2);
  background: var(--paper-ridge); color: var(--fg-soft);
  border: 1px solid var(--ink-faint);
}

.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-micro); font-weight: var(--fw-medium);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--profile-color, var(--terracotta));
  margin-bottom: var(--sp-2);
}

/* ==================== SOURCE-CITE ==================== */
.source-cite {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-style: italic;
  color: var(--fg-muted);
  display: inline-flex; align-items: baseline; gap: 4px;
}
.source-cite::before { content: "—"; color: var(--ink-subtle); margin-right: 2px; font-style: normal; }
.source-cite__org { font-style: normal; font-weight: var(--fw-medium); color: var(--fg-soft); }

/* ==================== PROFILE-PILL ==================== */
.profile-pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-display); font-weight: var(--fw-semi);
  font-size: var(--fs-body);
  padding: 8px 16px;
  background: var(--paper);
  border: 1.5px solid var(--ink-subtle);
  border-radius: var(--radius-pill);
  color: var(--fg);
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
  white-space: nowrap;
}
.profile-pill:hover { border-color: var(--ink); }
.profile-pill__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--profile-color);
  flex-shrink: 0;
}
.profile-pill[aria-selected="true"] {
  background: var(--profile-wash);
  border-color: var(--profile-color);
  color: var(--profile-color);
}
[data-profile="investisseur"] .profile-pill[aria-selected="true"] { color: var(--ink); border-color: var(--ink); background: var(--paper-ridge); }

/* ==================== SCORE-BAR ==================== */
.score-bar { display: grid; gap: var(--sp-2); font-family: var(--font-body); }
.score-bar__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); }
.score-bar__label { font-size: var(--fs-caption); color: var(--fg-soft); }
.score-bar__value { font-family: var(--font-display); font-weight: var(--fw-semi); font-size: var(--fs-h2); color: var(--fg); font-variant-numeric: tabular-nums; line-height: 1; }
.score-bar__value sub { font-size: 0.45em; color: var(--fg-muted); margin-left: 2px; vertical-align: baseline; }
.score-bar__track { height: 6px; background: var(--paper-ridge); border-radius: 0; position: relative; overflow: hidden; }
.score-bar__fill  { height: 100%; background: var(--profile-color, var(--terracotta)); }

/* ==================== DIVIDER / SEPARATOR / FLEURON ==================== */
.divider { border: 0; border-top: var(--border-regular); margin: var(--sp-8) 0; }
.divider--fine { border-top: var(--border-fine); margin: var(--sp-6) 0; }

.fleuron {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-4);
  margin: var(--sp-12) 0;
  color: var(--sepia);
}
.fleuron::before, .fleuron::after { content: ""; flex: 1; border-top: var(--border-fine); }
.fleuron__mark { font-family: var(--font-display); font-size: 22px; line-height: 1; }

/* ==================== PICTOGRAM WRAPPER ==================== */
.pictogram {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
}
.pictogram svg { width: 100%; height: 100%; display: block; }
.pictogram--16 { width: 16px; height: 16px; }
.pictogram--20 { width: 20px; height: 20px; }
.pictogram--24 { width: 24px; height: 24px; }
.pictogram--32 { width: 32px; height: 32px; }
.pictogram--48 { width: 48px; height: 48px; }
.pictogram--96 { width: 96px; height: 96px; }
.pictogram--128 { width: 128px; height: 128px; }

/* line-only mode hides watercolor wash inside SVG */
.pictogram--line-only svg [fill]:not([fill="none"]):not([fill="currentColor"]) { opacity: 0 !important; }

/* ==================== CARD ==================== */
.card {
  background: var(--paper);
  border: var(--border-regular);
  border-radius: var(--radius-0);
  padding: var(--sp-6);
  display: grid; gap: var(--sp-3);
}
.card--ridge { background: var(--paper-ridge); }
.card--shadow { box-shadow: var(--shadow-1); }

/* ==================== ENCART-EDITORIAL ==================== */
.encart-editorial {
  display: grid; gap: var(--sp-3);
  padding: var(--sp-8) var(--sp-6);
  border-top: var(--border-strong);
  border-bottom: var(--border-fine);
  background: var(--paper);
}
.encart-editorial__kicker  { color: var(--profile-color, var(--terracotta)); font-family: var(--font-body); font-size: var(--fs-micro); font-weight: var(--fw-medium); letter-spacing: 0.1em; text-transform: uppercase; }
.encart-editorial__head    { font-family: var(--font-display); font-size: var(--fs-display-m); font-weight: var(--fw-semi); line-height: 1.12; letter-spacing: -0.01em; margin: 0; max-width: 28ch; text-wrap: balance; }
.encart-editorial__sub     { font-family: var(--font-display); font-size: var(--fs-h3); font-style: italic; font-weight: var(--fw-regular); color: var(--fg-soft); margin: 0; max-width: 48ch; }
.encart-editorial__body    { font-family: var(--font-body); font-size: var(--fs-body-l); line-height: 1.65; max-width: var(--measure); margin: 0; }

/* ==================== DL-STAT-GRID ==================== */
.dl-stat-grid {
  display: grid; gap: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 0;
}
.dl-stat-grid__cell { display: grid; gap: var(--sp-1); border-top: var(--border-fine); padding-top: var(--sp-3); }
.dl-stat-grid dt {
  font-family: var(--font-body); font-size: var(--fs-caption); color: var(--fg-muted);
  letter-spacing: 0.04em; text-transform: uppercase; font-weight: var(--fw-medium);
}
.dl-stat-grid dd { margin: 0; }
.dl-stat-grid__val {
  font-family: var(--font-display); font-weight: var(--fw-semi);
  font-size: var(--fs-h1); line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  display: block;
}
.dl-stat-grid__unit { font-size: 0.6em; font-weight: var(--fw-regular); color: var(--fg-soft); margin-left: 4px; }
.dl-stat-grid__cite { display: block; margin-top: var(--sp-1); }

/* Investisseur — chiffres encore plus gros */
[data-profile="investisseur"] .dl-stat-grid__val { font-size: clamp(40px, 4vw, 56px); }

/* ==================== PROFILE-PANEL ==================== */
.profile-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  padding: var(--sp-8);
  background: var(--paper);
  border: var(--border-regular);
  border-left: 4px solid var(--profile-color);
}
@media (min-width: 768px) {
  .profile-panel { grid-template-columns: 1.1fr 1fr; align-items: center; }
}
.profile-panel__copy   { display: grid; gap: var(--sp-3); }
.profile-panel__head   { font-family: var(--font-display); font-size: var(--fs-display-m); font-weight: var(--fw-semi); line-height: 1.1; letter-spacing: -0.01em; max-width: 18ch; text-wrap: balance; margin: 0; }
.profile-panel__sub    { font-family: var(--font-display); font-style: italic; font-size: var(--fs-h3); color: var(--fg-soft); margin: 0; }
.profile-panel__body   { font-family: var(--font-body); font-size: var(--fs-body-l); line-height: 1.65; max-width: 56ch; margin: 0; }
.profile-panel__art    { background: var(--paper-warm); border: var(--border-fine); aspect-ratio: 16/9; overflow: hidden; }
.profile-panel__art img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==================== SOURCE-LINE ==================== */
.source-line {
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6);
  padding-top: var(--sp-3);
  border-top: var(--border-fine);
  font-family: var(--font-body); font-size: var(--fs-caption); font-style: italic;
  color: var(--fg-muted);
}
.source-line__item { display: inline-flex; gap: 4px; }
.source-line__item strong { font-style: normal; font-weight: var(--fw-medium); color: var(--fg-soft); }

/* ==================== CTA-CARD (anti-bias rule §5.6) ==================== */
.cta-card {
  display: grid; gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--paper-warm);
  border: 1.5px dashed var(--sepia);
  border-radius: var(--radius-3);
  position: relative;
}
.cta-card__badge {
  position: absolute; top: -10px; left: var(--sp-4);
  background: var(--sepia); color: var(--paper);
  font-family: var(--font-body); font-size: var(--fs-micro); font-weight: var(--fw-medium);
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--radius-2);
}
.cta-card__head    { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: var(--fw-semi); margin: 0; max-width: 26ch; }
.cta-card__sub     { font-family: var(--font-body); font-size: var(--fs-body); color: var(--fg-soft); margin: 0; max-width: 48ch; }
.cta-card__action  {
  align-self: start; margin-top: var(--sp-2);
  font-family: var(--font-body); font-weight: var(--fw-medium);
  color: var(--sepia-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em;
}
.cta-card__action::after { content: " →"; }

/* Insight (niveau 2) — pas un CTA, ton informatif */
.insight {
  padding: var(--sp-4) var(--sp-6);
  background: var(--paper-ridge);
  border-left: 3px solid var(--sepia);
  font-family: var(--font-body); font-size: var(--fs-body);
}
.insight__kicker { font-family: var(--font-body); font-size: var(--fs-micro); font-weight: var(--fw-medium); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sepia-deep); display: block; margin-bottom: var(--sp-1); }

/* ==================== EXPAT — overlay components ==================== */
.expat-banner {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-6);
  background: var(--sepia-wash);
  border-bottom: 1px solid var(--sepia);
  font-family: var(--font-body); font-size: var(--fs-caption);
  color: var(--ink);
}
.expat-banner__label {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: var(--fs-micro); font-weight: var(--fw-medium);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sepia-deep);
  white-space: nowrap;
}
.expat-banner__label::before { content: ""; width: 8px; height: 8px; background: var(--sepia); border-radius: 50%; }
.expat-banner__copy  { flex: 1; font-style: italic; }
.expat-banner__close { background: transparent; border: 0; cursor: pointer; color: var(--ink-muted); font-size: 20px; padding: 4px; line-height: 1; }
.expat-banner__close:hover { color: var(--ink); }

.expat-tile-set {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: var(--sp-6);
  background: var(--paper);
  border: 1px solid var(--sepia);
  border-radius: var(--radius-2);
}
.expat-tile-set__head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.expat-tile-set__head h3 { margin: 0; font-size: var(--fs-h3); }
.expat-tile-set__head em { font-family: var(--font-body); font-style: italic; color: var(--sepia-deep); font-size: var(--fs-caption); }

.expat-tile {
  display: grid; gap: var(--sp-2);
  padding: var(--sp-4);
  background: var(--sepia-wash);
  border: 1px solid var(--sepia);
  border-radius: var(--radius-2);
}
.expat-tile__title { font-family: var(--font-display); font-size: var(--fs-body-l); font-weight: var(--fw-semi); margin: 0; }
.expat-tile__sub   { font-family: var(--font-body); font-size: var(--fs-caption); color: var(--fg-soft); font-style: italic; margin: 0; }

.expat-cta-pack { /* extends cta-card */
  background: var(--sepia-wash);
  border-color: var(--sepia);
  border-style: solid;
}
.expat-cta-pack .cta-card__badge { background: var(--sepia-deep); }
.expat-cta-pack .cta-card__action { color: var(--sepia-deep); }

/* ==================== FOOTER-CREDIT ==================== */
.footer-credit {
  display: grid; gap: var(--sp-3);
  padding: var(--sp-8) var(--sp-6);
  border-top: var(--border-strong);
  background: var(--paper);
  font-family: var(--font-body); font-size: var(--fs-caption);
  color: var(--fg-muted);
}
.footer-credit__row { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: baseline; justify-content: space-between; }
.footer-credit__forge {
  display: inline-flex; align-items: center; gap: 6px;
  font-style: italic;
}
.footer-credit__forge::before {
  content: "";
  width: 14px; height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M8 1 L11 4 L13 3 L13 6 L15 8 L13 10 L13 13 L11 12 L8 15 L5 12 L3 13 L3 10 L1 8 L3 6 L3 3 L5 4 Z' fill='black'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M8 1 L11 4 L13 3 L13 6 L15 8 L13 10 L13 13 L11 12 L8 15 L5 12 L3 13 L3 10 L1 8 L3 6 L3 3 L5 4 Z' fill='black'/></svg>") no-repeat center / contain;
}
.footer-credit nav { display: inline-flex; gap: var(--sp-4); flex-wrap: wrap; }

/* ==================== LOGO LOCKUP ==================== */
.logo {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  font-family: var(--font-display);
  text-decoration: none; color: var(--ink);
  line-height: 1;
}
.logo__wordmark {
  font-size: 22px; font-weight: var(--fw-semi);
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
}
.logo__wordmark::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 6px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2 7 C 30 3, 60 11, 100 6 S 170 2, 198 8' stroke='%23C4582D' stroke-width='2.4' fill='none' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%;
}
.logo__fleuron {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.5em;
  color: var(--sepia);
  vertical-align: super;
}
.logo--lg .logo__wordmark { font-size: 32px; }

/* ==================== UTILITIES ==================== */
.stack { display: grid; }
.stack > * + * { margin-top: var(--sp-4); }
.stack-2 > * + * { margin-top: var(--sp-2); }
.stack-3 > * + * { margin-top: var(--sp-3); }
.stack-6 > * + * { margin-top: var(--sp-6); }
.stack-8 > * + * { margin-top: var(--sp-8); }

.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.cluster--tight { gap: var(--sp-2); }
.cluster--loose { gap: var(--sp-4); }

.measure { max-width: var(--measure); }
.page-wrap { max-width: var(--w-page); margin-inline: auto; padding-inline: var(--sp-6); }
.page-wrap--narrow { max-width: var(--w-narrow); }
.page-wrap--wide   { max-width: var(--w-wide); }

/* ==================== PRINT ==================== */
@media print {
  :root { --bg: #fff; --paper: #fff; --paper-warm: #fff; --paper-ridge: #fff; }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.45; }
  h1 { font-size: 22pt; }
  h2 { font-size: 16pt; }
  h3 { font-size: 13pt; }
  .btn, .switch, .check, .radio, nav, .expat-banner__close { display: none !important; }
  .cta-card, .expat-cta-pack { display: none !important; }
  .card, .encart-editorial, .profile-panel, .expat-tile-set { box-shadow: none; border: 1px solid #000; break-inside: avoid; }
  .dim, .profile-panel { break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
  .source-cite { color: #000; }
  .fleuron { display: none; }
  @page { size: A4; margin: 18mm; }
}
/* =========================================================================
   NextToYourPlace — landing style.css
   Construit sur colors_and_type.css + components.css du design system v2.
   Aucune couleur ajoutée. Aucune famille typo ajoutée.
   ========================================================================= */

/* ==================== RESET MINIMAL ==================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; }

/* ==================== LAYOUT WRAPPERS ==================== */
.wrap         { max-width: var(--w-page); margin-inline: auto; padding-inline: var(--sp-6); }
.wrap-narrow  { max-width: var(--w-narrow); margin-inline: auto; padding-inline: var(--sp-6); }
.wrap-wide    { max-width: var(--w-wide); margin-inline: auto; padding-inline: var(--sp-6); }

/* Bilingue : on cache l'autre langue */
[data-lang="fr"] [data-en] { display: none; }
[data-lang="en"] [data-fr] { display: none; }

/* ==================== HEADER V2 (intact) ==================== */
.header-v2 {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--border-fine);
}
.header-v2 .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); padding-block: var(--sp-3); }
.header-v2 .brand {
  display: inline-flex; align-items: center;
  text-decoration: none;
}
.header-v2 .brand__logo {
  display: block;
  height: 72px; width: auto;
}
.nav-v2 ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--sp-6); }
.nav-v2 a {
  font-family: var(--font-body); font-size: var(--fs-body);
  color: var(--fg-soft); text-decoration: none;
  transition: color var(--dur-1) var(--ease);
}
.nav-v2 a:hover { color: var(--terracotta); }
.lang-toggle-v2 {
  background: transparent; border: 1px solid var(--ink-subtle);
  padding: 6px 12px; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: var(--fs-caption); font-weight: var(--fw-medium);
  letter-spacing: 0.06em; color: var(--fg-soft); cursor: pointer;
  transition: all var(--dur-1) var(--ease);
}
.lang-toggle-v2:hover { border-color: var(--ink); color: var(--ink); }

@media (max-width: 720px) {
  .nav-v2 { display: none; }
}

/* ==================== HERO V3 ==================== */
.hero-v3 { position: relative; padding: var(--sp-12) var(--sp-6) var(--sp-12); max-width: var(--w-wide); margin-inline: auto; }
.hero-v3-banner {
  width: 65%; max-width: 65%; height: auto; display: block;
  margin: 0 auto var(--sp-4);
  border: var(--border-fine);
  filter: saturate(0.95);
}
/* max-width supprimé : le texte s'étale sur toute la largeur disponible */
.hero-v3-head { margin: 0 auto var(--sp-6); text-align: center; }
.h1-v3 {
  font-family: var(--font-display); font-weight: var(--fw-semi);
  font-size: var(--fs-display-m); line-height: 1.1;
  letter-spacing: -0.01em; margin: 0 0 var(--sp-3);
}
.hero-v3-tag {
  font-family: var(--font-display); font-style: italic;
  font-size: var(--fs-h3); color: var(--fg-soft);
  font-weight: var(--fw-regular); line-height: 1.3;
  margin: 0 auto var(--sp-4); max-width: 56ch;
}
.hero-v3-sub {
  font-family: var(--font-display);
  font-size: var(--fs-body-l); color: var(--fg-soft);
  font-weight: var(--fw-regular); line-height: 1.5;
  max-width: 60ch; margin: 0 auto;
}
.profile-pills-v3 {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2);
  margin-bottom: var(--sp-8);
}
.pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-display); font-weight: var(--fw-semi);
  font-size: var(--fs-body);
  padding: 8px 16px;
  background: var(--paper);
  border: 1.5px solid var(--ink-subtle);
  border-radius: var(--radius-pill);
  color: var(--fg); cursor: pointer;
  transition: all var(--dur-1) var(--ease);
}
.pill em { font-style: normal; }
.pill-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.pill--calme       .pill-dot { background: var(--forest); }
.pill--dynamique   .pill-dot { background: var(--terracotta); }
.pill--famille     .pill-dot { background: var(--sepia); }
.pill--investisseur .pill-dot { background: var(--ink); }
.pill:hover { border-color: var(--ink); }
.pill[aria-selected="true"] { background: var(--profile-wash); border-color: var(--profile-color); color: var(--profile-color); }
.pill--calme[aria-selected="true"]       { background: var(--forest-wash);     border-color: var(--forest);     color: var(--forest-deep); }
.pill--dynamique[aria-selected="true"]   { background: var(--terracotta-wash); border-color: var(--terracotta); color: var(--terracotta-deep); }
.pill--famille[aria-selected="true"]     { background: var(--sepia-wash);      border-color: var(--sepia);      color: var(--sepia-deep); }
.pill--investisseur[aria-selected="true"]{ background: var(--paper-ridge);     border-color: var(--ink);        color: var(--ink); }

.hero-v3-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--sp-8);
  align-items: stretch;
}
@media (max-width: 900px) { .hero-v3-grid { grid-template-columns: 1fr; } }

.hero-v3-map { display: flex; flex-direction: column; gap: var(--sp-3); height: 100%; }

.address-search { display: flex; gap: var(--sp-2); }
.address-search-field { position: relative; flex: 1; }
.address-search input {
  width: 100%;
  font-family: var(--font-body); font-size: var(--fs-body-l);
  padding: 14px 18px;
  background: var(--paper);
  border: 1.5px solid var(--ink); color: var(--fg);
  border-radius: var(--radius-1);
}
.address-search input::placeholder { color: var(--ink-subtle); font-style: italic; }
.address-search input:focus { outline: none; box-shadow: 0 0 0 3px var(--terracotta-wash); border-color: var(--terracotta); }
.address-results {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--paper); border: 1.5px solid var(--ink);
  border-top: none; list-style: none; margin: 0; padding: 0;
  max-height: 280px; overflow-y: auto; z-index: var(--z-overlay);
}
.address-results li {
  padding: 10px 18px; cursor: pointer;
  font-family: var(--font-body); font-size: var(--fs-body);
  border-bottom: var(--border-fine);
}
.address-results li:hover, .address-results li[aria-selected="true"] { background: var(--paper-warm); }
.address-results li:last-child { border-bottom: none; }

.btn-primary {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-display); font-weight: var(--fw-semi);
  font-size: var(--fs-body);
  padding: 14px 20px;
  background: var(--terracotta); color: var(--paper);
  border: 1.5px solid var(--terracotta);
  border-radius: var(--radius-1);
  cursor: pointer; text-decoration: none;
  transition: all var(--dur-1) var(--ease);
}
.btn-primary:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); transform: translate(-1px, -1px); box-shadow: var(--shadow-2); color: var(--paper); }
.btn-primary.btn-large { padding: 16px 28px; font-size: var(--fs-body-l); }

.map-canvas {
  width: 100%; height: 100%; min-height: 460px; flex: 1;
  border: 1.5px solid var(--ink);
  background: var(--paper-warm);
  position: relative;
}
.map-canvas::after {
  /* élégance : un coin marqué pour rappeler le grain éditorial */
  content: ""; position: absolute; right: -4px; bottom: -4px;
  width: 28px; height: 28px;
  border-right: 1.5px solid var(--sepia);
  border-bottom: 1.5px solid var(--sepia);
  pointer-events: none;
}
.map-canvas .leaflet-container { background: var(--paper-warm); font-family: var(--font-body); }

/* ==================== HERO PROFILE PANEL ==================== */
.hero-v3-profile {
  background: var(--paper);
  border: var(--border-regular);
  border-left: 4px solid var(--profile-color);
  padding: var(--sp-6);
  display: grid; gap: var(--sp-3); align-content: start;
  transition: border-color var(--dur-2) var(--ease);
}
.profile-name {
  font-family: var(--font-display); font-weight: var(--fw-semi);
  font-size: var(--fs-display-m); line-height: 1.08; letter-spacing: -0.01em;
  margin: 0; color: var(--profile-deep, var(--profile-color));
}
.profile-headline {
  font-family: var(--font-display); font-style: italic;
  font-size: var(--fs-h2); color: var(--fg-soft);
  font-weight: var(--fw-regular); margin: 0;
}
.profile-sub, .profile-story {
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.6;
  color: var(--fg-soft); margin: 0;
}
.profile-story { color: var(--fg); border-top: var(--border-fine); padding-top: var(--sp-3); }
.profile-illus-v3 {
  margin: var(--sp-3) 0 0;
  background: var(--paper-warm);
  border: var(--border-fine);
  aspect-ratio: 4/3; overflow: hidden;
}
.profile-illus-v3 img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================================
   ZONE REFONDUE — TOUT CE QUI EST SOUS LA CARTE
   ========================================================================= */

/* ==================== SECTION COMMUNE — utilitaire ==================== */
.section {
  max-width: var(--w-wide);
  margin-inline: auto;
  padding: var(--sp-12) var(--sp-6);
}
.section--alt { background: var(--paper-warm); }
.section--ridge { background: var(--paper-ridge); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h2, .section--ink .section-kicker, .section--ink .section-headline { color: var(--paper); }
.section--ink p { color: color-mix(in oklab, var(--paper) 80%, var(--ink)); }

.section-head {
  display: grid; gap: var(--sp-3);
  margin: 0 auto var(--sp-12);
  max-width: 64ch;
  text-align: center;
  justify-items: center;
}
.section-kicker {
  font-family: var(--font-body);
  font-size: var(--fs-micro); font-weight: var(--fw-medium);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--terracotta); margin: 0;
}
.section-headline {
  font-family: var(--font-display); font-weight: var(--fw-semi);
  font-size: var(--fs-display-m); line-height: 1.1; letter-spacing: -0.01em;
  margin: 0; max-width: 22ch; text-wrap: balance;
}
.section-sub {
  font-family: var(--font-display); font-style: italic;
  font-size: var(--fs-h2); color: var(--fg-soft);
  font-weight: var(--fw-regular); margin: 0 auto; max-width: 48ch;
}
.section--ink .section-sub { color: color-mix(in oklab, var(--paper) 70%, var(--ink)); }

/* ==================== BLOC : LES 10 DIMENSIONS ==================== */
.dims-block { padding-top: var(--sp-12); padding-bottom: var(--sp-12); }
.dims-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: var(--border-fine);
  border-left: var(--border-fine);
}
.dim-card {
  display: grid; gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--paper);
  border-right: var(--border-fine);
  border-bottom: var(--border-fine);
  position: relative;
  min-height: 220px;
  transition: background var(--dur-2) var(--ease);
}
.dim-card:hover { background: var(--paper-warm); }
.dim-card__num {
  font-family: var(--font-display);
  font-size: var(--fs-caption); font-style: italic;
  color: var(--ink-subtle);
  position: absolute; top: var(--sp-3); right: var(--sp-4);
  font-variant-numeric: oldstyle-nums;
}
.dim-card__picto {
  width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
  color: var(--profile-color, var(--terracotta));
}
.dim-card__picto svg,
.dim-card__picto img { width: 100%; height: 100%; object-fit: contain; }
.dim-card__name {
  font-family: var(--font-display); font-weight: var(--fw-semi);
  font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -0.005em;
  margin: 0; max-width: 18ch;
}
.dim-card__sub {
  font-family: var(--font-body); font-size: var(--fs-caption);
  color: var(--fg-soft); margin: 0;
}
.dim-card__source {
  margin-top: auto;
  font-family: var(--font-body); font-size: var(--fs-micro); font-style: italic;
  color: var(--fg-muted);
  border-top: var(--border-fine); padding-top: var(--sp-2);
}
.dim-card__source strong { font-style: normal; font-weight: var(--fw-medium); color: var(--fg-soft); }

/* ==================== BLOC : APPLICATION + SIMULATEURS (côte à côte) ==================== */
.duo-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8);
}
@media (max-width: 900px) { .duo-grid { grid-template-columns: 1fr; } }

.encart-v3 {
  display: grid; gap: var(--sp-3);
  padding: var(--sp-8);
  background: var(--paper);
  border: var(--border-regular);
  position: relative;
}
.encart-v3--apercu { border-left: 4px solid var(--ink); }
.encart-v3--simulateur { border-left: 4px solid var(--sepia); }

.encart-kicker {
  font-family: var(--font-body); font-style: italic;
  font-size: var(--fs-caption); color: var(--terracotta);
  margin: 0 0 var(--sp-2);
}
.encart-name {
  font-family: var(--font-display); font-weight: var(--fw-semi);
  font-size: var(--fs-display-m); line-height: 1.08; letter-spacing: -0.01em;
  margin: 0; max-width: 18ch;
}
.encart-headline {
  font-family: var(--font-display); font-style: italic;
  font-size: var(--fs-h2); color: var(--fg-soft);
  font-weight: var(--fw-regular); line-height: 1.3;
  margin: 0; max-width: 28ch; text-wrap: balance;
}
.encart-sub {
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.6;
  margin: 0; max-width: 48ch;
}
.encart-mini-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4);
  margin: var(--sp-4) 0 0; padding: 0;
  border-top: var(--border-fine); padding-top: var(--sp-4);
}
.encart-mini-grid > div { display: grid; gap: 2px; }
.encart-mini-grid dt {
  font-family: var(--font-body); font-size: var(--fs-micro);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-muted); font-weight: var(--fw-medium);
  margin: 0;
}
.encart-mini-grid dd {
  margin: 0;
  font-family: var(--font-display); font-weight: var(--fw-semi);
  font-size: var(--fs-h1); line-height: 1; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.encart-mini-grid .unit { font-size: 0.55em; font-weight: var(--fw-regular); color: var(--fg-soft); margin-left: 2px; }
.encart-source-line {
  font-family: var(--font-body); font-style: italic; font-size: var(--fs-caption);
  color: var(--fg-muted); margin: var(--sp-2) 0 0;
  border-top: var(--border-fine); padding-top: var(--sp-3);
}
.encart-link {
  margin-top: var(--sp-4);
  font-family: var(--font-body); font-weight: var(--fw-medium);
  color: var(--terracotta); text-decoration: underline;
  text-underline-offset: 0.2em; align-self: start;
}
.encart-link:hover { color: var(--terracotta-deep); }

.encart-articles {
  list-style: none; margin: var(--sp-3) 0 0; padding: 0;
  display: grid; gap: var(--sp-4);
  border-top: var(--border-fine); padding-top: var(--sp-4);
}
.encart-articles li {
  display: grid; gap: var(--sp-1);
  padding-bottom: var(--sp-3);
  border-bottom: var(--border-fine);
}
.encart-articles li:last-child { border-bottom: none; padding-bottom: 0; }
.encart-article-tag {
  font-family: var(--font-body); font-size: var(--fs-micro); font-weight: var(--fw-medium);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sepia-deep);
}
.encart-articles em {
  font-family: var(--font-display); font-style: italic;
  font-size: var(--fs-body-l); line-height: 1.4;
  color: var(--fg);
}
.encart-mention {
  font-family: var(--font-body); font-style: italic; font-size: var(--fs-caption);
  color: var(--fg-muted);
  border-top: var(--border-fine); padding-top: var(--sp-3);
  margin: var(--sp-3) 0 0;
}

/* ==================== BLOC : SOURCES + ENGAGEMENTS ==================== */
.encart-tags {
  list-style: none; padding: 0; margin: var(--sp-3) 0 0;
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
}
.encart-tags li {
  font-family: var(--font-body); font-size: var(--fs-caption);
  padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--paper-ridge); color: var(--fg-soft);
  border: 1px solid var(--ink-faint);
}

.encart-engagements {
  list-style: none; padding: 0; margin: var(--sp-4) 0 0;
  display: grid; gap: var(--sp-4);
  counter-reset: eng;
}
.encart-engagements li {
  display: grid; gap: var(--sp-1);
  padding: var(--sp-3) 0 var(--sp-3) var(--sp-12);
  border-top: var(--border-fine);
  position: relative;
  counter-increment: eng;
}
.encart-engagements li::before {
  content: counter(eng, decimal-leading-zero);
  position: absolute; left: 0; top: var(--sp-3);
  font-family: var(--font-display); font-style: italic;
  font-size: var(--fs-h1); color: var(--terracotta);
  font-variant-numeric: oldstyle-nums;
  line-height: 1;
}
.encart-engagements li strong {
  display: block;
  font-family: var(--font-display); font-weight: var(--fw-semi);
  font-size: var(--fs-h3); color: var(--fg);
}
.encart-engagements li > span {
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.55;
  color: var(--fg-soft); max-width: 48ch;
}

/* ==================== BLOC : LE DOSSIER (CTA — anti-bias §5.6) ==================== */
.encart-v3--cta {
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--ink);
  border-left: 4px solid var(--terracotta);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-8);
  padding: var(--sp-12);
  position: relative;
}
.encart-v3--cta .encart-name { color: var(--paper); font-style: italic; max-width: 12ch; }
.encart-v3--cta .encart-name em { font-style: italic; }
.encart-v3--cta .encart-headline { color: color-mix(in oklab, var(--paper) 80%, var(--ink)); }
.encart-v3--cta .encart-sub { color: color-mix(in oklab, var(--paper) 70%, var(--ink)); max-width: 44ch; }
.encart-v3--cta .encart-mention { border-color: color-mix(in oklab, var(--paper) 30%, var(--ink)); color: color-mix(in oklab, var(--paper) 60%, var(--ink)); }
.encart-v3__copy { display: grid; gap: var(--sp-3); align-content: center; }
.encart-v3__buy {
  display: grid; gap: var(--sp-4); align-content: center; justify-items: start;
  padding-left: var(--sp-8); border-left: 1px solid color-mix(in oklab, var(--paper) 25%, var(--ink));
}
.encart-price {
  font-family: var(--font-display); font-weight: var(--fw-semi);
  font-size: clamp(56px, 6vw, 84px); line-height: 1;
  letter-spacing: -0.02em; color: var(--paper);
  margin: 0; font-variant-numeric: tabular-nums;
}
.encart-price-sub { font-family: var(--font-body); font-style: italic; font-size: var(--fs-caption); color: color-mix(in oklab, var(--paper) 65%, var(--ink)); margin: 0; }
.encart-cta {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-display); font-weight: var(--fw-semi);
  font-size: var(--fs-body-l);
  padding: 16px 28px;
  background: var(--terracotta); color: var(--paper);
  border: 1.5px solid var(--terracotta);
  border-radius: var(--radius-1);
  text-decoration: none;
  transition: all var(--dur-1) var(--ease);
}
.encart-cta:hover { background: var(--paper); color: var(--terracotta); border-color: var(--paper); transform: translate(-1px, -1px); }
.encart-cta em { font-style: italic; }

ul.dossier-toc {
  list-style: none; margin: var(--sp-4) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px var(--sp-4);
  font-family: var(--font-body); font-size: var(--fs-caption);
  color: color-mix(in oklab, var(--paper) 70%, var(--ink));
}
ul.dossier-toc li { display: flex; align-items: baseline; gap: var(--sp-2); }
ul.dossier-toc li::before {
  content: "·"; color: var(--sepia); font-weight: bold; flex-shrink: 0;
}

@media (max-width: 900px) {
  .encart-v3--cta { grid-template-columns: 1fr; padding: var(--sp-8); }
  .encart-v3__buy { padding-left: 0; border-left: none; border-top: 1px solid color-mix(in oklab, var(--paper) 25%, var(--ink)); padding-top: var(--sp-6); }
  .dossier-toc__grid { grid-template-columns: repeat(2, 1fr); }
  ul.dossier-toc { grid-template-columns: 1fr; }
}

/* ==================== BLOC : À PROPOS — éditorial long ==================== */
.encart-apropos {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--sp-12);
  padding: var(--sp-12);
  background: var(--paper);
  border: var(--border-regular);
  border-top: var(--border-strong);
  align-items: center;
}
@media (max-width: 900px) { .encart-apropos { grid-template-columns: 1fr; padding: var(--sp-8); gap: var(--sp-8); } }

.encart-apropos__copy { display: grid; gap: var(--sp-4); align-content: center; }
.encart-apropos__copy p {
  font-family: var(--font-body); font-size: var(--fs-body-l); line-height: 1.65;
  max-width: var(--measure); margin: 0;
  text-wrap: pretty;
}
.encart-apropos__copy .lead {
  font-family: var(--font-display); font-style: italic;
  font-size: var(--fs-h2); line-height: 1.3;
  color: var(--fg); max-width: 32ch; text-wrap: balance;
  font-weight: var(--fw-regular);
}
.encart-apropos__sign { display: none; }
.encart-apropos__quote {
  font-family: var(--font-display); font-style: italic;
  font-size: var(--fs-h2); color: var(--fg-soft);
  border-top: var(--border-fine); padding-top: var(--sp-4);
  margin-top: var(--sp-2); line-height: 1.3;
}
.encart-apropos__art {
  background: var(--paper-warm);
  border: var(--border-fine);
  align-self: start;
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
}
.encart-apropos__art img { width: 100%; height: 100%; object-fit: cover; }
.encart-apropos__art figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--sp-3) var(--sp-4);
  background: color-mix(in oklab, var(--paper) 90%, transparent);
  font-family: var(--font-body); font-style: italic; font-size: var(--fs-caption);
  color: var(--fg-muted);
  border-top: var(--border-fine);
}

/* ==================== FLEURON ==================== */
.fleuron-block {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-4);
  margin: 0 auto;
  padding: var(--sp-12) var(--sp-6);
  max-width: var(--w-page);
  color: var(--sepia);
}
.fleuron-block::before, .fleuron-block::after {
  content: ""; flex: 1; max-width: 200px;
  border-top: 1px solid var(--sepia);
  opacity: 0.5;
}
.fleuron-block__mark {
  font-family: var(--font-display); font-size: 22px;
  letter-spacing: 0.4em;
}

/* ==================== FOOTER V2 ==================== */
.footer-v2 {
  background: transparent;
  border-top: none;
  padding: var(--sp-8) 0;
  margin-top: var(--sp-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-8);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); } }

.footer-brand {
  font-family: var(--font-display); font-weight: var(--fw-semi);
  font-size: var(--fs-h2); margin: 0 0 var(--sp-2); letter-spacing: -0.01em;
  position: relative; display: inline-block; padding-bottom: 6px;
}
.footer-brand::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 6px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2 7 C 30 3, 60 11, 100 6 S 170 2, 198 8' stroke='%23C4582D' stroke-width='2.4' fill='none' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%;
}
.footer-baseline {
  font-family: var(--font-display); font-style: italic;
  font-size: var(--fs-body); color: var(--fg-soft);
  max-width: 36ch; margin: 0 0 var(--sp-3);
}
.footer-v2 h4 {
  font-family: var(--font-body); font-size: var(--fs-micro);
  font-weight: var(--fw-medium); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-muted); margin: 0 0 var(--sp-3);
}
.footer-v2 ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-v2 ul a {
  font-family: var(--font-body); font-size: var(--fs-body);
  color: var(--fg-soft); text-decoration: none;
  transition: color var(--dur-1) var(--ease);
}
.footer-v2 ul a:hover { color: var(--terracotta); text-decoration: underline; text-underline-offset: 0.2em; }

.footer-credit {
  display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-6);
  align-items: center; justify-content: space-between;
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--rule);
  background: transparent;
  font-family: var(--font-body); font-size: var(--fs-caption);
  color: var(--fg-muted);
}
.footer-credit__text {
  display: grid; gap: 2px;
  font-style: normal;
  flex: 1 1 280px;
}
.footer-credit__line {
  margin: 0;
  font-family: var(--font-body); font-size: var(--fs-caption);
  color: var(--fg-soft); line-height: 1.5;
}
.footer-credit__line--soft {
  color: var(--fg-muted); font-style: italic;
}
.footer-credit__legal {
  margin: 0;
}
.footer-credit__legal ul {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4);
  list-style: none; padding: 0; margin: 0;
}
.footer-credit__legal a {
  font-family: var(--font-body); font-size: var(--fs-caption);
  color: var(--fg-soft); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.footer-credit__legal a:hover {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}
.footer-credit__forge {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--terracotta); font-style: italic;
  text-decoration: none;
}
.footer-credit__forge::before { content: none !important; display: none !important; }
.footer-credit__forge-mark {
  display: block;
  width: 64px; height: 64px;
  opacity: 0.9;
}

/* ==================== HEX OVERLAY (carte) ==================== */
.hex-overlay { pointer-events: none; }
.hex-cell {
  fill: var(--profile-color);
  fill-opacity: 0.32;
  stroke: var(--profile-deep, var(--profile-color));
  stroke-opacity: 0.7;
  stroke-width: 0.8;
  transition: fill-opacity var(--dur-2) var(--ease);
}
.hex-cell--high { fill-opacity: 0.55; }
.hex-cell--mid  { fill-opacity: 0.36; }
.hex-cell--low  { fill-opacity: 0.18; }
.hex-cell--accent { stroke: var(--ink); stroke-width: 1.4; fill-opacity: 0.6; }

/* ==================== RESPONSIVE FINAL ==================== */
@media (max-width: 720px) {
  .h1-v3 { font-size: var(--fs-display-m); }
  .section { padding: var(--sp-8) var(--sp-4); }
  .encart-v3 { padding: var(--sp-6); }
  .encart-mini-grid { grid-template-columns: 1fr 1fr; }
}
/* =========================================================================
   commune.css — Page commune (variante A — Le Récit)
   Mise en page : récit long sur colonne principale + carte sticky latérale.
   ========================================================================= */

/* ==================== BREADCRUMBS ====================
   Maillage interne SEO : France > Région > Département > Commune.
   Schema.org BreadcrumbList JSON-LD est émis dans le <head> en parallèle
   pour permettre à Google d'afficher le fil dans les SERPs (CTR +5-15%).

   Style discret cohérent vintage éditorial : ligne horizontale, italique
   subtil, séparateurs '›', le crumb actif (sans href) en couleur ink.
*/
.breadcrumbs {
  background: var(--paper);
  border-bottom: var(--border-fine);
  padding: var(--sp-3) 0;
  font-family: var(--font-body);
  font-size: var(--fs-caption);
}
.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0 var(--sp-6);
  max-width: var(--w-wide);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  color: var(--fg-soft);
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.breadcrumbs li + li::before {
  content: "›";
  color: var(--terracotta);
  margin-right: var(--sp-1);
  font-weight: var(--fw-semi);
}
.breadcrumbs a {
  color: var(--terracotta);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease;
}
.breadcrumbs a:hover { border-bottom-color: var(--terracotta); }
.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-style: italic;
}

/* ==================== PAGE DÉPARTEMENT ====================
   /departement/{dept-code}/ — page hub agrégat dept. Réutilise
   commune-hero / commune-recit / commune-meta + extensions ci-dessous.
*/
.departement-page .commune-hero__inner { display: block; }

.departement-indicators {
  background: var(--paper);
  padding: var(--sp-12) 0 var(--sp-16);
}
.departement-indicator { margin-block: var(--sp-12); }
.departement-indicator h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--terracotta);
  margin: 0 0 var(--sp-4);
}
.departement-indicator h4 {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-style: italic;
  font-weight: var(--fw-semi);
  color: var(--fg-soft);
  margin: var(--sp-4) 0 var(--sp-2);
}
.departement-indicator__stats {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--ink);
}
.departement-ranking {
  list-style: decimal inside;
  padding: 0;
  margin: 0;
}
.departement-ranking li {
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--border-fine, rgba(0,0,0,0.05));
  overflow: hidden;
}
.departement-ranking li a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--terracotta);
}
.departement-ranking li a:hover { color: var(--terracotta); }
.departement-ranking .postal {
  color: var(--fg-soft);
  font-style: italic;
  margin-left: var(--sp-2);
}
.departement-ranking .value {
  float: right;
  color: var(--terracotta);
  font-weight: var(--fw-semi);
}

.departement-communes {
  background: var(--paper);
  padding: var(--sp-12) 0;
  border-top: var(--border-fine);
}
.departement-communes__list {
  list-style: none;
  padding: 0;
  margin: var(--sp-6) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-2) var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--fs-caption);
}
.departement-communes__list li {
  padding: var(--sp-1) 0;
  border-bottom: 1px solid var(--border-fine, rgba(0,0,0,0.05));
}
.departement-communes__list a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.departement-communes__list a:hover {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}
.departement-communes__list .postal,
.departement-communes__list .pop {
  color: var(--fg-soft);
  font-style: italic;
  margin-left: var(--sp-2);
}

/* ==================== HERO COMMUNE ==================== */
.commune-hero {
  padding: var(--sp-16) 0 var(--sp-12);
  border-bottom: var(--border-fine);
  background: var(--paper);
}
.commune-hero__inner {
  max-width: var(--w-wide);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}
@media (min-width: 900px) {
  .commune-hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--sp-12);
    align-items: center;
  }
}
.commune-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Marge supplémentaire pour décoller visuellement de la colonne contenu
     (gap grid + padding interne). À ≥ 1200px on respire mieux. */
  padding-left: var(--sp-6);
}
@media (min-width: 1200px) {
  .commune-hero__visual { padding-left: var(--sp-8); }
}
.commune-hero__img {
  max-width: 100%;
  height: auto;
  display: block;
}
.commune-hero__kicker {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-style: italic;
  color: var(--terracotta);
  letter-spacing: 0.02em;
  margin: 0 0 var(--sp-4);
}
.commune-hero__name {
  font-family: var(--font-display);
  font-weight: var(--fw-semi);
  font-size: var(--fs-display-xl);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-4);
  color: var(--ink);
  text-wrap: balance;
}
.commune-hero__name em {
  font-style: italic;
  font-weight: var(--fw-regular);
  color: var(--terracotta);
}
.commune-hero__meta {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-h2);
  color: var(--fg-soft);
  font-weight: var(--fw-regular);
  margin: 0 0 var(--sp-12);
  max-width: 50ch;
  line-height: 1.35;
}

/* Champ adresse dans le hero */
.commune-hero__address {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  max-width: 720px;
  border: 1px solid var(--ink);
  background: var(--paper);
  transition: box-shadow var(--dur-2) var(--ease);
}
.commune-hero__address:focus-within {
  box-shadow: 0 0 0 2px var(--terracotta-wash);
}
.commune-hero__address-label {
  display: block;
  padding: 14px 18px 0;
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  flex: 1 1 100%;
}
.commune-hero__address-input {
  flex: 1 1 60%;
  border: none;
  background: transparent;
  padding: 4px 18px 14px;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--ink);
  outline: none;
}
.commune-hero__address-input::placeholder { color: var(--fg-subtle); font-style: italic; }
.commune-hero__address-btn {
  flex: 0 0 auto;
  border: none;
  border-left: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 0 24px;
  font-family: var(--font-display);
  font-weight: var(--fw-semi);
  font-size: var(--fs-body);
  cursor: pointer;
  transition: background var(--dur-1) var(--ease);
}
.commune-hero__address-btn:hover { background: var(--terracotta); }
.commune-hero__address-hint {
  margin-top: var(--sp-3);
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  color: var(--fg-muted);
  font-style: italic;
}

/* ==================== OUVERTURE — paragraphe long ==================== */
.commune-opening {
  padding: var(--sp-12) 0 var(--sp-12);
  background: var(--paper);
}
.commune-opening__inner {
  max-width: var(--w-wide);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}
.commune-opening__kicker { display: none; }
.commune-opening__lede {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.75;
  color: var(--fg);
  margin: 0;
  max-width: 100%;
  text-wrap: pretty;
  font-style: normal;
  font-weight: var(--fw-regular);
}
.commune-opening__lede::first-letter {
  all: unset;
}

/* ==================== RÉCIT 2-COLONNES (récit + carte sticky) ==================== */
.commune-recit {
  padding: var(--sp-12) 0;
  background: var(--paper);
}

/* ---- Pleine largeur, article centré avec marges ---- */
.commune-recit__story {
  max-width: var(--w-wide);
  margin-inline: auto;
  padding-inline: var(--sp-6);
  font-family: var(--font-body);
  font-size: var(--fs-body-l);
  line-height: 1.7;
  color: var(--fg);
}
.commune-recit__chapter {
  margin: 0 0 var(--sp-16);
  padding-top: var(--sp-12);
  border-top: var(--border-fine);
  scroll-margin-top: 80px;
}
.commune-recit__chapter:first-child { border-top: none; padding-top: 0; }
.commune-recit__chapter:last-child { margin-bottom: 0; }

.commune-recit__num {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-h3);
  color: var(--terracotta);
  font-variant-numeric: oldstyle-nums;
  margin: 0 0 var(--sp-2);
}

/* H2 avec numéro romain + picto — aligné sur les paragraphes */
.commune-recit__title {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-weight: var(--fw-semi);
  font-size: var(--fs-display-m);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 80ch;
  margin: 0 auto var(--sp-6);
  color: var(--ink);
}
.commune-recit__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-semi);
  font-size: var(--fs-display-m);
  color: var(--terracotta);
  flex-shrink: 0;
  line-height: 1;
  min-width: 2ch;
}
.commune-recit__picto {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  opacity: 0.8;
}

/* Centrage horizontal — paragraphes et source */
.commune-recit__chapter p,
.commune-recit__source {
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
}
.commune-recit__chapter p { margin-bottom: var(--sp-4); }
.commune-recit__chapter p:last-child { margin-bottom: 0; }

/* Chiffre incrusté */
.commune-recit__chapter b.fig {
  font-family: var(--font-display);
  font-weight: var(--fw-semi);
  font-style: normal;
  font-variant-numeric: tabular-nums oldstyle-nums;
  color: var(--ink);
  border-bottom: 1px solid var(--terracotta);
  padding-bottom: 1px;
  white-space: nowrap;
}

/* Source en fin de chapitre */
.commune-recit__source {
  display: block;
  margin: var(--sp-4) auto 0;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--rule-fine);
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-style: italic;
  color: var(--fg-muted);
  max-width: 80ch;
}

/* Placeholder */
.commune-recit__chapter [data-placeholder] {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.88em;
  background: var(--terracotta-wash);
  color: var(--terracotta-deep);
  padding: 1px 6px;
  border-radius: var(--radius-1);
  white-space: nowrap;
}
.commune-map {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  padding: var(--sp-4);
  display: grid;
  gap: var(--sp-3);
}
.commune-map__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--rule-fine);
  padding-bottom: var(--sp-2);
}
.commune-map__title {
  font-family: var(--font-display);
  font-weight: var(--fw-semi);
  font-size: var(--fs-h3);
  margin: 0;
  color: var(--ink);
}
.commune-map__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-caption);
  color: var(--terracotta);
  font-variant-numeric: oldstyle-nums;
}
.commune-map__svg {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper);
  border-radius: var(--radius-2);
}
.commune-map__legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}
.commune-map__legend-scale {
  display: flex;
  height: 10px;
  flex: 0 0 140px;
  border: 1px solid var(--rule-fine);
}
.commune-map__legend-scale span {
  flex: 1;
  display: block;
  background: var(--scale-color, var(--terracotta));
}
.commune-map__legend-scale span:nth-child(1) { opacity: 0.18; }
.commune-map__legend-scale span:nth-child(2) { opacity: 0.36; }
.commune-map__legend-scale span:nth-child(3) { opacity: 0.55; }
.commune-map__legend-scale span:nth-child(4) { opacity: 0.78; }
.commune-map__legend-scale span:nth-child(5) { opacity: 1.00; }

.commune-map__caption {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  color: var(--fg-soft);
  font-style: italic;
  line-height: 1.4;
  margin: 0;
  text-wrap: pretty;
}
.commune-map__source {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  color: var(--fg-muted);
  letter-spacing: 0.02em;
  margin: 0;
  border-top: 1px solid var(--rule-fine);
  padding-top: var(--sp-2);
}

/* Hex SVG cells animation */
.hex-cell { transition: fill var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease); }
.hex-cell--anchor {
  stroke: var(--ink);
  stroke-width: 1.5;
  fill: var(--terracotta);
  opacity: 1;
}

/* ==================== SYNTHÈSE PAR PROFIL ==================== */
.commune-synth {
  padding: var(--sp-16) 0;
  background: var(--paper-warm);
  border-top: var(--border-fine);
  border-bottom: var(--border-fine);
}
.commune-synth__inner {
  max-width: var(--w-wide);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}
.commune-synth__kicker {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 var(--sp-4);
}
.commune-synth__title {
  font-family: var(--font-display);
  font-weight: var(--fw-semi);
  font-size: var(--fs-display-m);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-2);
  color: var(--ink);
  max-width: 28ch;
  text-wrap: balance;
}
.commune-synth__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-h2);
  color: var(--fg-soft);
  font-weight: var(--fw-regular);
  margin: 0 0 var(--sp-12);
  max-width: 60ch;
  line-height: 1.4;
}
.commune-synth__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-8);
}
@media (max-width: 760px) { .commune-synth__grid { grid-template-columns: 1fr; } }
.commune-profile {
  border-top: 2px solid var(--profile-color);
  padding-top: var(--sp-4);
}
.commune-profile[data-profile="calme"]        { --profile-color: var(--forest); }
.commune-profile[data-profile="dynamique"]    { --profile-color: var(--terracotta); }
.commune-profile[data-profile="famille"]      { --profile-color: var(--sepia); }
.commune-profile[data-profile="investisseur"] { --profile-color: var(--ink); }
.commune-profile__name {
  font-family: var(--font-display);
  font-weight: var(--fw-semi);
  font-size: var(--fs-h1);
  letter-spacing: -0.005em;
  margin: 0 0 var(--sp-2);
  color: var(--profile-color);
}
.commune-profile__body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--fg);
  margin: 0;
  max-width: 48ch;
}

/* ==================== BANDEAU PARTENAIRE + CTA DOSSIER ==================== */
.commune-partner {
  padding: var(--sp-16) 0;
  background: var(--ink);
  color: var(--paper);
}
.commune-partner__inner {
  max-width: var(--w-wide);
  margin-inline: auto;
  padding-inline: var(--sp-6);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-12);
  align-items: center;
}
@media (max-width: 760px) { .commune-partner__inner { grid-template-columns: 1fr; } }
.commune-partner__kicker {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 var(--sp-3);
}
.commune-partner__title {
  font-family: var(--font-display);
  font-weight: var(--fw-semi);
  font-size: var(--fs-display-m);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-4);
  color: var(--paper);
  max-width: 22ch;
  text-wrap: balance;
}
.commune-partner__copy {
  font-family: var(--font-body);
  font-size: var(--fs-body-l);
  line-height: 1.55;
  color: color-mix(in oklab, var(--paper) 80%, var(--ink));
  margin: 0 0 var(--sp-3);
  max-width: 56ch;
}
.commune-partner__price-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-h3);
  color: color-mix(in oklab, var(--paper) 70%, var(--ink));
  margin: 0;
}
.commune-partner__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-weight: var(--fw-semi);
  font-size: var(--fs-body-l);
  padding: 18px 28px;
  background: var(--terracotta);
  color: var(--paper);
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-2) var(--ease);
}
.commune-partner__cta:hover { background: var(--terracotta-deep); }
.commune-partner__cta-arrow { font-size: 1.2em; }

/* ==================== PIED COMMUNE — sources et extraction ==================== */
.commune-meta {
  padding: var(--sp-12) 0 var(--sp-8);
  background: var(--paper);
  border-bottom: var(--border-fine);
}
.commune-meta__inner {
  max-width: var(--w-wide);
  margin-inline: auto;
  padding-inline: var(--sp-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
}
@media (max-width: 760px) { .commune-meta__inner { grid-template-columns: 1fr; } }
.commune-meta dt {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 var(--sp-2);
}
.commune-meta dd {
  margin: 0 0 var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  line-height: 1.6;
  color: var(--fg);
}

/* ==================== CTA STICKY DISCRET (latéral droit) ==================== */
.commune-sticky {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: var(--fw-semi);
  font-size: var(--fs-body);
  padding: 14px 20px;
  background: var(--terracotta);
  color: var(--paper);
  text-decoration: none;
  box-shadow: 0 10px 30px -8px rgba(26, 26, 26, 0.35);
  z-index: 30;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), background var(--dur-1) var(--ease);
  pointer-events: none;
}
.commune-sticky.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.commune-sticky:hover { background: var(--terracotta-deep); }
.commune-sticky__price {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-regular);
  opacity: 0.85;
}
@media (max-width: 600px) {
  .commune-sticky {
    right: 12px;
    bottom: 12px;
    padding: 12px 16px;
    font-size: var(--fs-caption);
  }
}

/* ============================================================================
 * Widget H3 colorée — section sur commune.html.j2 et installation.html.j2.
 * Cf. ssg/static/js/widget-h3.js + backend /v1/widget/h3-colored.
 * ========================================================================== */
.commune-widget,
.installation-widget {
  margin: 4rem auto;
  padding: 0 var(--gutter, 24px);
  max-width: var(--container-narrow, 920px);
}
.commune-widget__inner {
  max-width: var(--container-narrow, 920px);
  margin: 0 auto;
}
.commune-widget__title,
.installation-widget h2 {
  font-family: var(--font-display, 'Spectral', serif);
  font-size: var(--fs-h2, 1.8rem);
  font-weight: 500;
  color: var(--ink, #1A1A1A);
  margin-bottom: 0.5rem;
}
.commune-widget__title em,
.installation-widget h2 em {
  font-style: italic;
  color: var(--terracotta, #C4582D);
}
.commune-widget__hint,
.installation-widget__hint {
  font-size: var(--fs-caption, 0.875rem);
  color: var(--ink-soft, #666);
  margin-bottom: 1.5rem;
  font-family: var(--font-body, 'Source Serif 4', serif);
}
.ntyp-widget {
  background: var(--paper-warm, #EFE7D2);
}

/* Leaflet override : fonts cohérentes avec le reste de la page */
.leaflet-container {
  font-family: var(--font-body, 'Source Serif 4', serif) !important;
}
