:root {
  --ink: #1c1c1c;
  --muted: #8a8a8a;
  --faint: #b8b8b8;
  --border: #e6e6e6;
  --border-soft: #efefef;
  --bg: #ffffff;
  --panel: #fafafa;
  --accent: #7c2836;
  --accent-soft: #f6e9eb;
  --red: #a23b4a;
  --gold-ish: #a68a5b;
  --rose: #b98090;
  --green: #4a7a5c;
  --up: #4a7a5c;
  --down: #a23b4a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.argus-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.argus-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.argus-brand { display: flex; align-items: baseline; gap: 10px; }
.argus-brand .mark {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.argus-brand .tag {
  font-size: 10.5px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.argus-header form { display: flex; gap: 0; flex: 1; max-width: 380px; }
.argus-header input[type=text] {
  flex: 1;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-size: 13.5px;
  background: var(--panel);
  color: var(--ink);
}
.argus-header input[type=text]:focus { outline: none; border-color: var(--ink); background: #fff; }
.argus-header button {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  padding: 9px 16px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
}
.argus-header button:hover { background: #000; }
.argus-header nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.argus-header nav a.back-to-shop {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 15px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
}
.argus-header nav a.back-to-shop:hover { border-color: var(--ink); color: var(--ink); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px;
}
.lang-switch a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--faint);
  padding: 5px 8px;
  border-radius: 3px;
  line-height: 1;
}
.lang-switch a:hover { color: var(--ink); background: var(--panel); }
.lang-switch a.active { color: #fff; background: var(--ink); }

/* ---------- hero ---------- */
.hero {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 44px;
  text-align: center;
}
.hero h1 {
  font-size: 32px;
  margin: 0 0 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; font-size: 15px; }
.hero form { max-width: 540px; margin: 0 auto; display: flex; }
.hero input[type=text] {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-size: 15px;
  background: #fff;
}
.hero input[type=text]:focus { outline: none; border-color: var(--ink); }
.hero button {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  padding: 0 26px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
}
.hero button:hover { background: #000; }

.stat-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.stat-row .stat { text-align: center; }
.stat-row .stat .n { font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.stat-row .stat .l { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }

/* ---------- sections ---------- */
.section { padding: 44px 0; }
.section h2 {
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---------- wine list rows (replaces card grid) ---------- */
.wine-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.wine-row {
  display: grid;
  grid-template-columns: 1fr auto 110px auto 100px 100px 24px;
  align-items: center;
  gap: 18px;
  padding: 15px 6px;
  border-bottom: 1px solid var(--border-soft);
  transition: background .12s;
}
.wine-row:hover { background: var(--panel); }
.wine-row .col-name { min-width: 0; }
.wine-row .producer {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wine-row .cuvee {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wine-row .col-region { font-size: 12.5px; color: var(--muted); white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wine-row .col-spark { display: flex; align-items: center; justify-content: center; }
.wine-row .col-count { font-size: 12.5px; color: var(--muted); text-align: right; white-space: nowrap; }
.wine-row .col-count .n { font-size: 14px; color: var(--ink); font-weight: 600; }
.wine-row .col-price { text-align: right; white-space: nowrap; }
.wine-row .col-price .price { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.wine-row .col-price .label { display: block; font-size: 9.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; margin-top: 1px; }
.wine-row .col-arrow { color: var(--faint); font-size: 15px; text-align: right; }
.wine-row:hover .col-arrow { color: var(--ink); }

@media (max-width: 760px) {
  .wine-row {
    grid-template-columns: 1fr 90px 24px;
    grid-template-areas:
      "name spark arrow"
      "region region region"
      "price price price";
  }
  .wine-row .col-name { grid-area: name; }
  .wine-row .col-spark { grid-area: spark; }
  .wine-row .col-arrow { grid-area: arrow; }
  .wine-row .col-region { grid-area: region; }
  .wine-row .col-count { display: none; }
  .wine-row .col-price { grid-area: price; text-align: left; margin-top: 2px; }
}

.tag-color {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 600;
  border: 1px solid transparent;
}
.tag-color.rouge { background: #f7ecec; color: var(--red); }
.tag-color.blanc { background: #f7f4e8; color: #8a7433; }
.tag-color.rosé, .tag-color.rose { background: #faf0f3; color: var(--rose); }
.tag-color.mousseux { background: #eef3ec; color: var(--green); }
.tag-color.fortifié, .tag-color.fortifie { background: #f3ece6; color: #8a5a3c; }
.tag-color.spiritueux { background: #f1ede6; color: var(--gold-ish); }

/* ---------- performance movers (accueil) ---------- */
.section-sub {
  color: var(--muted);
  font-size: 13px;
  margin: -14px 0 20px;
  max-width: 620px;
}

.movers-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x proximity;
  margin: 0 -4px;
  -webkit-overflow-scrolling: touch;
}
.movers-scroll::-webkit-scrollbar { height: 6px; }
.movers-scroll::-webkit-scrollbar-track { background: transparent; }
.movers-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.mover-card {
  scroll-snap-align: start;
  flex: 0 0 228px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 16px 14px;
  position: relative;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.mover-card:hover {
  box-shadow: 0 14px 30px rgba(28,28,28,0.09);
  transform: translateY(-3px);
  border-color: #d8d8d8;
}
.mover-card .rank {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 10.5px;
  color: var(--faint);
  font-weight: 700;
  letter-spacing: .03em;
}
.mover-card .pct-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 20px;
  margin-bottom: 13px;
  letter-spacing: -0.01em;
}
.mover-card .pct-badge.up { background: #eaf5ee; color: var(--up); }
.mover-card .pct-badge.down { background: #fbecee; color: var(--down); }
.mover-card .producer {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 1px;
  padding-right: 26px;
}
.mover-card .cuvee { font-size: 12px; color: var(--muted); margin-bottom: 9px; }
.mover-card .region-line {
  font-size: 11.5px;
  color: var(--faint);
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.mover-card .spark-wrap { margin: 4px 0 11px; }
.mover-card .spark-wrap svg { width: 100%; }
.mover-card .price-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11.5px;
  color: var(--faint);
  border-top: 1px solid var(--border-soft);
  padding-top: 9px;
}
.mover-card .price-line strong { color: var(--ink); font-size: 13.5px; font-weight: 700; }

/* régions en mouvement */
.region-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .region-panels { grid-template-columns: 1fr; gap: 8px; } }

.region-panel h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.region-panel h3 .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.region-panel.up h3 .dot { background: var(--up); }
.region-panel.down h3 .dot { background: var(--down); }

.region-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--border-soft);
}
.region-item .name-block { flex: 1; min-width: 0; }
.region-item .name { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.region-item .sub { font-size: 11px; color: var(--faint); margin-top: 1px; }
.region-item .bar-track {
  flex: 0 0 90px;
  height: 5px;
  background: var(--border-soft);
  border-radius: 3px;
  overflow: hidden;
}
.region-item .bar-fill { height: 100%; border-radius: 3px; }
.region-panel.up .bar-fill { background: var(--up); }
.region-panel.down .bar-fill { background: var(--down); }
.region-item .pct { font-size: 13.5px; font-weight: 700; min-width: 56px; text-align: right; }
.region-panel.up .pct { color: var(--up); }
.region-panel.down .pct { color: var(--down); }

/* ---------- sparklines ---------- */
.spark { display: block; overflow: visible; }
.spark polyline { stroke: var(--muted); }
.spark circle { fill: var(--muted); }
.spark.spark-up polyline { stroke: var(--up); }
.spark.spark-up circle { fill: var(--up); }
.spark.spark-down polyline { stroke: var(--down); }
.spark.spark-down circle { fill: var(--down); }

/* ---------- table ---------- */
table.sales { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.sales th {
  text-align: left;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--faint);
  border-bottom: 1px solid var(--border);
  padding: 9px 10px;
  font-weight: 600;
}
table.sales td { padding: 10px 10px; border-bottom: 1px solid var(--border-soft); color: var(--ink); }
table.sales tr:hover td { background: var(--panel); }
.state-badge { font-size: 10.5px; padding: 2px 8px; border-radius: 3px; font-weight: 600; }
.state-badge.sold { background: #eef3ec; color: var(--green); }
.state-badge.unsold { background: #f7ecec; color: var(--red); }
.state-badge.withdrawn { background: #f2f2f2; color: var(--muted); }

/* ---------- wine detail ---------- */
.wine-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.wine-head h1 { font-weight: 600; font-size: 26px; margin: 0 0 4px; letter-spacing: -0.01em; color: var(--ink); }
.wine-head .cuvee-sub { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.wine-head .breadcrumb { font-size: 12px; color: var(--faint); margin-bottom: 16px; }
.wine-head .breadcrumb a { color: var(--muted); }
.wine-head .breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

.kpi-row { display: flex; gap: 12px; flex-wrap: wrap; }
.kpi {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 20px;
  min-width: 140px;
}
.kpi .v { font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.kpi .l { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-top: 2px; }

.chart-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  margin: 26px 0;
}
.chart-card .spark { width: 100%; height: 90px; display: block; }
.chart-card .spark polyline { stroke-width: 1.8; }

/* ---------- sélecteur de millésime (fiche vin) ---------- */
.vintage-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 8px;
}
.vintage-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 7px 8px;
  border-radius: 5px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--border);
}
.vintage-pill.has-data {
  color: var(--ink);
  background: var(--panel);
  border-color: #d8d8d8;
}
.vintage-pill.has-data:hover { background: var(--ink); color: #fff; border-color: var(--ink); text-decoration: none; }
.vintage-pill.no-data {
  color: var(--faint);
  background: #fff;
  border-style: dashed;
  cursor: default;
  opacity: .55;
}
.vintage-hint { font-size: 11.5px; color: var(--faint); margin: 0 0 4px; }

.price-note {
  font-size: 11.5px;
  color: var(--faint);
  margin: 10px 2px 0;
  max-width: 640px;
}
.lot-total {
  display: block;
  font-size: 10.5px;
  color: var(--faint);
  font-weight: 400;
  margin-top: 1px;
}

/* delta badge (millésime vs médiane du vin) */
.delta-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: 10px;
}
.delta-badge.up { background: #eaf5ee; color: var(--up); }
.delta-badge.down { background: #fbecee; color: var(--down); }

.searchbox-inline { margin: 20px 0; }
.searchbox-inline input[type=text] {
  width: 100%; max-width: 480px; padding: 11px 15px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; background: var(--panel);
}
.searchbox-inline input[type=text]:focus { outline: none; border-color: var(--ink); background: #fff; }

.pill-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 26px; }
.pill-filters a {
  border: 1px solid var(--border); border-radius: 16px; padding: 5px 13px; font-size: 12.5px; color: var(--muted);
}
.pill-filters a:hover { border-color: var(--ink); color: var(--ink); }
.pill-filters a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

footer.argus-footer {
  background: var(--panel);
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 28px 0;
  margin-top: 54px;
  font-size: 12.5px;
  text-align: center;
}
footer.argus-footer a { color: var(--ink); }
footer.argus-footer a:hover { text-decoration: underline; }

.empty-state { text-align: center; padding: 64px 0; color: var(--muted); }

@media (max-width: 640px) {
  .hero h1 { font-size: 25px; }
  .argus-header form { max-width: none; width: 100%; order: 3; }
}
