/* ============================================================
   BLG IMMOBILIER — Design system v3 « Clair & direct » (refonte L2)
   Source : refonte-design/README.md (piste B retenue + 2 emprunts à A).
   Chargé APRÈS style.css : il coexiste avec les gabarits non refondus.
   - Tokens préfixés --ds-* (style.css utilise déjà --text, --border, --shadow-sm…).
   - Composants préfixés .ds-* ; en-tête .site-header / .sh-*, pied .site-footer / .sf-*.
   - Pont « legacy » limité : police (--font, --font-display), barre collante, consentement, chat.
   Charte : orange #F58000 = repère / fond de bouton avec texte marine (5,37:1), jamais de texte
   orange sur blanc (2,63:1) : prix et chiffres en #B35500 (4,98:1). Marine #002E48 = action.
   Police : Plus Jakarta Sans variable 200–800 (SIL Open Font License 1.1, Tokotype),
   sous-ensemble latin auto-hébergé, une seule requête.
   ============================================================ */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215;
}
/* Repli aux métriques proches (Arial ajusté) : limite le décalage au moment du swap */
@font-face {
  font-family: "Plus Jakarta Sans Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 104%;
  ascent-override: 99.8%;
  descent-override: 21.3%;
  line-gap-override: 0%;
}

:root {
  /* Charte */
  --ds-orange: #F58000;
  --ds-navy: #002E48;
  --ds-grey: #C7C7C7;

  /* Couleurs sémantiques (ratios sur blanc) */
  --ds-primary: #002E48;          /* 14,15:1 — boutons, titres */
  --ds-primary-hover: #0A3D5E;
  --ds-on-primary: #FFFFFF;
  --ds-accent: #F58000;           /* repères, chips actives, fond de bouton accent */
  --ds-on-accent: #002E48;        /* 5,37:1 */
  --ds-accent-text: #B35500;      /* prix, chiffres, eyebrows : 4,98:1 */
  --ds-accent-soft: #FFF4E8;
  --ds-accent-line: #FFD3A6;
  --ds-accent-on-dark: #FFB366;   /* sur marine : 8,01:1 */
  --ds-text: #10324A;             /* 13,32:1 */
  --ds-text-muted: #4F6170;       /* 6,41:1 */
  --ds-text-on-dark: #FFFFFF;
  --ds-text-on-dark-muted: #C9D6E0; /* 9,55:1 sur marine */
  --ds-surface: #FFFFFF;
  --ds-surface-alt: #EEF3F7;
  --ds-surface-sunken: #DCE6EE;
  --ds-border: #D5DCE2;
  --ds-border-strong: #6F8293;    /* 3,9:1 : contour des champs */
  --ds-link: #0B4F78;             /* 8,74:1 */
  --ds-focus: #002E48;
  --ds-error: #B3261E;            /* 6,54:1 */
  --ds-success: #1B7F4B;          /* 5,02:1 */
  --ds-ok-bg: #E3F3EA;
  --ds-ok-text: #14633B;          /* 6,35:1 sur --ds-ok-bg */

  /* Typographie */
  --ds-font: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ds-fs-xs: .8125rem;   /* 13 */
  --ds-fs-sm: .9375rem;   /* 15 */
  --ds-fs-md: 1rem;       /* 16 */
  --ds-fs-lg: 1.125rem;   /* 18 */
  --ds-fs-xl: 1.375rem;   /* 22 */
  --ds-fs-2xl: 1.75rem;   /* 28 */
  --ds-fs-3xl: 2.125rem;  /* 34 */
  --ds-fs-4xl: 2.875rem;  /* 46 */
  --ds-lh-tight: 1.1;
  --ds-lh-snug: 1.25;
  --ds-lh-body: 1.6;

  /* Espacements 4/8/12/16/24/32/48/64 */
  --ds-sp-1: 4px;  --ds-sp-2: 8px;  --ds-sp-3: 12px; --ds-sp-4: 16px;
  --ds-sp-5: 24px; --ds-sp-6: 32px; --ds-sp-7: 48px; --ds-sp-8: 64px;

  /* Rayons, ombres, dimensions */
  --ds-radius-sm: 8px;
  --ds-radius: 12px;
  --ds-radius-lg: 18px;
  --ds-radius-pill: 999px;
  --ds-shadow-sm: 0 1px 2px rgba(0,46,72,.06), 0 2px 8px rgba(0,46,72,.06);
  --ds-shadow: 0 2px 4px rgba(0,46,72,.05), 0 12px 32px rgba(0,46,72,.10);
  --ds-measure: 66ch;
  --ds-container: 1200px;
  --ds-tap: 48px;

  /* Couches (z-index) : en-tête < barre collante / chat < menu ouvert < consentement */
  --ds-z-header: 1100;
  --ds-z-sticky: 2200;
  --ds-z-menu: 2300;
  --ds-z-consent: 4000;

  /* Pont legacy : une seule famille sur tout le site (fin de Cinzel / Josefin via Google Fonts) */
  --font: var(--ds-font);
  --font-display: var(--ds-font);
}

/* Boutons des gabarits non refondus : Plus Jakarta est plus large que Josefin Sans ; sur mobile un libellé
   long passe à la ligne au lieu d'être rogné par l'overflow-x: clip de style.css */
@media (max-width: 640px) {
  .btn { white-space: normal; text-align: center; max-width: 100%; }
}

/* Titres des gabarits non refondus : réglages pensés pour Cinzel (capitales espacées) → sans espacement */
h1, h2, h3, .section-title, .lead-title, .hero h1, .hero-stat-num, .page-header h1 {
  letter-spacing: -.01em;
  font-weight: 700;
}

.ds-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================
   EN-TÊTE — menu par besoin
   Fixe sur bureau (les gabarits réservent var(--nav-h) en haut de page) ;
   sur mobile il défile avec la page (absolu dans la même réserve) : +8 % d'écran utile.
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--ds-z-header);
  height: var(--nav-h);
  background: var(--ds-surface);
  border-top: 4px solid var(--ds-accent);
  border-bottom: 1px solid var(--ds-border);
  font-family: var(--ds-font);
  color: var(--ds-primary);
}
.sh-inner {
  width: min(100% - 2 * var(--ds-sp-4), var(--ds-container));
  margin-inline: auto;
  height: 100%;
  display: flex; align-items: center; gap: var(--ds-sp-3);
}
.sh-logo { display: flex; align-items: center; flex: none; margin-right: auto; border-radius: var(--ds-radius-sm); }
.sh-logo img { height: 46px; width: auto; display: block; }
.site-header a { text-decoration: none; }
.site-header :focus-visible, .site-footer :focus-visible { outline: 3px solid var(--ds-focus); outline-offset: 2px; }

/* Navigation bureau */
.sh-nav { display: none; }
.sh-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.sh-item { position: relative; display: flex; align-items: center; }
.sh-top {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 6px 0 12px;
  color: var(--ds-primary); font-weight: 600; font-size: var(--ds-fs-sm); white-space: nowrap;
  border-radius: var(--ds-radius-pill) 0 0 var(--ds-radius-pill);
}
.sh-item--plain .sh-top { padding: 0 12px; border-radius: var(--ds-radius-pill); }
.sh-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; min-height: 40px; padding: 0 8px 0 2px; margin: 0;
  background: none; border: 0; color: var(--ds-primary); cursor: pointer;
  border-radius: 0 var(--ds-radius-pill) var(--ds-radius-pill) 0;
}
.sh-toggle svg { width: 14px; height: 14px; transition: transform .15s; }
.sh-item:hover > .sh-top, .sh-item:hover > .sh-toggle, .sh-item.is-open > .sh-top, .sh-item.is-open > .sh-toggle { background: var(--ds-surface-alt); }
.sh-item.is-active > .sh-top, .sh-item.is-active > .sh-toggle { background: var(--ds-accent-soft); color: var(--ds-accent-text); }
.sh-item.is-open > .sh-toggle svg { transform: rotate(180deg); }
.sh-sub {
  display: none;
  position: absolute; top: 100%; left: 0;
  min-width: 270px; padding: var(--ds-sp-2);
  background: var(--ds-surface); border-radius: var(--ds-radius-lg); box-shadow: var(--ds-shadow);
  border: 1px solid var(--ds-border);
  list-style: none; margin: 6px 0 0;
}
.sh-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; } /* pont de survol */
.sh-item.is-open > .sh-sub { display: block; }
@media (hover: hover) and (pointer: fine) {
  .sh-item:hover > .sh-sub { display: block; }
}
.sh-sub a {
  display: block; padding: 10px 12px; border-radius: var(--ds-radius);
  color: var(--ds-primary); font-weight: 700; font-size: var(--ds-fs-sm); line-height: 1.3;
}
.sh-sub a small { display: block; font-weight: 500; font-size: var(--ds-fs-xs); color: var(--ds-text-muted); margin-top: 2px; }
.sh-sub a:hover { background: var(--ds-surface-alt); }

.sh-actions { display: flex; align-items: center; gap: var(--ds-sp-2); }
.sh-actions .sh-cta { display: none; } /* .ds-btn (plus bas) l'afficherait sinon */

/* Bouton menu (mobile / tablette) */
.sh-burger {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: var(--ds-tap); padding: 0 16px; margin: 0;
  border: 0; border-radius: var(--ds-radius-pill);
  background: var(--ds-surface-alt); color: var(--ds-primary);
  font: 700 var(--ds-fs-sm)/1 var(--ds-font); cursor: pointer;
}
.sh-burger-icon { position: relative; width: 18px; height: 12px; }
.sh-burger-icon::before, .sh-burger-icon::after, .sh-burger-icon span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
}
.sh-burger-icon::before { top: 0; } .sh-burger-icon span { top: 5px; } .sh-burger-icon::after { bottom: 0; }
.sh-burger[aria-expanded="true"] { background: var(--ds-primary); color: var(--ds-on-primary); }

/* Panneau mobile : [hidden] quand fermé → hors du parcours clavier (défaut R0 corrigé) */
.sh-panel {
  position: absolute; top: 100%; left: 0; right: 0;
  z-index: var(--ds-z-menu);
  max-height: calc(100vh - var(--nav-h)); max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--ds-surface);
  border-bottom: 1px solid var(--ds-border);
  box-shadow: var(--ds-shadow);
  padding: var(--ds-sp-3) var(--ds-sp-4) var(--ds-sp-5);
}
.sh-panel[hidden] { display: none; }
.sh-panel-group { padding: var(--ds-sp-2) 0; border-bottom: 1px solid var(--ds-border); }
.sh-panel-title {
  display: flex; align-items: center; gap: 8px;
  margin: var(--ds-sp-2) 0 var(--ds-sp-1);
  font-size: var(--ds-fs-xs); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ds-accent-text);
}
.sh-panel-title::before { content: ""; width: 14px; height: 4px; border-radius: 2px; background: var(--ds-accent); }
.sh-panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--ds-sp-3); }
.sh-panel li a {
  display: flex; align-items: center; min-height: 44px; padding: 6px 4px;
  color: var(--ds-primary); font-weight: 600; font-size: var(--ds-fs-sm); line-height: 1.25;
}
.sh-panel li a:hover { text-decoration: underline; }
.sh-panel-actions { display: grid; gap: var(--ds-sp-2); margin-top: var(--ds-sp-4); }

/* Mobile : l'en-tête défile avec la page */
@media (max-width: 768px) {
  .site-header { position: absolute; }
  .sh-logo img { height: 40px; }
  /* Barre de filtres de la recherche : collée en haut d'écran (plus d'en-tête fixe au-dessus) */
  .filter-section { top: 0; }
}
@media (max-width: 380px) {
  .sh-burger-label { display: none; }
}
@media (min-width: 769px) and (max-width: 1119px) {
  .sh-actions .sh-cta { display: inline-flex; }
}
@media (min-width: 1120px) {
  .sh-nav { display: block; }
  .sh-burger, .sh-panel { display: none !important; }
  .sh-actions .sh-cta { display: inline-flex; }
}

/* ============================================================
   BOUTONS (pilules)
   ============================================================ */
.ds-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--ds-sp-2);
  min-height: var(--ds-tap); padding: 0 var(--ds-sp-5);
  border-radius: var(--ds-radius-pill); border: 2px solid transparent;
  font: 700 var(--ds-fs-md)/1.1 var(--ds-font); text-align: center;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.ds-btn:focus-visible { outline: 3px solid var(--ds-focus); outline-offset: 2px; }
.ds-btn--primary { background: var(--ds-primary); border-color: var(--ds-primary); color: var(--ds-on-primary); }
.ds-btn--primary:hover { background: var(--ds-primary-hover); border-color: var(--ds-primary-hover); color: var(--ds-on-primary); }
.ds-btn--accent { background: var(--ds-accent); border-color: var(--ds-accent); color: var(--ds-on-accent); }
.ds-btn--accent:hover { background: #FF9A2E; border-color: #FF9A2E; color: var(--ds-on-accent); }
.ds-btn--outline { background: var(--ds-surface); border-color: var(--ds-border-strong); color: var(--ds-primary); }
.ds-btn--outline:hover { border-color: var(--ds-primary); color: var(--ds-primary); }
.ds-btn--soft { background: var(--ds-surface-alt); border-color: var(--ds-surface-alt); color: var(--ds-primary); }
.ds-btn--soft:hover { background: var(--ds-surface-sunken); border-color: var(--ds-surface-sunken); color: var(--ds-primary); }
.ds-btn--sm { min-height: 40px; padding: 0 var(--ds-sp-4); font-size: var(--ds-fs-sm); }
.ds-btn--block { width: 100%; }
.ds-btn svg { width: 18px; height: 18px; flex: none; }
.ds-on-dark .ds-btn:focus-visible, .ds-result-band .ds-btn:focus-visible { outline-color: var(--ds-accent-on-dark); }
.ds-link-arrow { font-weight: 700; color: var(--ds-link); text-decoration: none; }
.ds-link-arrow::after { content: " →"; }
.ds-link-arrow:hover { text-decoration: underline; }

/* ============================================================
   CHAMPS ET FORMULAIRES (habillage seulement : noms, required, action inchangés)
   ============================================================ */
.ds-field { display: block; margin: 0 0 var(--ds-sp-3); font-family: var(--ds-font); }
.ds-label { display: block; margin-bottom: 6px; font-weight: 700; font-size: var(--ds-fs-sm); color: var(--ds-primary); }
.ds-label .ds-opt { font-weight: 500; color: var(--ds-text-muted); }
.ds-input {
  display: block; width: 100%; min-height: var(--ds-tap); padding: 0 var(--ds-sp-4);
  border: 1.5px solid var(--ds-border-strong); border-radius: var(--ds-radius);
  background: var(--ds-surface); color: var(--ds-text);
  font: 400 1rem/1.4 var(--ds-font); /* ≥ 16 px : pas de zoom iOS */
}
textarea.ds-input { min-height: 104px; padding: var(--ds-sp-3) var(--ds-sp-4); resize: vertical; }
select.ds-input { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002E48' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.ds-input::placeholder { color: #6B7C89; } /* 4,6:1 */
.ds-input:focus { outline: 3px solid var(--ds-focus); outline-offset: 1px; border-color: var(--ds-primary); }
.ds-input[aria-invalid="true"] { border-color: var(--ds-error); }
.ds-help { margin: 6px 0 0; font-size: var(--ds-fs-xs); color: var(--ds-text-muted); }
.ds-error-msg { margin: 6px 0 0; font-size: var(--ds-fs-xs); font-weight: 700; color: var(--ds-error); }
.ds-form-note { margin: var(--ds-sp-3) 0 0; font-size: var(--ds-fs-xs); color: var(--ds-text-muted); }
.ds-form-row { display: grid; gap: var(--ds-sp-3); }
.ds-status { margin: var(--ds-sp-3) 0 0; padding: var(--ds-sp-3) var(--ds-sp-4); border-radius: var(--ds-radius); font-weight: 600; }
.ds-status--ok { background: var(--ds-ok-bg); color: var(--ds-ok-text); }
.ds-status--error { background: #FCE8E6; color: var(--ds-error); }
.ds-choices { display: flex; flex-wrap: wrap; gap: var(--ds-sp-2); }
.ds-choices label { position: relative; }
.ds-choices input { position: absolute; inset: 0; opacity: 0; margin: 0; }
.ds-choices span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--ds-sp-4);
  border-radius: var(--ds-radius-pill); border: 1.5px solid transparent;
  background: var(--ds-surface-alt); color: var(--ds-primary); font-weight: 600; font-size: var(--ds-fs-sm); cursor: pointer;
}
.ds-choices span:hover { border-color: var(--ds-border-strong); }
.ds-choices input:checked + span { background: var(--ds-accent); color: var(--ds-on-accent); }
.ds-choices input:focus-visible + span { outline: 3px solid var(--ds-focus); outline-offset: 2px; }
.ds-panel { background: var(--ds-surface); border-radius: var(--ds-radius-lg); padding: var(--ds-sp-5); box-shadow: var(--ds-shadow-sm); }
.ds-panel--navy { background: var(--ds-primary); color: var(--ds-text-on-dark); }
.ds-panel--navy .ds-label, .ds-panel--navy h2, .ds-panel--navy h3 { color: var(--ds-text-on-dark); }
.ds-panel--navy .ds-label .ds-opt, .ds-panel--navy .ds-form-note, .ds-panel--navy .ds-help { color: var(--ds-text-on-dark-muted); }
.ds-panel--navy :focus-visible { outline-color: var(--ds-accent-on-dark); }

/* ============================================================
   BADGES / CHIPS
   ============================================================ */
.ds-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: var(--ds-radius-pill); background: var(--ds-surface-alt); color: var(--ds-primary);
  font: 700 var(--ds-fs-xs)/1.3 var(--ds-font); white-space: nowrap;
}
.ds-badge--accent { background: var(--ds-accent); color: var(--ds-on-accent); }
.ds-badge--white { background: var(--ds-surface); color: var(--ds-primary); box-shadow: var(--ds-shadow-sm); }
.ds-badge--ok { background: var(--ds-ok-bg); color: var(--ds-ok-text); }
.ds-badge--soft { background: var(--ds-accent-soft); color: var(--ds-accent-text); }

/* ============================================================
   FIL D'ARIANE — <nav aria-label="Fil d’Ariane"><ol>…</ol></nav>, même libellés que BreadcrumbList
   ============================================================ */
.ds-breadcrumb { padding: var(--ds-sp-3) 0; font: 400 var(--ds-fs-sm)/1.4 var(--ds-font); color: var(--ds-text-muted); }
.ds-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--ds-sp-1) var(--ds-sp-2); }
.ds-breadcrumb li + li::before { content: "/"; margin-right: var(--ds-sp-2); color: var(--ds-border-strong); }
.ds-breadcrumb a { color: var(--ds-text-muted); text-decoration: none; }
.ds-breadcrumb a:hover { color: var(--ds-primary); text-decoration: underline; }
.ds-breadcrumb [aria-current] { color: var(--ds-primary); font-weight: 700; }

/* ============================================================
   CARTE PROGRAMME — lien étiré sur le titre, visuel 4:3 réservé
   ============================================================ */
.ds-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--ds-surface); border-radius: var(--ds-radius-lg); box-shadow: var(--ds-shadow-sm);
  font-family: var(--ds-font); color: var(--ds-text);
  transition: box-shadow .15s;
}
.ds-card:hover { box-shadow: var(--ds-shadow); }
.ds-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--ds-surface-sunken); }
.ds-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ds-card__badges { position: absolute; left: var(--ds-sp-3); top: var(--ds-sp-3); display: flex; flex-wrap: wrap; gap: var(--ds-sp-1); }
.ds-card__body { flex: 1; display: flex; flex-direction: column; gap: var(--ds-sp-2); padding: var(--ds-sp-4); }
.ds-card__title { margin: 0; font-size: var(--ds-fs-lg); font-weight: 800; letter-spacing: -.01em; line-height: 1.25; color: var(--ds-primary); }
.ds-card__title a { color: inherit; text-decoration: none; }
.ds-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* toute la carte cliquable, un seul lien */
.ds-card__title a:focus-visible { outline: none; }
.ds-card:has(.ds-card__title a:focus-visible) { outline: 3px solid var(--ds-focus); outline-offset: 2px; }
.ds-card__place { margin: 0; font-size: var(--ds-fs-sm); color: var(--ds-text-muted); }
.ds-card__price { margin: 0; display: flex; align-items: baseline; gap: var(--ds-sp-2); }
.ds-card__price small { font-size: var(--ds-fs-sm); color: var(--ds-text-muted); }
.ds-card__price b { font-size: var(--ds-fs-xl); font-weight: 800; letter-spacing: -.02em; color: var(--ds-accent-text); }
.ds-card__chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ds-card__chips li { padding: 4px 10px; border-radius: var(--ds-radius-pill); background: var(--ds-surface-alt); color: var(--ds-primary); font-size: var(--ds-fs-xs); font-weight: 600; }
.ds-card__foot { margin-top: auto; padding-top: var(--ds-sp-3); display: flex; justify-content: space-between; align-items: center; gap: var(--ds-sp-2); font-size: var(--ds-fs-sm); color: var(--ds-text-muted); }
.ds-card__foot a, .ds-card__foot button { position: relative; z-index: 1; } /* liens secondaires au-dessus du lien étiré */

/* ============================================================
   LOT — carte compacte (mobile) / ligne de tableau (bureau), lien réel
   ============================================================ */
.ds-lot {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px var(--ds-sp-3);
  padding: var(--ds-sp-3) var(--ds-sp-4);
  background: var(--ds-surface); border-radius: var(--ds-radius); box-shadow: var(--ds-shadow-sm);
  font-family: var(--ds-font); color: var(--ds-text);
}
.ds-lot:hover { box-shadow: var(--ds-shadow); }
.ds-lot__title { margin: 0; font-weight: 800; color: var(--ds-primary); }
.ds-lot__title a { color: inherit; text-decoration: none; }
.ds-lot__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ds-lot__title a:focus-visible { outline: 3px solid var(--ds-focus); outline-offset: 2px; }
.ds-lot__price { margin: 0; text-align: right; font-weight: 800; color: var(--ds-accent-text); }
.ds-lot__meta { grid-column: 1 / -1; margin: 0; font-size: var(--ds-fs-xs); color: var(--ds-text-muted); }
.ds-table-wrap { overflow-x: auto; background: var(--ds-surface); border-radius: var(--ds-radius-lg); box-shadow: var(--ds-shadow-sm); }
.ds-table { width: 100%; border-collapse: collapse; font: 400 var(--ds-fs-sm)/1.4 var(--ds-font); color: var(--ds-text); }
.ds-table caption { caption-side: top; text-align: left; padding: var(--ds-sp-4) var(--ds-sp-4) var(--ds-sp-2); font-weight: 800; color: var(--ds-primary); }
.ds-table th, .ds-table td { padding: var(--ds-sp-3) var(--ds-sp-4); text-align: left; border-top: 1px solid var(--ds-border); white-space: nowrap; }
.ds-table thead th { font-size: var(--ds-fs-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ds-text-muted); }
.ds-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.ds-table tbody tr { position: relative; }
.ds-table tbody tr:hover { background: var(--ds-surface-alt); }
.ds-table .ds-price { font-weight: 800; color: var(--ds-accent-text); }

/* ============================================================
   BANDE RÉSULTAT MARINE (emprunt piste A : écran « Votre résultat »)
   ============================================================ */
.ds-result-band {
  background: var(--ds-primary); color: var(--ds-text-on-dark);
  border-radius: var(--ds-radius-lg); padding: var(--ds-sp-5);
  font-family: var(--ds-font);
}
.ds-result-band__label { margin: 0 0 var(--ds-sp-1); font-size: var(--ds-fs-sm); font-weight: 600; color: var(--ds-text-on-dark-muted); }
.ds-result-band__amount { display: block; margin: 0 0 var(--ds-sp-2); font-size: clamp(2rem, 9vw, var(--ds-fs-4xl)); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--ds-text-on-dark); font-variant-numeric: tabular-nums; }
.ds-result-band__amount em { font-style: normal; color: var(--ds-accent-on-dark); }
.ds-result-band__note { margin: 0; font-size: var(--ds-fs-sm); color: var(--ds-text-on-dark-muted); }
.ds-result-band dl { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ds-sp-3) var(--ds-sp-4); margin: var(--ds-sp-4) 0 0; padding-top: var(--ds-sp-4); border-top: 1px solid rgba(255,255,255,.18); }
.ds-result-band dt { font-size: var(--ds-fs-xs); font-weight: 600; color: var(--ds-text-on-dark-muted); }
.ds-result-band dd { margin: 0; font-weight: 700; color: var(--ds-text-on-dark); }
.ds-result-band a { color: var(--ds-text-on-dark); }

/* ============================================================
   PIED DE PAGE — quatre besoins + agences + maillage national
   ============================================================ */
.site-footer {
  background: var(--ds-surface-alt);
  border-top: 1px solid var(--ds-border);
  padding: var(--ds-sp-7) 0 var(--ds-sp-5);
  font: 400 var(--ds-fs-sm)/1.55 var(--ds-font);
  color: var(--ds-text-muted);
}
.sf-inner { width: min(100% - 2 * var(--ds-sp-4), var(--ds-container)); margin-inline: auto; }
.site-footer a:not(.ds-btn) { color: var(--ds-primary); text-decoration: none; }
.site-footer a:not(.ds-btn):hover { text-decoration: underline; }
.sf-grid { display: grid; gap: var(--ds-sp-6); grid-template-columns: 1fr 1fr; }
.sf-brand { grid-column: 1 / -1; max-width: 420px; }
.sf-logo { display: inline-block; margin-bottom: var(--ds-sp-3); }
.sf-logo img { height: 52px; width: auto; display: block; }
.sf-desc { margin: 0 0 var(--ds-sp-4); }
.sf-social { display: flex; gap: var(--ds-sp-2); }
.sf-social a {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--ds-surface); color: var(--ds-primary); box-shadow: var(--ds-shadow-sm);
}
.sf-social svg { width: 18px; height: 18px; }
.sf-title { margin: 0 0 var(--ds-sp-3); font-size: var(--ds-fs-md); font-weight: 800; letter-spacing: -.01em; color: var(--ds-primary); }
.sf-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sf-links a { display: inline-flex; align-items: center; min-height: 36px; }
.sf-agencies { grid-column: 1 / -1; }
.sf-contact { display: grid; gap: var(--ds-sp-2); margin: 0 0 var(--ds-sp-4); padding: 0; list-style: none; }
.sf-contact li { display: flex; gap: var(--ds-sp-2); align-items: flex-start; }
.sf-contact svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--ds-accent-text); }
.sf-cta-note { margin: var(--ds-sp-2) 0 0; font-size: var(--ds-fs-xs); }
.sf-cities { margin-top: var(--ds-sp-6); padding-top: var(--ds-sp-5); border-top: 1px solid var(--ds-border); }
.sf-cities ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--ds-sp-2); }
.sf-cities li a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--ds-sp-3);
  border-radius: var(--ds-radius-pill); background: var(--ds-surface); font-size: var(--ds-fs-xs); font-weight: 600;
}
.sf-cities li a.sf-all { background: var(--ds-primary); color: var(--ds-on-primary); }
.sf-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--ds-sp-3) var(--ds-sp-5);
  margin-top: var(--ds-sp-6); padding-top: var(--ds-sp-4); border-top: 1px solid var(--ds-border);
  font-size: var(--ds-fs-xs);
}
.sf-bottom p { margin: 0; }
.sf-legal { display: flex; flex-wrap: wrap; gap: var(--ds-sp-2) var(--ds-sp-4); }
.sf-legal button { padding: 0; margin: 0; border: 0; background: none; color: var(--ds-primary); font: inherit; cursor: pointer; }
.sf-legal button:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .sf-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; }
  .sf-brand { grid-column: auto; }
  .sf-agencies { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr auto; gap: var(--ds-sp-5); align-items: start; }
  .sf-agencies .sf-title { grid-column: 1 / -1; margin-bottom: 0; }
  .sf-contact { margin: 0; }
}

/* Bloc GEO « À propos » (contenu inchangé, habillage aligné) */
.seo-block { background: var(--ds-surface); border-top: 1px solid var(--ds-border); }
.seo-block h2 { color: var(--ds-primary); }
.seo-block p { color: var(--ds-text-muted); }

/* ============================================================
   BARRE COLLANTE MOBILE, CHAT ET CONSENTEMENT — une seule pile en bas d'écran
   - barre CTA à droite, bulle du chat à gauche (même ligne, pas de chevauchement) ;
   - bandeau de consentement compact ; tant qu'il est visible, barre et bulle sont masquées
     (body.ds-consent-open posé par footer.php ; :has() en renfort) ; idem menu mobile ouvert (body.ds-menu-open).
   ============================================================ */
.back-to-top { background: var(--ds-primary); }
@media (max-width: 768px) {
  .mobile-sticky-cta {
    right: 14px; left: auto;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100% - 96px);
    min-height: var(--ds-tap);
    padding: 0 20px;
    background: var(--ds-primary);
    color: var(--ds-on-primary);
    font: 700 var(--ds-fs-sm)/1 var(--ds-font);
    border-radius: var(--ds-radius-pill);
    box-shadow: 0 10px 24px rgba(0,46,72,.30);
    z-index: var(--ds-z-sticky);
  }
  .mobile-sticky-cta:hover, .mobile-sticky-cta:focus { color: var(--ds-on-primary); }
  .mobile-sticky-cta:focus-visible { outline: 3px solid var(--ds-accent); outline-offset: 2px; }
  #blg-chat-bubble { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }

  .consent-banner {
    left: 0; right: 0; bottom: 0; max-width: none; margin: 0;
    border-radius: var(--ds-radius-lg) var(--ds-radius-lg) 0 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .consent-banner.visible { display: flex; align-items: center; gap: 12px; }
  .consent-banner .consent-title { display: none; }
  .consent-banner .consent-text { flex: 1; margin: 0; font-size: .78rem; line-height: 1.4; }
  .consent-banner .consent-actions { flex: 0 0 auto; flex-direction: column; gap: 6px; }
  .consent-banner .consent-actions .btn { min-height: 40px; padding: 8px 14px; font-size: .82rem; min-width: 92px; }

  body.ds-menu-open .mobile-sticky-cta,
  body.ds-menu-open #blg-chat-bubble,
  body.ds-menu-open #blg-chat-teaser,
  body.ds-consent-open .mobile-sticky-cta,
  body.ds-consent-open #blg-chat-bubble,
  body.ds-consent-open #blg-chat-teaser,
  body:has(.consent-banner.visible) .mobile-sticky-cta,
  body:has(.consent-banner.visible) #blg-chat-bubble,
  body:has(.consent-banner.visible) #blg-chat-teaser { visibility: hidden; }
}
.consent-banner { font-family: var(--ds-font); color: var(--ds-text); border-color: var(--ds-border); }
.consent-title { color: var(--ds-primary); }
.consent-text { color: var(--ds-text-muted); }
.consent-text a { color: var(--ds-link); }
.consent-actions .btn { border-radius: var(--ds-radius-pill); font-family: var(--ds-font); font-weight: 700; }
.consent-actions .btn-gold { background: var(--ds-primary); border: 2px solid var(--ds-primary); color: var(--ds-on-primary); box-shadow: none; }
.consent-actions .btn-gold:hover { background: var(--ds-primary-hover); color: var(--ds-on-primary); }
.consent-actions .btn-outline { background: var(--ds-surface); border: 2px solid var(--ds-border-strong); color: var(--ds-primary); }

@media (min-width: 640px) {
  .ds-form-row { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-toggle svg, .ds-btn, .ds-card { transition: none; }
}
