/* ===================================================================
   Adopt[Funnel] · Brand System "Flux"
   Sous-marque AdoptIA — agence d'acquisition & conversion mesurable.
   Importer ce fichier dans tout document, dashboard, app, email Funnel.
   =================================================================== */

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

:root {
  /* ============ PALETTE SIGNATURE — Flux Orange ============ */
  --funnel:          #FF8C42;    /* Flux — CTA, KPI en croissance, étapes franchies du funnel */
  --funnel-hover:    #FF7A28;    /* État hover/active des CTA */
  --funnel-soft:     rgba(255,140,66,0.15);
  --funnel-glow:     rgba(255,140,66,0.40);
  --funnel-deep:     #B85F1C;    /* Funnel foncé — texte sur fond clair */

  /* ============ NEUTRES — héritage famille AdoptIA ============ */
  --af-deep:         #0A0E14;    /* Fond principal sombre */
  --af-surface:      #0E131C;    /* Cards, panneaux */
  --af-graphite:     #1C2330;    /* Bordures, séparateurs */
  --af-photon:       #E8EEF5;    /* Texte principal sur fond sombre */
  --af-mute:         #7A8699;    /* Texte secondaire */
  --af-indigo:       #5B6CFF;    /* Projections, secondary metrics, plans */
  --af-coral:        #FF5B6C;    /* Erreurs, deltas négatifs (jamais confondre avec Funnel signature) */
  --af-amber:        #FFB84D;    /* Warnings, en attente */

  /* Light mode (contrats, exports PDF, mode print) */
  --af-paper:        #FFFFFF;
  --af-ink:          #0A0E14;
  --af-ink-soft:     #5A6678;
  --af-rule:         #E3E7ED;

  /* ============ TYPOGRAPHIE — héritage AdoptIA mère ============ */
  --af-font-sans:    'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --af-font-mono:    'JetBrains Mono', 'Menlo', monospace;

  --af-text-xs:   11px;
  --af-text-sm:   13px;
  --af-text-base: 15px;
  --af-text-lg:   18px;
  --af-text-xl:   24px;
  --af-text-2xl:  32px;
  --af-text-3xl:  44px;
  --af-text-4xl:  64px;

  --af-radius:    6px;
  --af-radius-sm: 3px;
  --af-radius-pill: 999px;

  --af-shadow-glow: 0 0 14px var(--funnel-glow);
  --af-shadow-card: 0 4px 24px rgba(0,0,0,0.4);
}

/* ============ LOGO ============ */
.af-logo { font-family: var(--af-font-sans); letter-spacing: -0.3px; display: inline-block; }
.af-logo .l { font-weight: 200; }
.af-logo .b { font-weight: 700; color: var(--funnel); }
.af-logo .k { font-weight: 200; color: var(--af-mute); margin: 0 3px; }
.af-logo.on-light .k { color: #b3b8c1; }
.af-logo.on-light .b { color: var(--funnel-deep); }
.af-logo.mono .b { color: inherit; }

/* ============ TYPOGRAPHIE STYLES ============ */
.af-h1 { font-size: var(--af-text-4xl); font-weight: 200; letter-spacing: -2.5px; line-height: 1; }
.af-h1 strong { font-weight: 800; }
.af-h1 .accent { color: var(--funnel); font-weight: 700; }
.af-h2 { font-size: var(--af-text-2xl); font-weight: 300; letter-spacing: -1px; line-height: 1.1; }
.af-h2 strong { font-weight: 700; }
.af-h3 { font-size: var(--af-text-xl); font-weight: 600; letter-spacing: -0.4px; }
.af-body { font-size: var(--af-text-sm); line-height: 1.6; color: var(--af-mute); }
.af-mono { font-family: var(--af-font-mono); }
.af-cap  { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--af-mute); }
.af-accent { color: var(--funnel); }

/* ============ BOUTONS ============ */
.af-btn {
  font-family: var(--af-font-sans); font-size: var(--af-text-sm); font-weight: 700;
  padding: 10px 18px; border-radius: var(--af-radius-sm); border: none; cursor: pointer;
  letter-spacing: 0.2px; transition: all .15s;
}
.af-btn-primary { background: var(--funnel); color: var(--af-deep); }
.af-btn-primary:hover { background: var(--funnel-hover); box-shadow: var(--af-shadow-glow); }
.af-btn-ghost { background: transparent; color: var(--af-photon); border: 1px solid var(--af-graphite); }
.af-btn-ghost:hover { border-color: var(--funnel); color: var(--funnel); }

/* ============ PILLS / STATUS (codifiés funnel) ============ */
.af-pill {
  display: inline-block; font-family: var(--af-font-mono);
  font-size: 9px; padding: 4px 8px; border-radius: var(--af-radius-pill);
  letter-spacing: 0.5px; text-transform: uppercase; font-weight: 600;
}
.af-pill-cold    { background: var(--af-graphite); color: var(--af-mute); }              /* lead froid */
.af-pill-warm    { background: rgba(255,184,77,0.15); color: var(--af-amber); }          /* lead tiède */
.af-pill-hot     { background: var(--funnel-soft); color: var(--funnel); }                /* lead chaud */
.af-pill-mql     { background: rgba(91,108,255,0.18); color: #8a98ff; }                   /* MQL */
.af-pill-sql     { background: var(--funnel); color: var(--af-deep); }                    /* SQL chaud — pleine couleur */
.af-pill-won     { background: rgba(0,214,138,0.18); color: #00d68a; }                    /* gagné (rappel vert AdoptIA mère = signature de la victoire) */
.af-pill-lost    { background: rgba(255,91,108,0.15); color: var(--af-coral); }           /* perdu */

.af-live::before {
  content: ''; display: inline-block; width: 6px; height: 6px;
  background: var(--funnel); border-radius: 50%; margin-right: 6px;
  box-shadow: 0 0 8px var(--funnel); vertical-align: middle;
}

/* ============ CARDS / KPI ============ */
.af-card {
  background: var(--af-surface); border: 1px solid var(--af-graphite);
  border-radius: var(--af-radius); padding: 24px;
}
.af-kpi-label { font-size: 9px; letter-spacing: 1.5px; color: var(--af-mute); text-transform: uppercase; }
.af-kpi-value { font-size: 26px; font-weight: 300; margin-top: 8px; letter-spacing: -0.5px; }
.af-kpi-value .accent { color: var(--funnel); font-weight: 700; }
.af-kpi-delta { font-size: 10px; color: var(--funnel); margin-top: 2px; font-family: var(--af-font-mono); }
.af-kpi-delta.neg { color: var(--af-coral); }

/* ============ TABLES ============ */
.af-table { width: 100%; border-collapse: collapse; font-size: var(--af-text-xs); }
.af-table th, .af-table td { padding: 10px 0; text-align: left; border-bottom: 1px solid var(--af-graphite); }
.af-table th { font-size: 9px; letter-spacing: 1.5px; color: var(--af-mute); text-transform: uppercase; font-weight: 500; }
.af-table td { color: #ccd6e0; }

/* ============ FUNNEL VIZ — signature composant ============ */
.af-funnel { padding: 4px 0; }
.af-funnel-stage { display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.af-funnel-label { font-size: 12px; color: var(--af-photon); flex: 0 0 100px; }
.af-funnel-bar { height: 32px; border-radius: 3px; display: flex; align-items: center; padding: 0 12px; color: var(--af-deep); font-size: 11px; font-weight: 700; font-family: var(--af-font-mono); transition: all .2s; }
.af-funnel-bar.s1 { background: rgba(255,140,66,0.25); }    /* étage 1 = clair */
.af-funnel-bar.s2 { background: rgba(255,140,66,0.45); }
.af-funnel-bar.s3 { background: rgba(255,140,66,0.70); }
.af-funnel-bar.s4 { background: var(--funnel); }            /* étage final = signature pleine */
.af-funnel-pct { font-size: 11px; color: var(--af-mute); font-family: var(--af-font-mono); flex: 0 0 60px; text-align: right; }

/* ============ ARTICLE / SECTION POUR DOCS LEGAUX ============ */
.af-article { margin-top: 26px; padding-left: 14px; border-left: 2px solid var(--funnel); }
.af-article-num { font-family: var(--af-font-mono); font-size: 10px; color: var(--funnel-deep); letter-spacing: 1px; }
.af-article-title { font-size: var(--af-text-sm); font-weight: 600; margin-top: 2px; }
.af-article-body { font-size: var(--af-text-xs); color: var(--af-ink-soft); margin-top: 6px; line-height: 1.6; }

/* ============ DOCUMENT (PAPER / PDF) ============ */
.af-document {
  background: var(--af-paper); color: var(--af-ink);
  border-top: 4px solid var(--funnel);
  padding: 48px; max-width: 800px; margin: 0 auto;
  font-family: var(--af-font-sans);
}
.af-document-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; }
.af-stamp {
  background: var(--af-ink); color: var(--funnel);
  font-family: var(--af-font-mono); font-size: 10px;
  padding: 6px 10px; border-radius: 3px; letter-spacing: 1.5px;
}

/* ============ APP / DASHBOARD BASE ============ */
.af-app { background: var(--af-deep); color: var(--af-photon); font-family: var(--af-font-sans); min-height: 100vh; }
.af-divider { height: 1px; background: var(--af-graphite); border: none; margin: 24px 0; }
