/* BizPilot Africa — socle commun (couleurs, typo, éléments de base)
   Idée directrice : le cahier de comptes du commerçant (encre bleue de stylo,
   papier réglé, marge rouge) devient une application claire. */

:root {
  /* Couleurs */
  --ink: #141a33;          /* texte principal */
  --ink-2: #454d6b;        /* texte secondaire */
  --ink-3: #6b7290;        /* texte discret (contraste AA sur blanc) */
  --paper: #f6f7fb;        /* fond « papier » légèrement froid */
  --card: #ffffff;
  --line: #e2e5ee;
  --line-strong: #cdd2e0;

  --blue: #1f3bb3;         /* encre de stylo bleu : couleur principale */
  --blue-hover: #182f94;
  --blue-soft: #e9edfb;
  --blue-chart: #3354d1;

  --saffron: #f2a516;      /* rappel des pagnes wax */
  --saffron-soft: #fdf1d8;

  --green: #12875a;        /* argent qui rentre, bénéfice */
  --green-chart: #16a06a;
  --green-soft: #e2f4eb;

  --red: #c9362a;          /* alertes, ruptures, impayés */
  --red-soft: #fbe8e6;
  --margin-red: #e8635a;   /* la marge rouge du cahier */

  /* Typo */
  --font-display: "Bricolage Grotesque", "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ui: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  /* Rayons : du plus petit (puces) au plus grand (téléphone) */
  --r-s: 8px;
  --r: 14px;
  --r-l: 22px;

  --shadow-1: 0 1px 2px rgba(20, 26, 51, .06), 0 1px 1px rgba(20, 26, 51, .04);
  --shadow-2: 0 10px 30px -12px rgba(20, 26, 51, .25);
  --focus: 0 0 0 3px #fff, 0 0 0 5px var(--blue);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

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

h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; }
p { margin: 0; }

a { color: var(--blue); }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-s); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Boutons */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  --btn-bd: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 1.15em;
  border: 1.5px solid var(--btn-bd); border-radius: 12px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 650; font-size: 1rem; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .15s, border-color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { --btn-bg: var(--blue-hover); --btn-bd: var(--blue-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: #fff; --btn-bd: var(--ink-3); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--light:hover { --btn-bg: #fff; --btn-bd: var(--line-strong); }
.btn--green { --btn-bg: var(--green); --btn-bd: var(--green); }
.btn--green:hover { --btn-bg: #0e6f4a; --btn-bd: #0e6f4a; }
.btn--danger { --btn-bg: #fff; --btn-fg: var(--red); --btn-bd: #f0c4bf; }
.btn--danger:hover { --btn-bg: var(--red-soft); --btn-bd: var(--red); }
.btn--sm { min-height: 36px; padding: 0 .8em; font-size: .9rem; border-radius: 10px; }
.btn--block { width: 100%; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__word { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; line-height: 1; }
.logo__word small { font-family: var(--font-ui); font-weight: 600; font-size: .7rem; color: var(--ink-3); margin-left: .25rem; letter-spacing: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
