/* QuitusApp — site vitrine
   Réutilise les tokens du design system (terracotta sur fond crème). */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --bg: #faf6ee;
  --bg-tint: #f3ecdd;
  --bg-sunk: #ede4cf;
  --surface: #fffdf7;
  --surface-alt: #f7f1e3;

  --ink: #1a1410;
  --ink-2: #3d342a;
  --ink-mute: #7a6a58;
  --ink-soft: #a89784;

  --line: #e7dcc6;
  --line-soft: #f0e7d2;

  --primary: #b44419;
  --primary-deep: #8a3210;
  --primary-soft: #f5d9c6;
  --primary-tint: #fbeadd;

  --success: #2d6a3a;
  --success-soft: #d8e8d2;
  --danger: #a83232;
  --danger-soft: #f0d4c8;

  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-ui: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-full: 9999px;

  --shadow-1: 0 1px 2px rgba(80, 60, 30, 0.06), 0 2px 6px rgba(80, 60, 30, 0.04);
  --shadow-2: 0 4px 14px rgba(80, 60, 30, 0.08), 0 1px 3px rgba(80, 60, 30, 0.06);
  --shadow-pop: 0 14px 40px rgba(80, 60, 30, 0.18), 0 4px 12px rgba(80, 60, 30, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  font-feature-settings: 'cv11', 'ss01';
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Wordmark ── */
.q-mark { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; font-size: 22px; }
.q-mark-dot { color: var(--primary); }

/* ── Typography helpers ── */
.q-display {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.q-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.q-h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.q-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.q-mono { font-family: var(--font-mono); }
.q-soft { color: var(--ink-soft); }
.q-link { color: var(--primary-deep); font-weight: 500; }
.q-link:hover { text-decoration: underline; }

/* ── Buttons ── */
.q-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--r-md);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: none;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.q-btn:active { transform: scale(0.98); }
.q-btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.q-btn-primary {
  background: var(--primary);
  color: #fffaf0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 0 rgba(0, 0, 0, 0.08);
}
.q-btn-primary:hover { background: var(--primary-deep); }
.q-btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.q-btn-ghost:hover { background: var(--bg-tint); }
.q-btn-soft { background: var(--primary-tint); color: var(--primary-deep); }
.q-btn-soft:hover { background: var(--primary-soft); }
.q-btn-lg { height: 54px; font-size: 16px; border-radius: var(--r-lg); padding: 0 22px; }
.q-btn-block { width: 100%; }

/* ── Card / input ── */
.q-card { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); }
.q-input {
  height: 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0 14px;
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.q-textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 120px; line-height: 1.5; }
.q-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
.q-input::placeholder { color: var(--ink-soft); }
.q-input.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.q-label { display: block; font-size: 12px; font-weight: 500; color: var(--ink-mute); margin-bottom: 6px; letter-spacing: 0.01em; }

/* ── Pills ── */
.q-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 500;
}
.q-pill-completed { background: var(--success-soft); color: #1f4a28; }
.q-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.82);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { color: var(--ink); }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { color: var(--primary-deep); }
.nav-cta { margin-left: 8px; height: 40px; }

/* ── Hero ── */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-copy .q-display { margin: 14px 0 18px; }
.hero-sub { font-size: 18px; color: var(--ink-2); max-width: 36ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 16px; }
.hero-note { font-size: 13px; color: var(--ink-soft); }

/* hero visual */
.hero-visual { position: relative; display: flex; justify-content: center; }
.receipt-card { width: 100%; max-width: 320px; padding: 22px; box-shadow: var(--shadow-pop); }
.receipt-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.receipt-num { font-size: 13px; color: var(--ink-mute); }
.receipt-amount { font-size: 42px; font-weight: 500; letter-spacing: -0.02em; }
.receipt-line { height: 1px; background: var(--line); margin: 18px 0 14px; }
.receipt-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-mute); }
.qr-chip {
  position: absolute;
  bottom: -18px;
  left: -6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
}
.qr-grid {
  width: 34px; height: 34px; border-radius: 6px;
  background-image:
    linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%),
    linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%);
  background-size: 11px 11px;
  background-position: 0 0, 5.5px 5.5px;
  opacity: 0.85;
}

/* ── Sections ── */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--surface-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-title { margin: 10px 0 36px; max-width: 18ch; }

/* ── Features ── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 24px; box-shadow: var(--shadow-1); }
.feature-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--primary-tint);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--ink-mute); font-size: 15px; }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step-num { font-size: 14px; color: var(--primary); font-weight: 500; }
.step h3 { margin: 10px 0 6px; }
.step p { color: var(--ink-mute); font-size: 15px; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact-intro p { color: var(--ink-2); margin-top: 8px; }
.contact-points { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.contact-points li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15px; }
.contact-points li::before {
  content: '✓'; position: absolute; left: 0; top: -1px;
  color: var(--primary); font-weight: 700;
}
.contact-form { padding: 26px; box-shadow: var(--shadow-2); display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-feedback { font-size: 14px; min-height: 1px; margin-top: -4px; }
.form-feedback.ok { color: var(--success); }
.form-feedback.error { color: var(--danger); }
.form-legal { font-size: 12px; line-height: 1.5; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-tint); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { order: -1; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .nav-links { display: none; }
  .features, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .q-btn { width: 100%; }
}
