/* Sous-palette « agences immobilières » des démos : bleu ardoise / encre, touche brique de tuile
   bourguignonne, papier pierre discret, posée sur demo.css (mêmes typographies, mêmes boutons).
   À charger après demo.css. */

:root {
  --ardoise-950: #121c28;
  --ardoise-900: #1a2839;
  --ardoise-800: #24364a;
  --ardoise-700: #33495f;
  --ardoise-600: #4a6178;
  --ardoise-300: #a9b8c8;
  --ardoise-100: #e3e9ef;
  --tuile-600: #a9472d;
  --tuile-500: #b85a3c;
  --tuile-100: #f6e2d9;
  --pierre-50: #faf8f4;
  --pierre-100: #f2efe8;
  --pierre-200: #e4dfd4;
  --pierre-300: #cfc8b8;
  --verif-500: #b97c0c;
  --verif-200: #f6dc9c;
  --verif-100: #fdf1d2;
  --ok-600: #2f6b45;
  --ok-100: #dff0e4;
  --warn-600: #a5470d;
  --warn-100: #fbe6d6;
  --stop-600: #a42a2a;
  --stop-100: #f9e0de;
  --ink: #151f2a;
  --muted: #56616d;
  --line: rgba(21, 31, 42, .13);
  --line-dark: rgba(242, 239, 232, .16);

  --bg: var(--pierre-100);
  --accent: var(--ardoise-800);
  --accent-hover: var(--ardoise-700);
  --focus: #d39a24;
}

body { background: var(--bg); color: var(--ink); font-size: 16px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.tag-demo { background: var(--verif-200); color: #2b1d02; }
.demo-banner { background: var(--verif-100); color: #4a3303; margin: 0; }
.demo-banner a { color: inherit; }
.eyebrow { color: var(--ardoise-600); }
.num, .tnum { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Barre haute commune aux démos agences immobilières */
.topbar { background: var(--ardoise-900); color: var(--pierre-100); position: sticky; top: 0; z-index: 40; }
.topbar-in { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); min-height: 60px; display: flex; align-items: center; gap: 16px; }
.back { color: var(--pierre-100); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; padding: 10px 0; }
.back:hover { text-decoration: underline; }
.topbar-title { margin: 0 auto; font: 600 .95rem/1.2 var(--font-display); display: flex; align-items: center; gap: 10px; color: rgba(241, 239, 231, .9); }
.btn-cta { min-height: 42px; padding: .65em 1.2em; font-size: .92rem; white-space: nowrap; }
.topbar .btn-primary { background: var(--pierre-100); color: var(--ardoise-900); }
.topbar .btn-primary:hover { background: #fff; }
@media (max-width: 760px) {
  .topbar-title { display: none; }
  .topbar-in { justify-content: space-between; gap: 10px; }
  .back { font-size: .9rem; }
  .btn-cta { font-size: .86rem; padding: .6em 1em; min-height: 40px; }
}
@media (max-width: 420px) {
  .topbar-in { gap: 8px; }
  .back { font-size: .84rem; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .btn-cta { font-size: .82rem; padding: .55em .85em; flex: none; }
}

.fict { font: 500 .55em/1 var(--font-body); color: var(--muted); letter-spacing: 0; vertical-align: middle; }
.logo { flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--ardoise-800); color: var(--pierre-100); display: grid; place-items: center; font: 700 1.02rem/1 var(--font-display); letter-spacing: .04em; }

/* Trame « papier quadrillé » discrète, réutilisable */
.quadrille { background-color: var(--pierre-50); background-image: linear-gradient(rgba(36, 54, 74, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(36, 54, 74, .05) 1px, transparent 1px); background-size: 20px 20px; }

/* Pastilles de garde-fou communes */
.flag { display: inline-flex; align-items: center; gap: 5px; font: 800 .66rem/1 var(--font-body); letter-spacing: .07em; text-transform: uppercase; padding: 4px 7px; border-radius: 4px; white-space: nowrap; }
.flag-v { background: var(--verif-500); color: #fff; }
.flag-s { background: var(--stop-600); color: #fff; }
.flag-ok { background: var(--ok-600); color: #fff; }

/* Petits boutons communs */
.btn-sm { min-height: 40px; padding: .5em .95em; font-size: .86rem; }
.btn-soft { background: #fff; color: var(--ardoise-900); border-color: var(--line); }
.btn-soft:hover { border-color: var(--ardoise-800); }
.btn-soft:disabled { opacity: .5; cursor: not-allowed; }
.btn-link { background: none; border: 0; color: var(--ardoise-700); text-decoration: underline; padding-left: 6px; padding-right: 6px; }

.scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.scroller:focus-visible { outline: 3px solid var(--focus); }

.cta-end { background: var(--ardoise-900); color: var(--pierre-100); border-radius: 18px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 12px; }
.cta-end h2 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin: 0; }
.cta-end p { color: rgba(241, 239, 231, .84); max-width: 62ch; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.cta-end .btn-primary { background: var(--pierre-100); color: var(--ardoise-900); }
.cta-end .btn-primary:hover { background: #fff; }
.cta-end .btn-ghost { color: var(--pierre-100); }
.foot { text-align: center; color: var(--muted); padding: 8px var(--gutter) 36px; }
.foot p { max-width: 70ch; margin: 0 auto; }
.noscript { text-align: center; padding: 20px; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }

/* Pastille « Démo — données fictives » (toujours visible, y compris sur mobile) */
.pill-demo { display: inline-flex; align-items: center; gap: 6px; padding: .34em .75em; border-radius: 999px; background: var(--verif-200); color: #2b1d02; font: 700 .74rem/1 var(--font-body); letter-spacing: .02em; white-space: nowrap; }
.pill-demo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tuile-500); }
.topbar .pill-demo { flex: none; }
@media (max-width: 760px) { .topbar .pill-demo { display: none; } }
.demo-banner .pill-demo { margin-right: 6px; vertical-align: 1px; }
.tile-line { height: 4px; background: repeating-linear-gradient(90deg, var(--tuile-500) 0 14px, #c9734f 14px 28px, #8f3f28 28px 42px); }
