/* Base + composants partagés (landing, dashboard, fiche). */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: var(--fs-md); text-decoration: none; cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--c-brand); color: #fff; box-shadow: 0 6px 18px rgb(238 90 11 / 0.3); }
.btn-primary:hover { background: var(--c-brand-strong); }
.btn-ghost { background: transparent; border-color: currentColor; }
.btn-ghost:hover { background: rgb(127 127 127 / 0.1); }
.btn-light { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-line); }
.btn-light:hover { background: var(--c-surface-2); }
.btn-whatsapp { background: #1f9d55; color: #fff; }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: var(--fs-sm); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.02em; white-space: nowrap;
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.no-dot::before { display: none; }
.badge-good { background: #e0f3e9; color: var(--c-good); }
.badge-warn { background: #fbf0db; color: var(--c-warn); }
.badge-bad { background: #fbe4e1; color: var(--c-bad); }
.badge-info { background: #e2ecf7; color: var(--c-info); }
.badge-neutral { background: var(--c-surface-2); color: var(--c-ink-2); }
.badge-demo { background: var(--c-accent-soft); color: #7a5200; border: 1px dashed #d59a1f; }

/* Cartes */
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* Formulaires */
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: var(--fs-sm); }
.field .hint { color: var(--c-muted); font-size: var(--fs-xs); font-weight: 500; }
.input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--c-line); background: var(--c-surface); font-size: var(--fs-md);
}
.input:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px var(--c-brand-soft); }
.input[aria-invalid='true'] { border-color: var(--c-bad); box-shadow: 0 0 0 3px #fbe4e1; }
.field .error { color: var(--c-bad); font-size: var(--fs-xs); font-weight: 600; min-height: 1em; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -0.01em; }
.logo-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--c-brand); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: 0.02em;
}
.logo-img { height: 40px; width: auto; flex: none; }
.logo-product { padding-left: 10px; border-left: 2px solid var(--c-brand); line-height: 1.15; font-weight: 800; }
.logo small { display: block; font-size: 11px; font-weight: 600; opacity: 0.7; letter-spacing: 0.08em; text-transform: uppercase; }

/* Bannière démo */
.demo-banner {
  display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center;
  padding: 8px var(--gutter); background: var(--c-accent-soft); color: #6b4700;
  font-size: var(--fs-sm); font-weight: 600; border-bottom: 1px solid #f0d9a4;
}

.disclaimer { font-size: var(--fs-xs); color: var(--c-muted); line-height: 1.5; }

/* Sélecteurs langue / devise */
.prefs { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.seg { display: inline-flex; padding: 2px; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-surface); }
.seg button {
  min-height: 28px; padding: 3px 9px; border: 0; border-radius: 999px; background: transparent;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: var(--c-ink-2); cursor: pointer;
}
.seg button:hover { color: var(--c-navy); }
.seg button[aria-pressed='true'] { background: var(--c-navy); color: #fff; }
.prefs-reset {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--c-line); background: var(--c-surface);
  color: var(--c-muted); font-size: 15px; line-height: 1; cursor: pointer;
}
.prefs-reset:hover { color: var(--c-brand-strong); border-color: var(--c-brand); }
