/* GoProspect — socle visuel commun (landing, onboarding, tableau de bord) */
:root {
  --blue-900: #0B2A6F; --blue-800: #1E3A8A; --blue-700: #1D4ED8; --blue-600: #2563EB; --blue-500: #3B82F6; --blue-400: #60A5FA;
  --blue-200: #BFDBFE; --blue-100: #DBEAFE; --blue-50: #EFF6FF;
  --ink: #0F172A; --ink-2: #334155; --muted: #64748B; --faint: #94A3B8;
  --line: #E2E8F0; --line-2: #EEF2F7; --bg: #F5F7FB; --card: #FFFFFF;
  --green: #16A34A; --green-50: #ECFDF3; --amber: #D97706; --amber-50: #FFFBEB; --red: #DC2626; --red-50: #FEF2F2;
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px;
  --sh-1: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --sh-2: 0 4px 16px -4px rgba(15, 23, 42, .10), 0 2px 6px -2px rgba(15, 23, 42, .05);
  --sh-3: 0 24px 60px -20px rgba(15, 23, 42, .28), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
img, svg { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--blue-600); display: grid; place-items: center; box-shadow: 0 4px 12px -4px rgba(37, 99, 235, .6); }
.logo .mark svg { width: 17px; height: 17px; }
.logo.light { color: #fff; }
.logo.light .mark { background: #fff; box-shadow: none; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s var(--ease), box-shadow .15s; white-space: nowrap; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 1px 2px rgba(37, 99, 235, .3), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover { background: var(--blue-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: #fff; border-color: #CBD5E1; color: var(--ink); }
.btn-soft { background: var(--blue-50); color: var(--blue-700); }
.btn-soft:hover { background: var(--blue-100); color: var(--blue-800); }
.btn-white { background: #fff; color: var(--blue-700); }
.btn-white:hover { background: var(--blue-50); color: var(--blue-800); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.btn-link { background: none; border: 0; padding: 0; height: auto; color: var(--blue-600); font-weight: 600; cursor: pointer; }
.btn-link:hover { color: var(--blue-700); }
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-ghost.loading::after, .btn-soft.loading::after, .btn-white.loading::after { border-color: rgba(37, 99, 235, .25); border-top-color: var(--blue-600); }

/* Champs */
.field { display: grid; gap: 6px; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field > span em { font-style: normal; font-weight: 500; color: var(--faint); margin-left: 4px; }
.input, .textarea, .select { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s; font-size: 15px; }
.textarea { height: auto; min-height: 96px; padding: 11px 14px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(59, 130, 246, .16); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.hint { font-size: 13px; color: var(--muted); }
.err { color: var(--red); font-size: 14px; font-weight: 500; min-height: 0; }
.err:empty { display: none; }

/* Cartes, pastilles */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100); white-space: nowrap; }
.chip svg { width: 14px; height: 14px; }
.chip.gray { background: #F1F5F9; color: var(--ink-2); border-color: var(--line); }
.chip.green { background: var(--green-50); color: #15803D; border-color: #BBF7D0; }
.chip.amber { background: var(--amber-50); color: #B45309; border-color: #FDE68A; }
.chip.red { background: var(--red-50); color: #B91C1C; border-color: #FECACA; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.pulse-dot { position: relative; }
.pulse-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: ping 1.6s var(--ease) infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }
@keyframes shimmer { from { background-position: -400px 0; } to { background-position: 400px 0; } }
.fade-up { animation: fadeUp .5s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Modale et tiroir */
.overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); backdrop-filter: blur(3px); z-index: 60; display: grid; place-items: center; padding: 20px; animation: fadeIn .2s both; }
.modal { width: 100%; max-width: 520px; background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-3); padding: 28px; animation: fadeUp .3s var(--ease) both; max-height: calc(100vh - 40px); overflow: auto; }
.modal h3 { font-size: 20px; margin-bottom: 6px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 500; font-size: 14px; box-shadow: var(--sh-3); z-index: 90; animation: fadeUp .3s var(--ease) both; }
[hidden] { display: none !important; }
/* Code à 6 chiffres */
.otp { display: flex; gap: 8px; justify-content: center; }
.otp input { width: 50px; height: 58px; border: 1px solid var(--line); border-radius: 12px; text-align: center; font-size: 24px; font-weight: 700; color: var(--ink); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s, transform .15s; font-variant-numeric: tabular-nums; }
.otp input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(59, 130, 246, .16); transform: translateY(-1px); }
.otp input:disabled { background: #F8FAFC; color: var(--muted); }
.otp-sent { text-align: center; color: var(--muted); font-size: 14.5px; }
.otp-sent b { color: var(--ink); }
.otp-actions { display: flex; justify-content: center; gap: 16px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 420px) { .otp { gap: 6px; } .otp input { width: 42px; height: 52px; font-size: 21px; } }
