/* ==========================================================================
   BURAPRINT — Design Tokens
   Colors, type, spacing, radii, shadows.
   Mobile-first. Style minimaliste B2B (réf. SumUp, Apple).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* ---------- COLORS ----------------------------------------------------- */

  /* Neutrals — the backbone */
  --bp-black:        #000000;
  --bp-ink:          #111827;   /* primary near-black, body & headlines */
  --bp-slate-900:    #0f172a;   /* header sombre des apps internes */
  --bp-slate-800:    #1e293b;
  --bp-slate-700:    #334155;
  --bp-gray-700:     #374151;
  --bp-gray-600:     #4b5563;
  --bp-gray-500:     #6b7280;
  --bp-gray-400:     #9ca3af;
  --bp-gray-300:     #d1d5db;
  --bp-gray-200:     #e5e7eb;
  --bp-gray-100:     #f3f4f6;
  --bp-gray-soft:    #f5f5f5;   /* fond gris léger des sections */
  --bp-white:        #ffffff;

  /* Brand accents — CMJN-flavoured (encres d'imprimante) */
  --bp-cyan:         #38BDF8;   /* DEFAULT — cyan-400, signature BURAPRINT */
  --bp-cyan-strong:  #0ea5e9;   /* cyan-500, hover / emphasis */
  --bp-cyan-soft:    #e0f2fe;   /* cyan-100, fonds */
  --bp-magenta:      #EC4899;   /* magenta — l'encre M */
  --bp-magenta-soft: #fce7f3;
  --bp-yellow:       #FBBF24;   /* jaune — l'encre Y */
  --bp-yellow-soft:  #fef3c7;

  /* Status — soft fills + readable text colors */
  --bp-status-pending-bg:   #fef3c7;  /* amber-100 — en attente */
  --bp-status-pending-fg:   #92400e;
  --bp-status-progress-bg:  #dbeafe;  /* blue-100 — en cours */
  --bp-status-progress-fg:  #1e40af;
  --bp-status-success-bg:   #d1fae5;  /* emerald-100 — validé */
  --bp-status-success-fg:   #065f46;
  --bp-status-error-bg:     #fee2e2;  /* red-100 — erreur */
  --bp-status-error-fg:     #991b1b;

  /* Semantic — light theme */
  --bp-bg:            var(--bp-white);
  --bp-bg-soft:       var(--bp-gray-soft);
  --bp-bg-inverse:    var(--bp-black);
  --bp-fg:            var(--bp-ink);
  --bp-fg-muted:      var(--bp-gray-600);
  --bp-fg-subtle:     var(--bp-gray-500);
  --bp-fg-inverse:    var(--bp-white);
  --bp-border:        var(--bp-gray-200);
  --bp-border-soft:   var(--bp-gray-100);
  --bp-accent:        var(--bp-cyan);
  --bp-accent-strong: var(--bp-cyan-strong);

  /* ---------- TYPOGRAPHY ------------------------------------------------- */

  --bp-font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
                  Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Sizes — mobile-first; scale up at md+ via utility classes */
  --bp-text-xs:    12px;
  --bp-text-sm:    14px;
  --bp-text-base:  16px;
  --bp-text-lg:    18px;
  --bp-text-xl:    20px;
  --bp-text-2xl:   24px;
  --bp-text-3xl:   30px;
  --bp-text-4xl:   36px;
  --bp-text-5xl:   48px;
  --bp-text-6xl:   60px;
  --bp-text-7xl:   72px;
  --bp-text-8xl:   96px;

  --bp-weight-light:     300;
  --bp-weight-regular:   400;
  --bp-weight-medium:    500;
  --bp-weight-semibold:  600;
  --bp-weight-bold:      700;
  --bp-weight-extrabold: 800;

  --bp-leading-tight:  1.05;
  --bp-leading-snug:   1.2;
  --bp-leading-normal: 1.5;
  --bp-leading-relaxed: 1.625;

  --bp-tracking-hero:  -0.03em;   /* big numbers + headlines */
  --bp-tracking-tight: -0.02em;
  --bp-tracking-normal: 0;
  --bp-tracking-wide:   0.02em;

  /* ---------- SPACING (4px base) ---------------------------------------- */
  --bp-space-1:   4px;
  --bp-space-2:   8px;
  --bp-space-3:   12px;
  --bp-space-4:   16px;
  --bp-space-5:   20px;
  --bp-space-6:   24px;
  --bp-space-8:   32px;
  --bp-space-10:  40px;
  --bp-space-12:  48px;
  --bp-space-16:  64px;
  --bp-space-20:  80px;     /* py-20 desktop sections */
  --bp-space-24:  96px;

  /* ---------- RADII ------------------------------------------------------ */
  --bp-radius-sm:   6px;
  --bp-radius-md:   10px;
  --bp-radius-lg:   12px;     /* rounded-xl — cards mini */
  --bp-radius-xl:   16px;     /* rounded-2xl — cards principal */
  --bp-radius-2xl:  24px;
  --bp-radius-pill: 999px;    /* TOUS les boutons */

  /* ---------- SHADOWS — subtle, jamais criards -------------------------- */
  --bp-shadow-xs:  0 1px 2px 0 rgba(17, 24, 39, 0.04);
  --bp-shadow-sm:  0 1px 3px 0 rgba(17, 24, 39, 0.06), 0 1px 2px -1px rgba(17, 24, 39, 0.04);
  --bp-shadow-md:  0 4px 12px -2px rgba(17, 24, 39, 0.08), 0 2px 4px -2px rgba(17, 24, 39, 0.04);
  --bp-shadow-lg:  0 12px 32px -8px rgba(17, 24, 39, 0.12), 0 4px 8px -4px rgba(17, 24, 39, 0.06);
  --bp-shadow-cyan:0 8px 24px -8px rgba(14, 165, 233, 0.45);

  /* ---------- TRANSITIONS ----------------------------------------------- */
  --bp-ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --bp-duration-fast: 120ms;
  --bp-duration:    200ms;
  --bp-duration-slow: 320ms;

  /* ---------- LAYOUT ----------------------------------------------------- */
  --bp-container:   1200px;
  --bp-gutter:      24px;
}

/* ============================================================
   SEMANTIC ELEMENT STYLES
   ============================================================ */

html, body {
  font-family: var(--bp-font-sans);
  color: var(--bp-fg);
  background: var(--bp-bg);
  font-size: var(--bp-text-base);
  line-height: var(--bp-leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.bp-hero {
  font-size: clamp(48px, 9vw, 96px);
  font-weight: var(--bp-weight-extrabold);
  letter-spacing: var(--bp-tracking-hero);
  line-height: 0.95;
  color: var(--bp-fg);
}

.bp-h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: var(--bp-weight-extrabold);
  letter-spacing: var(--bp-tracking-tight);
  line-height: 1.05;
}

.bp-h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: var(--bp-weight-extrabold);
  letter-spacing: var(--bp-tracking-tight);
  line-height: 1.1;
}

.bp-h3 {
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: var(--bp-weight-bold);
  letter-spacing: var(--bp-tracking-tight);
  line-height: 1.2;
}

.bp-eyebrow {
  font-size: var(--bp-text-xs);
  font-weight: var(--bp-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bp-fg-muted);
}

.bp-body {
  font-size: var(--bp-text-base);
  line-height: var(--bp-leading-relaxed);
  color: var(--bp-fg-muted);
  text-align: left;
  text-wrap: pretty;
}

.bp-small {
  font-size: var(--bp-text-sm);
  color: var(--bp-fg-muted);
}

.bp-num {
  /* Big numbers — prix, KPIs, statistiques */
  font-size: clamp(48px, 8vw, 96px);
  font-weight: var(--bp-weight-extrabold);
  letter-spacing: var(--bp-tracking-hero);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   BUTTONS — pill-shaped, style "SumUp"
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--bp-radius-pill);
  border: 1.5px solid transparent;
  padding: 14px 32px;
  font: inherit;
  font-size: 15px;
  font-weight: var(--bp-weight-semibold);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--bp-duration) var(--bp-ease),
              color var(--bp-duration) var(--bp-ease),
              border-color var(--bp-duration) var(--bp-ease),
              transform var(--bp-duration-fast) var(--bp-ease);
  white-space: nowrap;
  user-select: none;
}

.btn:active { transform: scale(0.98); }
.btn:focus-visible {
  outline: 2px solid var(--bp-cyan);
  outline-offset: 2px;
}

/* Fill — black on light surfaces */
.btn-fill {
  background: var(--bp-ink);
  border-color: var(--bp-ink);
  color: var(--bp-white);
}
.btn-fill:hover {
  background: var(--bp-white);
  color: var(--bp-ink);
}

/* Outline — transparent w/ ink border */
.btn-outline {
  background: transparent;
  border-color: var(--bp-ink);
  color: var(--bp-ink);
}
.btn-outline:hover {
  background: var(--bp-ink);
  color: var(--bp-white);
}

/* White — for dark sections */
.btn-white {
  background: var(--bp-white);
  border-color: var(--bp-white);
  color: var(--bp-ink);
}
.btn-white:hover {
  background: transparent;
  color: var(--bp-white);
  border-color: var(--bp-white);
}

/* Cyan — accent CTA, used sparingly */
.btn-cyan {
  background: var(--bp-cyan);
  border-color: var(--bp-cyan);
  color: var(--bp-ink);
}
.btn-cyan:hover {
  background: var(--bp-cyan-strong);
  border-color: var(--bp-cyan-strong);
  color: var(--bp-white);
}

.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-lg { padding: 18px 40px; font-size: 16px; }

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--bp-white);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-xl);
  padding: 24px;
}

.card-soft {
  background: var(--bp-gray-soft);
  border-radius: var(--bp-radius-xl);
  padding: 24px;
}

.card-dark {
  background: var(--bp-ink);
  color: var(--bp-white);
  border-radius: var(--bp-radius-xl);
  padding: 24px;
}

/* ============================================================
   STATUS PILLS
   ============================================================ */

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--bp-radius-pill);
  font-size: 12px;
  font-weight: var(--bp-weight-semibold);
  letter-spacing: 0.01em;
}
.status-pending  { background: var(--bp-status-pending-bg);  color: var(--bp-status-pending-fg); }
.status-progress { background: var(--bp-status-progress-bg); color: var(--bp-status-progress-fg); }
.status-success  { background: var(--bp-status-success-bg);  color: var(--bp-status-success-fg); }
.status-error    { background: var(--bp-status-error-bg);    color: var(--bp-status-error-fg); }

.status-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: currentColor;
}
