/* grossiste.heliance.com — design Heliance
   Typo lisibilite prioritaire (retour Laurent 07/07 : clientele presbyte, jamais d'italique) :
   titres = serif systeme classique (Georgia), corps = sans-serif systeme (system-ui), zero webfont.
   Accent UNIQUE = rouge Heliance #BA3C3F (fiche marque 2026-06-18) */

:root {
  --paper-1: #F4EFE8;
  --paper-2: #EDE6DA;
  --card-bg: #FFFDF7;
  --ink-1: #2A2620;
  --ink-2: #4A453D;
  --ink-3: #8A8278;
  --rule: #DDD2BB;
  --rule-strong: #C8BB9E;
  --red: #BA3C3F;
  --red-hover: #A03336;
  --red-ink: #FFFDF7;
  --red-soft: #F6E7E7;
  --font-display: Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Consolas, monospace;
  --w-grid: 1100px;
  --w-prose: 720px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  background: var(--paper-1);
  color: var(--ink-1);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: .016em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink-1); text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--ink-1); }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--w-grid); margin: 0 auto; padding: 0 20px; }
.prose { max-width: var(--w-prose); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper-1);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 24px;
  min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}
.brand { display: flex; align-items: center; text-decoration: none; white-space: nowrap; }
.brand img { height: 48px; width: auto; }
.brand em { font-style: normal; }
.brand .tag { font-family: var(--font-sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-left: 8px; }
.nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }
.nav .sep { color: var(--rule-strong); }
.btn {
  display: inline-block; font-size: 14px; font-weight: 600; text-decoration: none;
  padding: 10px 18px; border-radius: 4px; border: 1px solid var(--red);
  transition: background .2s, color .2s; cursor: pointer; font-family: var(--font-sans);
}
.btn-primary { background: var(--red); color: var(--red-ink); }
.btn-primary:hover { background: var(--red-hover); }
.btn-outline { background: transparent; color: var(--red); }
.btn-outline:hover { background: var(--red-soft); }
.header-cta { margin-left: auto; }

/* ---------- Draft banner ---------- */
.draft-banner {
  background: var(--red); color: var(--red-ink); text-align: center;
  font-size: 13px; padding: 6px 12px; letter-spacing: .06em;
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 48px; border-bottom: 1px solid var(--rule); }
.hero h1 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(27px, 5.4vw, 50px);
  line-height: 1.3; letter-spacing: 0; max-width: 800px;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero h1 .nb { white-space: nowrap; }
.hero .lead { margin-top: 18px; font-size: 18px; line-height: 1.7; color: var(--ink-2); max-width: 640px; }
.hero .actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 14px;
}

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section h2 { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: 0; margin-bottom: 8px; }
.section .sub { color: var(--ink-2); max-width: 640px; margin-bottom: 24px; }

/* ---------- Category cards (home) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cat-card {
  background: var(--card-bg); border: 1px solid var(--rule); border-radius: 8px;
  overflow: hidden; text-decoration: none; display: flex; flex-direction: column;
  transition: border-color .2s;
}
.cat-card:hover { border-color: var(--rule-strong); }
.cat-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: var(--paper-2); }
.cat-card .body { padding: 16px 18px 18px; }
.cat-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 23px; }
.cat-card p { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin-top: 6px; }
.cat-card .count { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); margin-top: 10px; display: block; }

/* ---------- Product grid ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.prod-card {
  background: var(--card-bg); border: 1px solid var(--rule); border-radius: 6px;
  padding: 10px; display: flex; flex-direction: column; gap: 6px;
}
.prod-card img { aspect-ratio: 1; object-fit: cover; border-radius: 3px; background: var(--paper-2); }
.prod-card .name { font-size: 14px; line-height: 1.55; font-weight: 500; letter-spacing: .008em; }
.prod-card .meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.prod-card .price { font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.prod-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 4px; }
.add-devis {
  font-size: 12px; border: 1px solid var(--red); color: var(--red); background: none;
  border-radius: 3px; padding: 4px 10px; cursor: pointer; font-family: var(--font-sans);
}
.add-devis:hover, .add-devis.in { background: var(--red); color: var(--red-ink); }

/* ---------- Quote bar ---------- */
#devis-bar {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: var(--ink-1); color: var(--paper-1); border-radius: 6px;
  padding: 10px 16px; display: none; gap: 16px; align-items: center; z-index: 60;
  box-shadow: 0 4px 12px rgba(42,38,32,.25); font-size: 14px; max-width: calc(100vw - 32px);
}
#devis-bar.on { display: flex; }
#devis-bar a { color: var(--paper-1); }
#devis-bar .clear { background: none; border: 0; color: var(--ink-3); cursor: pointer; font-size: 12px; }

/* ---------- Scenarios (douleur client -> solution) ---------- */
.scenario-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
@media (max-width: 640px) { .scenario-grid { grid-template-columns: 1fr; } }
.scenario {
  background: var(--card-bg); border: 1px solid var(--rule); border-radius: 8px;
  padding: 26px 24px;
}
.scenario-pain {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  line-height: 1.35; color: var(--ink-1); margin-bottom: 16px;
}
.scenario-pain::before {
  content: ""; display: block; width: 34px; height: 3px;
  background: var(--red); border-radius: 2px; margin-bottom: 16px;
}
.scenario-sol { font-size: 15px; line-height: 1.72; color: var(--ink-2); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: 8px;
  padding: 32px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cta-band h2 { font-family: var(--font-display); font-weight: 700; font-size: 26px; }
.cta-band p { color: var(--ink-2); font-size: 15px; margin-top: 4px; max-width: 520px; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Form ---------- */
.lead-form { max-width: 480px; display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.lead-form label { font-size: 13px; font-weight: 500; display: flex; flex-direction: column; gap: 6px; }
.lead-form input {
  font-size: 15px; padding: 10px 12px; border: 1px solid var(--rule-strong); border-radius: 4px;
  background: var(--card-bg); font-family: var(--font-sans); color: var(--ink-1);
}
.lead-form input:focus { outline: 2px solid var(--red-soft); border-color: var(--red); }
.form-note { font-size: 13px; color: var(--ink-3); max-width: 480px; }
#form-status { font-size: 14px; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); margin-top: 48px; padding: 40px 0 48px; background: var(--paper-2); }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; font-size: 14px; }
.site-footer h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; font-weight: 500; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }
.site-footer .legal { margin-top: 28px; font-size: 12px; color: var(--ink-3); }

/* ---------- Prose pages ---------- */
.page-prose h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4.6vw, 40px); letter-spacing: 0; margin-bottom: 16px; }
.page-prose h2 { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin: 32px 0 10px; }
.page-prose p { color: var(--ink-2); margin-bottom: 14px; max-width: var(--w-prose); }
.page-prose ul { margin: 0 0 14px 20px; color: var(--ink-2); }
.page-prose li { margin-bottom: 6px; }

@media (max-width: 720px) {
  .hero { padding: 40px 0 32px; }
  .header-cta { margin-left: 0; }
}
