/* ============================================================
   HUBCAVE — Design system de la vitrine
   Transposé du socle Nexus/Hubdiver : surfaces claires + tuiles
   sombres, accent bordeaux (vin) + or. 100% autonome.
   ============================================================ */

:root {
  --bg:        #f4f1ec;   /* crème cave */
  --surface:   #ffffff;
  --ink:       #1a1014;   /* tuiles sombres, teinte lie-de-vin */
  --ink-2:     #241419;
  --ink-3:     #2f1c22;
  --text:      #1c1216;
  --muted:     #6f6168;
  --muted-2:   #a2949b;
  --line:      #e8e1da;
  --line-soft: #f1ece6;
  --accent:    #a62639;   /* bordeaux */
  --accent-d:  #7e1d2c;
  --accent-soft:#f7e9ec;
  --gold:      #c9a227;   /* or — touches premium */
  --gold-soft: #f7f0dc;
  --blue:      #3b82f6;
  --ok:        #10b981;
  --warn:      #f59e0b;
  --danger:    #ef4444;
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 1px 2px rgba(26,16,20,.04), 0 8px 24px rgba(26,16,20,.06);
  --shadow-tile: 0 10px 30px rgba(26,16,20,.18);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: 13.5px; cursor: pointer; border: 1px solid transparent; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-d); }
.btn.ghost { background: var(--surface); border-color: var(--line); color: #4a3c43; }
.btn.ghost:hover { border-color: #d4c8be; }
.btn.dark { background: var(--ink); color: #fff; }

/* ---------- Pastilles ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 20px; }
.pill.ok { background: #e7f8f1; color: #0a8a5e; }
.pill.warn { background: #fef3e2; color: #b8770a; }
.pill.danger { background: #fdeaea; color: #c5302e; }
.pill.info { background: var(--accent-soft); color: var(--accent-d); }
.pill.gold { background: var(--gold-soft); color: #8c6f12; }
.pill.muted { background: var(--line-soft); color: var(--muted); }

/* ---------- Cartes génériques ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.card-head h3 { margin: 0; font-size: 15px; font-weight: 700; }
.card-body { padding: 18px 20px; }

/* ---------- Marque (wordmark texte, pas de PNG) ---------- */
.brand { display: flex; align-items: center; gap: 11px; }
.brand .logo { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; flex: 0 0 auto; }
.brand .logo svg { width: 22px; height: 22px; }
.brand .name { font-weight: 700; font-size: 17px; letter-spacing: -.2px; line-height: 1.15; }
.brand .sub { font-size: 11px; color: var(--muted); font-weight: 500; }
.brand-word { font-weight: 800; letter-spacing: -.3px; }
.brand-hub { color: var(--ink); }
.brand-cave { color: var(--accent); }
.feat-hero .brand-hub, .feat-cta .brand-hub { color: #fff; }

/* ---------- Divers ---------- */
.muted { color: var(--muted); }
