/* Sous-palette « viticulture » des démos : lie-de-vin sobre et pierre calcaire,
   posée sur demo.css (mêmes typographies, mêmes boutons). À charger après demo.css. */

:root {
  --wine-950: #1e0d12;
  --wine-900: #2a1219;
  --wine-800: #3d1724;
  --wine-700: #5b1a2b;
  --wine-600: #74293c;
  --wine-100: #f3e4e6;
  --stone-50: #faf8f4;
  --stone-100: #f3efe8;
  --stone-200: #e7e0d4;
  --stone-300: #d6ccbb;
  --ember: #ffb15c;
  --gold-500: #b8862b;
  --leaf-600: #4f6b3a;
  --leaf-100: #e5ecdc;
  --warn-600: #b45309;
  --warn-100: #fdecd3;
  --ink: #1d1719;
  --muted: #5f5558;
  --line: rgba(29, 23, 25, .12);
  --line-dark: rgba(243, 239, 232, .14);

  --bg: var(--stone-100);
  --accent: var(--wine-700);
  --accent-hover: var(--wine-600);
  --focus: #d08a2e;
}

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, [tabindex]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.tag-demo { background: var(--ember); color: #2a1704; }
.demo-banner { background: #fbeed9; color: #4d3203; margin: 0; }
.demo-banner a { color: inherit; }

.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 viticulture */
.topbar { background: var(--wine-900); color: var(--stone-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(--stone-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(243, 239, 232, .9); }
.btn-cta { min-height: 42px; padding: .65em 1.2em; font-size: .92rem; white-space: nowrap; }
.topbar .btn-primary { background: var(--stone-100); color: var(--wine-800); }
.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; }
}

.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: 14px; background: var(--wine-700); color: var(--stone-100); display: grid; place-items: center; font: 700 1.05rem/1 var(--font-display); letter-spacing: .02em; }

.cta-end { background: var(--wine-900); color: var(--stone-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(243, 239, 232, .82); max-width: 62ch; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.cta-end .btn-primary { background: var(--stone-100); color: var(--wine-800); }
.cta-end .btn-primary:hover { background: #fff; }
.cta-end .btn-ghost { color: var(--stone-100); }
.foot { text-align: center; color: var(--muted); padding: 8px var(--gutter) 36px; }
.noscript { text-align: center; padding: 20px; }
