/* ═══════════════════════════════════════════════════════════════
   DESIGN SYSTEM TOKENS — Midnight Aurora (Violet / Gold)
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #0B0D1A;
  --bg-subtle: #0F1128;
  --bg-card: rgba(20, 22, 45, 0.75);
  --bg-card-hover: rgba(28, 31, 58, 0.9);
  --bg-elevated: #1A1D35;
  --bg-input: #0E1024;

  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(139, 92, 246, 0.4);

  --accent: #8B5CF6;
  --accent-hover: #A78BFA;
  --accent-dim: rgba(139, 92, 246, 0.1);
  --accent-dim2: rgba(139, 92, 246, 0.18);
  --accent-glow: rgba(139, 92, 246, 0.3);
  --accent-gradient: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);

  --pro-gold: #F59E0B;
  --pro-gold-dim: rgba(245, 158, 11, 0.12);
  --pro-gradient: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
  --pro-glow: rgba(245, 158, 11, 0.28);

  --blue: #38BDF8;
  --blue-dim: rgba(56, 189, 248, 0.1);
  --purple: #A855F7;
  --purple-dim: rgba(168, 85, 247, 0.1);
  --red: #FB7185;
  --red-dim: rgba(251, 113, 133, 0.1);
  --amber: #FBBF24;
  --amber-dim: rgba(251, 191, 36, 0.1);

  --text: #F1F5F9;
  --text2: #94A3B8;
  --text3: #64748B;
  --text-dim: #475569;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
  --shadow-lg: 0 16px 40px -6px rgba(0, 0, 0, 0.7), inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  --shadow-glow: 0 0 28px rgba(139, 92, 246, 0.2);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 9999px;

  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET & BASE ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── ULTRA-THIN MACOS / LINEAR SCROLLBARS (Priorité absolue) ── */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}
*::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  transition: background 0.2s ease;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.1), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 10%, rgba(236, 72, 153, 0.06), transparent 60%);
  background-attachment: fixed;
}

/* ── SETUP SCREEN ── */
#setup-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  position: relative;
}
.setup-box {
  width: 100%;
  max-width: 540px;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.logo-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
}
.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}
.logo-icon svg { width: 22px; height: 22px; }
.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.logo-text span { color: var(--accent); }

.setup-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
  margin-bottom: 0.85rem;
}
.setup-title em {
  color: var(--accent);
  font-style: normal;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.setup-sub {
  font-size: 14.5px;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.field-group { margin-bottom: 1.35rem; }
.field-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.field-label .dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

input[type="text"], input[type="password"], select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13.5px;
  padding: 12px 16px;
  outline: none;
  transition: all var(--transition-normal);
}
input[type="text"]:focus, input[type="password"]:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12), inset 0 1px 2px rgba(0,0,0,0.5);
}
select { cursor: pointer; }
option { background: var(--bg-elevated); color: var(--text); }

.field-hint {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--text3);
  line-height: 1.5;
}
.field-hint a { color: var(--accent); text-decoration: none; font-weight: 600; }
.field-hint a:hover { text-decoration: underline; }

.btn-start {
  width: 100%;
  margin-top: 1.85rem;
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  padding: 14px 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}
.btn-start:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.45);
}
.btn-start:active:not(:disabled) { transform: translateY(0); }
.btn-start:disabled { background: var(--bg-elevated); color: var(--text3); cursor: not-allowed; box-shadow: none; }

.notif-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.notif-toggle:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.02); }
.toggle-track {
  width: 38px;
  height: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  position: relative;
  transition: all var(--transition-normal);
  flex-shrink: 0;
}
.toggle-track.on {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.35);
}
.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #F8FAFC;
  border-radius: 50%;
  transition: all var(--transition-normal);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.toggle-track.on .toggle-thumb {
  left: 18px;
  background: #0B0D1A;
}
.toggle-text { font-size: 13px; color: var(--text2); }
.toggle-text strong { color: var(--text); font-weight: 600; }

/* ═══════════════════════════════════ MAIN APP & HEADER ═══════════════════════════════════ */
#app { display: none; min-height: 100vh; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 26, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-left { display: flex; align-items: center; gap: 20px; }
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  text-decoration: none;
}
.header-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.25);
}
.header-logo-icon svg { width: 18px; height: 18px; }
.header-logo-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pulse-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--text3);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-anim 2.2s ease-in-out infinite;
}
@keyframes pulse-anim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

.header-right { display: flex; align-items: center; gap: 10px; }
.btn-gen {
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.25);
}
.btn-gen:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(139, 92, 246, 0.4); }
.btn-gen:active { transform: translateY(0); }
.btn-gen:disabled { background: var(--bg-elevated); color: var(--text3); cursor: not-allowed; box-shadow: none; }

.btn-settings, .btn-export {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text2);
  transition: all var(--transition-fast);
}
.btn-settings:hover, .btn-export:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.05);
}

/* ── NAVIGATION SAAS & BADGES ── */
.app-nav { display: flex; align-items: center; gap: 4px; margin-left: 1rem; }
.nav-tab {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text3);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  border: 1px solid transparent;
}
.nav-tab:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-tab.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(139, 92, 246, 0.25);
  font-weight: 700;
}
.nav-badge {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
}
.nav-tab.active .nav-badge {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent);
  border-color: rgba(139, 92, 246, 0.35);
}

.btn-pro-badge {
  background: var(--pro-gold-dim);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--pro-gold);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}
.btn-pro-badge:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: var(--pro-gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--pro-glow);
}
.btn-pro-badge.is-pro {
  color: var(--accent);
  border-color: rgba(139, 92, 246, 0.4);
  background: var(--accent-dim2);
}

/* ── MAIN CONTENT CONTAINER ── */
.app-main {
  max-width: 940px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem 1.5rem;
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.status-date { font-size: 13.5px; color: var(--text2); }
.status-date strong { color: var(--text); font-weight: 700; }
.status-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.s-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.02em;
}
.s-pill.market { color: var(--blue); border-color: rgba(56,189,248,0.3); background: var(--blue-dim); }
.s-pill.geo { color: var(--purple); border-color: rgba(168,85,247,0.3); background: var(--purple-dim); }
.s-pill.eco { color: var(--amber); border-color: rgba(251,191,36,0.3); background: var(--amber-dim); }

.disclaimer-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text2);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}
.disclaimer-banner .ic { flex-shrink: 0; margin-top: 2px; }

#gen-loading { display: none; text-align: center; padding: 5rem 2rem; }
.gen-bars { display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 48px; margin-bottom: 1.5rem; }
.gen-bar { width: 6px; background: var(--accent); border-radius: 3px; animation: bar-bounce 1.2s ease-in-out infinite; }
.gen-bar:nth-child(1) { animation-delay: 0s; } .gen-bar:nth-child(2) { animation-delay: 0.1s; }
.gen-bar:nth-child(3) { animation-delay: 0.2s; } .gen-bar:nth-child(4) { animation-delay: 0.3s; }
.gen-bar:nth-child(5) { animation-delay: 0.4s; } .gen-bar:nth-child(6) { animation-delay: 0.5s; }
.gen-bar:nth-child(7) { animation-delay: 0.6s; }
@keyframes bar-bounce { 0%, 100% { height: 12px; opacity: 0.3; } 50% { height: 48px; opacity: 1; } }
.gen-label { font-size: 15px; color: var(--text2); font-weight: 600; }
.gen-sublabel { margin-top: 6px; font-size: 12px; color: var(--text3); font-family: var(--font-mono); }

#empty-state { text-align: center; padding: 5rem 2rem; border: 1px dashed var(--border); border-radius: var(--radius-xl); }
.empty-icon { font-size: 48px; margin-bottom: 1rem; opacity: 0.7; }
.empty-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.empty-sub { font-size: 14px; color: var(--text2); line-height: 1.6; margin-bottom: 1.5rem; }

/* ── SEARCH HERO (CRO & Modern SaaS Input) ── */
.search-hero-card {
  background: radial-gradient(circle at top right, rgba(0,245,155,0.06), transparent 50%), var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem 1.75rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-normal);
}
.search-hero-card:hover { border-color: var(--border-hover); }
.search-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent-dim);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
}
.search-hero-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.035em;
  margin: 0 0 8px 0;
  line-height: 1.25;
}
.search-hero-sub {
  font-size: 14px;
  color: var(--text2);
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
  max-width: 720px;
}
.search-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.25rem;
}
.search-chip {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}
.search-chip:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);
}
.search-chip.active {
  background: var(--accent-dim2);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.2);
}
.search-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 8px 6px 16px;
  gap: 12px;
  transition: all var(--transition-normal);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}
.search-input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12), inset 0 1px 2px rgba(0,0,0,0.4);
}
.search-input-icon { color: var(--text3); font-size: 16px; }
.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font-sans);
  padding: 8px 0;
}
.search-input::placeholder { color: var(--text3); }
.btn-search-clear {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.btn-search-clear:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.btn-search-submit {
  background: var(--accent-gradient);
  color: #0B0D1A;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 800;
  padding: 11px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.25);
}
.btn-search-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}
.btn-search-submit:disabled { opacity: 0.5; cursor: default; }

.search-social-proof { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12px; color: var(--text3); flex-wrap: wrap; }
.proof-stars { color: #ffb800; letter-spacing: 2px; font-size: 13px; }
.disclaimer-subtle { font-size: 11px; color: var(--text3); text-align: center; margin-top: 1.5rem; line-height: 1.5; padding: 0 1rem; }

/* ── DATE TABS & PROGRESS BAR ── */
.next-gen-bar {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 12px;
}
.next-gen-label { font-size: 12.5px; color: var(--text2); }
.next-gen-timer {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.progress-track {
  flex: 1;
  min-width: 120px;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-pill);
  transition: width 1s linear;
}

.date-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 4px;
}
.date-tab {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text2);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.date-tab.active {
  background: var(--accent-dim2);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}
.date-tab:hover:not(.active) { color: var(--text); border-color: var(--border-hover); }

/* ── CARDS D'IDÉES & DOSSIERS ── */
#ideas-container { display: flex; flex-direction: column; gap: 18px; }

.idea-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}
.idea-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.idea-card-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
}
.idea-header-left { display: flex; align-items: flex-start; gap: 14px; flex: 1; }
.idea-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim2);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  margin-top: 2px;
}
.idea-title-block { flex: 1; }
.idea-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin-bottom: 4px;
  color: var(--text);
}
.idea-tagline {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}
.idea-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid;
  letter-spacing: 0.01em;
}
.badge.diff-low { color: #8B5CF6; border-color: rgba(139, 92, 246, 0.3); background: rgba(139, 92, 246, 0.08); }
.badge.diff-mid { color: var(--amber); border-color: rgba(251, 191, 36, 0.3); background: var(--amber-dim); }
.badge.diff-high { color: var(--red); border-color: rgba(251, 113, 133, 0.3); background: var(--red-dim); }
.badge.pot-moyen { color: var(--amber); border-color: rgba(251, 191, 36, 0.3); background: var(--amber-dim); }
.badge.pot-fort { color: var(--blue); border-color: rgba(56, 189, 248, 0.3); background: var(--blue-dim); }
.badge.pot-tresfort { color: var(--accent); border-color: rgba(139, 92, 246, 0.35); background: var(--accent-dim); }
.badge.sector { color: var(--purple); border-color: rgba(168, 85, 247, 0.3); background: var(--purple-dim); }
.badge.time { color: var(--text2); border-color: var(--border); background: var(--bg-elevated); }

.idea-toggle-icon {
  color: var(--text3);
  font-size: 16px;
  flex-shrink: 0;
  transition: transform var(--transition-normal);
  margin-top: 4px;
}
.idea-toggle-icon.open { transform: rotate(180deg); color: var(--accent); }

.idea-body { display: none; border-top: 1px solid var(--border); }
.idea-body.open { display: block; }

.revenue-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.15);
}
.rev-cell { padding: 1rem 1.25rem; border-right: 1px solid var(--border); }
.rev-cell:last-child { border-right: none; }
.rev-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}
.rev-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}
.rev-sub { font-size: 11px; color: var(--text3); margin-top: 2px; }

.score-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.score-track {
  flex: 1;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.score-fill { height: 100%; border-radius: var(--radius-pill); transition: width 0.6s ease; }
.score-fill.moyen { background: var(--amber); }
.score-fill.fort { background: var(--blue); }
.score-fill.tresfort { background: var(--accent-gradient); }
.score-value {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
  width: 32px;
  text-align: right;
}

.idea-sections {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text3);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.section-text { font-size: 13.5px; color: var(--text2); line-height: 1.7; }
.section-text strong { color: var(--text); font-weight: 600; }

/* ── TIMELINE ── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: flex; gap: 14px; }
.tl-left { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.tl-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-dim2);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.tl-line { flex: 1; width: 1px; background: var(--border); margin: 4px 0; min-height: 16px; }
.tl-item:last-child .tl-line { display: none; }
.tl-content { padding-bottom: 1.25rem; flex: 1; }
.tl-phase { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.tl-desc { font-size: 13px; color: var(--text2); line-height: 1.6; }
.tl-tasks { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.tl-task { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; color: var(--text2); }
.tl-task::before { content: '›'; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── FINANCES & COMPOSANTS ── */
.finance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.finance-item {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.finance-label { font-size: 11px; color: var(--text3); margin-bottom: 4px; font-weight: 600; }
.finance-val { font-size: 15px; font-weight: 700; color: var(--text); font-family: var(--font-mono); }
.finance-val.pos { color: var(--accent); }
.finance-sub { font-size: 11px; color: var(--text3); margin-top: 3px; }

.risk-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  background: var(--red-dim);
  border: 1px solid rgba(251, 113, 133, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.risk-item::before { content: '⚠'; font-size: 12px; margin-top: 1px; flex-shrink: 0; color: var(--red); }
.risk-item b { color: var(--text); }
.adv-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  background: var(--accent-dim);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.adv-item::before { content: '✓'; color: var(--accent); font-weight: 700; font-size: 12px; margin-top: 1px; flex-shrink: 0; }

.competitor-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 8px;
}
.competitor-name { font-size: 13px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.competitor-row { font-size: 12.5px; color: var(--text2); line-height: 1.6; margin-top: 2px; }
.competitor-row b { color: var(--text); font-weight: 600; }

.market-bar-row { margin-bottom: 14px; }
.market-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text3);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.market-bar-track { height: 8px; background: var(--bg-elevated); border-radius: var(--radius-pill); overflow: hidden; }
.market-bar-fill { height: 100%; border-radius: var(--radius-pill); }
.market-bar-fill.tam { width: 100%; background: rgba(56,189,248,0.35); }
.market-bar-fill.sam { width: 60%; background: rgba(56,189,248,0.65); }
.market-bar-fill.som { width: 28%; background: var(--blue); }
.market-bar-text { font-size: 13px; color: var(--text2); margin-top: 6px; line-height: 1.55; }
.market-methodo { font-size: 11.5px; color: var(--text3); margin-top: 10px; font-style: italic; }

.btn-develop, .btn-kit, .btn-acquisition {
  width: 100%;
  background: var(--bg-input);
  border: 1px dashed var(--border-hover);
  color: var(--text);
  border-radius: var(--radius-md);
  padding: 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}
.btn-develop:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.btn-kit:hover:not(:disabled) { border-color: var(--purple); color: var(--purple); background: var(--purple-dim); }
.btn-acquisition:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.btn-develop:disabled, .btn-kit:disabled, .btn-acquisition:disabled { cursor: default; opacity: 0.75; }
.spin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: var(--accent);
  animation: spin-anim 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin-anim { to { transform: rotate(360deg); } }

.btn-secondary-block {
  width: 100%;
  margin-top: 0.25rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: var(--radius-md);
  padding: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}
.btn-secondary-block:hover { color: var(--text); border-color: var(--border-hover); background: rgba(255,255,255,0.03); }

.copy-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 10px;
  position: relative;
}
.copy-card-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  margin-bottom: 6px;
  padding-right: 70px;
}
.copy-card-title { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.copy-card-body { font-size: 13px; color: var(--text2); line-height: 1.6; white-space: pre-wrap; }
.btn-copy {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-copy:hover { color: var(--text); border-color: var(--accent); }

.context-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  margin: 3px;
}

/* ═══════════════════════════════════ WORKSPACE & SPLIT SCREEN ASSISTANT ═══════════════════════════════════ */
#view-workspace { display: none; }
.workspace-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.workspace-back-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text2);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}
.workspace-back-btn:hover { color: var(--text); border-color: var(--border-hover); background: rgba(255,255,255,0.04); }
.workspace-info { flex: 1; min-width: 240px; }
.workspace-name { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.workspace-tagline { font-size: 12.5px; color: var(--text2); margin-top: 2px; }
.workspace-actions { display: flex; align-items: center; gap: 8px; }

.workspace-split {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 20px;
  align-items: start;
}
.workspace-dossier-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow-y: auto;
  max-height: calc(100vh - 150px);
  box-shadow: var(--shadow-sm);
}
.workspace-assistant-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 150px);
  position: sticky;
  top: 80px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.workspace-mob-tabs { display: none; gap: 8px; margin-bottom: 12px; }
.workspace-mob-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  cursor: pointer;
}
.workspace-mob-tab.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

/* ── ASSISTANT CHAT & COPILOT ── */
.assistant-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(14, 16, 25, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.assistant-title-row { display: flex; align-items: center; gap: 8px; }
.assistant-title { font-size: 14px; font-weight: 800; color: var(--text); }
.assistant-sub { font-size: 11px; color: var(--text3); }
.assistant-quota {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(139, 92, 246, 0.25);
  font-family: var(--font-mono);
}

.assistant-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.assistant-bubble {
  max-width: 90%;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.65;
  word-break: break-word;
}
.assistant-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(109, 40, 217, 0.12));
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--text);
  border-bottom-right-radius: 3px;
}
.assistant-bubble.assistant {
  align-self: flex-start;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 3px;
}
.assistant-bubble.assistant p { margin: 0 0 8px 0; }
.assistant-bubble.assistant p:last-child { margin-bottom: 0; }
.assistant-bubble.assistant ul, .assistant-bubble.assistant ol { margin: 6px 0 8px 0; padding-left: 20px; }
.assistant-bubble.assistant li { margin-bottom: 4px; }
.assistant-bubble-meta { font-size: 10px; color: var(--text3); margin-top: 6px; text-align: right; }

.chat-code-block {
  background: #030407;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 8px 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #8B5CF6;
  line-height: 1.5;
}
.chat-inline-code {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 2px 6px;
  border-radius: 4px;
}
.chat-blockquote {
  border-left: 3px solid var(--accent);
  padding: 6px 12px;
  margin: 8px 0;
  background: var(--accent-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text2);
  font-style: italic;
}
.chat-h3 { font-size: 14px; font-weight: 800; color: var(--text); margin: 10px 0 6px 0; }
.chat-h4 { font-size: 13px; font-weight: 700; color: var(--accent); margin: 8px 0 4px 0; }

.assistant-typing {
  display: none;
  align-self: flex-start;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text2);
}
.assistant-typing.show { display: flex; align-items: center; gap: 8px; }

.assistant-quick-prompts {
  padding: 10px 16px 6px 16px;
  background: rgba(11, 13, 20, 0.85);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--border);
}
.quick-prompt-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.quick-prompt-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.assistant-input-bar {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: rgba(14, 16, 25, 0.95);
  flex-shrink: 0;
}
.assistant-input-box {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  transition: all var(--transition-normal);
}
.assistant-input-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}
.assistant-textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text);
  resize: none;
  max-height: 120px;
  min-height: 28px;
  padding: 4px 0;
  line-height: 1.4;
}
.assistant-textarea::placeholder { color: var(--text3); }
.assistant-send-btn {
  background: var(--accent-gradient);
  color: #0B0D1A;
  border: none;
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25);
}
.assistant-send-btn:hover:not(:disabled) { transform: scale(1.06); box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4); }
.assistant-send-btn:disabled { opacity: 0.4; cursor: default; box-shadow: none; }

/* ── PAYWALL & CURIOSITY GAP FLOU ── */
.assistant-paywall {
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  overflow-y: auto;
}
.paywall-curiosity-preview {
  width: 100%;
  max-width: 380px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: left;
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.curiosity-bubble-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.curiosity-bubble-text { font-size: 12.5px; color: var(--text); line-height: 1.55; margin-bottom: 10px; }
.curiosity-blur-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  position: relative;
  overflow: hidden;
}
.curiosity-blur-content { filter: blur(4px); user-select: none; opacity: 0.7; font-size: 12px; line-height: 1.5; color: var(--text2); }
.curiosity-lock-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 8, 12, 0.55);
  font-size: 12px;
  font-weight: 800;
  color: var(--pro-gold);
  gap: 6px;
}

.paywall-badge {
  background: var(--pro-gold-dim);
  color: var(--pro-gold);
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}
.paywall-title { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.paywall-desc { font-size: 13px; color: var(--text2); line-height: 1.55; max-width: 340px; margin-bottom: 1.5rem; }
.btn-unlock-pro {
  width: 100%;
  max-width: 340px;
  background: var(--accent-gradient);
  color: #0B0D1A;
  border: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-unlock-pro:hover { transform: translateY(-2px); box-shadow: 0 6px 26px rgba(139, 92, 246, 0.45); }

/* ═══════════════════════════════════ MODALES (Pricing, Auth, Dashboard, Settings) ═══════════════════════════════════ */
#pricing-modal, #pro-modal, #settings-modal, #auth-modal, #dashboard-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(4, 5, 8, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 2rem 1rem;
}
#pricing-modal.open, #pro-modal.open, #settings-modal.open, #auth-modal.open, #dashboard-modal.open {
  display: flex;
}

.pricing-modal-box {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.25rem;
  width: 100%;
  max-width: 1040px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.pricing-hero { text-align: center; margin-bottom: 2.25rem; }
.pricing-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent-dim);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}
.pricing-title { font-size: 30px; font-weight: 800; color: var(--text); letter-spacing: -0.03em; margin-bottom: 6px; }
.pricing-sub { font-size: 14.5px; color: var(--text2); max-width: 640px; margin: 0 auto; line-height: 1.55; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 1.75rem; }
.pricing-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all var(--transition-normal);
}
.pricing-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.pricing-card.starter {
  border-color: rgba(139, 92, 246, 0.35);
  background: linear-gradient(180deg, rgba(0,245,155,0.04) 0%, var(--bg-input) 100%);
}
.pricing-card.starter:hover { border-color: var(--accent); box-shadow: 0 12px 32px rgba(139, 92, 246, 0.15); }

.pricing-card.pro {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(180deg, rgba(245,158,11,0.05) 0%, var(--bg-input) 100%);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.08);
}
.pricing-card.pro:hover { border-color: var(--pro-gold); box-shadow: 0 14px 36px var(--pro-glow); }

.pricing-card-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.pricing-card-badge.starter { background: var(--accent); color: #0B0D1A; }
.pricing-card-badge.pro { background: var(--pro-gradient); color: #0B0D1A; box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4); }

.pricing-card-header { margin-bottom: 1rem; text-align: left; }
.pricing-tier-name { font-size: 19px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 6px; }
.pricing-tier-desc { font-size: 12.5px; color: var(--text2); margin-top: 4px; line-height: 1.45; min-height: 36px; }
.pricing-price-wrap { display: flex; align-items: baseline; gap: 4px; margin-top: 10px; margin-bottom: 12px; }
.pricing-price { font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: var(--text); }
.pricing-period { font-size: 12px; color: var(--text3); }

.pricing-features-list { list-style: none; padding: 0; margin: 0 0 1.5rem 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.pricing-feature-item { font-size: 12.5px; color: var(--text2); display: flex; align-items: flex-start; gap: 8px; line-height: 1.45; }
.pricing-feature-item.included { color: var(--text); }
.pricing-feature-item.excluded { color: var(--text3); opacity: 0.55; text-decoration: line-through; }
.pricing-feature-item .icon { font-size: 12px; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.pricing-feature-item.included .icon { color: var(--accent); }
.pricing-feature-item.excluded .icon { color: var(--text3); }
.pricing-card.pro .pricing-feature-item.included .icon { color: var(--pro-gold); }

.btn-pricing-cta {
  width: 100%;
  border: none;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 800;
  padding: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.btn-pricing-cta.free { background: var(--bg-elevated); color: var(--text2); border: 1px solid var(--border); }
.btn-pricing-cta.free:hover:not(:disabled) { background: var(--border-hover); color: var(--text); }
.btn-pricing-cta.starter { background: var(--accent-gradient); color: #0B0D1A; box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25); }
.btn-pricing-cta.starter:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4); }
.btn-pricing-cta.pro { background: var(--pro-gradient); color: #0B0D1A; box-shadow: 0 4px 18px var(--pro-glow); }
.btn-pricing-cta.pro:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(245, 158, 11, 0.45); }
.btn-pricing-cta.current-plan { background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--text2); cursor: default; }

.pricing-footer-bar {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text3);
}
.pricing-security-badge { display: flex; align-items: center; gap: 6px; }
.btn-portal-link {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text2);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-portal-link:hover { color: var(--text); border-color: var(--accent); }

.pricing-test-bar {
  background: rgba(0,0,0,0.35);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text3);
}
.test-pills { display: flex; gap: 6px; }
.test-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.test-pill:hover { border-color: var(--accent); color: var(--text); }
.test-pill.active { background: var(--accent-dim2); border-color: var(--accent); color: var(--accent); }

/* ── CADENAS ET FLOU CHIRURGICAL ── */
.locked-section-container { position: relative; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 12px; }
.locked-blur-content { filter: blur(5px); opacity: 0.35; pointer-events: none; user-select: none; }
.locked-overlay-box {
  position: absolute;
  inset: 0;
  background: rgba(7, 8, 12, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  text-align: center;
  z-index: 10;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255,255,255,0.12);
}
.locked-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}
.locked-pill.starter { background: var(--accent-dim); border: 1px solid rgba(139, 92, 246, 0.35); color: var(--accent); }
.locked-pill.pro { background: var(--pro-gold-dim); border: 1px solid rgba(245, 158, 11, 0.4); color: var(--pro-gold); }
.locked-title { font-size: 14.5px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.locked-desc { font-size: 12px; color: var(--text2); max-width: 330px; line-height: 1.5; margin-bottom: 10px; }
.btn-lock-cta {
  border: none;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 800;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-lock-cta.starter { background: var(--accent-gradient); color: #0B0D1A; box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3); }
.btn-lock-cta.starter:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(139, 92, 246, 0.45); }
.btn-lock-cta.pro { background: var(--pro-gradient); color: #0B0D1A; box-shadow: 0 2px 12px var(--pro-glow); }
.btn-lock-cta.pro:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(245, 158, 11, 0.5); }

.score-detaille-locked-wrapper {
  position: relative;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 10px;
}
.score-detaille-locked-wrapper .locked-overlay-box { background: rgba(11, 13, 20, 0.84); }

/* ── MODALE STANDARD (Auth / Settings / Dashboard) ── */
.modal-box, .dash-box {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.dash-box { max-width: 780px; }
.modal-title, .dash-title { font-size: 19px; font-weight: 800; margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text2);
  font-size: 14px;
  transition: all var(--transition-fast);
}
.modal-close:hover { color: var(--text); border-color: var(--border-hover); }

/* ── GRILLES CANVAS & SWOT ── */
.bmc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bmc-block { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; }
.bmc-block-title { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--purple); margin-bottom: 5px; }
.bmc-block-text { font-size: 12.5px; color: var(--text2); line-height: 1.55; }

.swot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.swot-quadrant { border-radius: var(--radius-md); padding: 12px 14px; border: 1px solid; }
.swot-quadrant.force { background: var(--accent-dim); border-color: rgba(139, 92, 246, 0.25); }
.swot-quadrant.opportunite { background: var(--blue-dim); border-color: rgba(56, 189, 248, 0.25); }
.swot-quadrant.faiblesse { background: var(--amber-dim); border-color: rgba(251, 191, 36, 0.25); }
.swot-quadrant.menace { background: var(--red-dim); border-color: rgba(251, 113, 133, 0.25); }
.swot-quadrant-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 8px; }
.swot-quadrant.force .swot-quadrant-title { color: var(--accent); }
.swot-quadrant.opportunite .swot-quadrant-title { color: var(--blue); }
.swot-quadrant.faiblesse .swot-quadrant-title { color: var(--amber); }
.swot-quadrant.menace .swot-quadrant-title { color: var(--red); }
.swot-quadrant ul { margin: 0; padding-left: 16px; }
.swot-quadrant li { font-size: 12.5px; color: var(--text2); line-height: 1.55; margin-bottom: 3px; }

.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.scenario-card { border-radius: var(--radius-md); padding: 14px; border: 1px solid var(--border); background: var(--bg-input); }
.scenario-card.optimiste { border-color: rgba(139, 92, 246, 0.3); }
.scenario-card.pessimiste { border-color: rgba(251, 113, 133, 0.3); }
.scenario-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 8px; }
.scenario-card.optimiste .scenario-title { color: var(--accent); }
.scenario-card.realiste .scenario-title { color: var(--blue); }
.scenario-card.pessimiste .scenario-title { color: var(--red); }
.scenario-hypo { font-size: 11.5px; color: var(--text3); font-style: italic; line-height: 1.5; margin-bottom: 8px; }
.scenario-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text2); padding: 4px 0; border-top: 1px solid var(--border); }
.scenario-row:first-of-type { border-top: none; }
.scenario-row b { color: var(--text); font-weight: 600; font-family: var(--font-mono); }

.name-suggestions-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.name-chip { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 8px 12px; font-size: 12.5px; }
.name-chip .name-chip-title { font-weight: 700; color: var(--text); margin-bottom: 3px; }
.name-chip .name-chip-ext { color: var(--text3); font-family: var(--font-mono); font-size: 11px; }

.social-strategy-card { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 8px; }
.social-strategy-platform { font-size: 12.5px; font-weight: 800; color: var(--text); margin-bottom: 3px; }
.social-strategy-text { font-size: 12.5px; color: var(--text2); line-height: 1.55; }
.seo-keywords { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }

/* ── 100 CLIENTS MODULE ── */
.prospection-card { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 8px; }
.prospection-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.prospection-canal { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.prospection-text { font-size: 12.5px; color: var(--text2); line-height: 1.6; white-space: pre-wrap; }

.acq-week { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 8px; }
.acq-week-header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.acq-week-num { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue); }
.acq-week-objectif { font-size: 12.5px; color: var(--text); font-weight: 700; }
.acq-tasks { display: flex; flex-direction: column; gap: 6px; }
.acq-task { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 12.5px; color: var(--text2); line-height: 1.5; }
.acq-task-box {
  flex-shrink: 0; width: 16px; height: 16px; border: 1px solid var(--border-hover); border-radius: 4px; margin-top: 2px;
  display: flex; align-items: center; justify-content: center; font-size: 11px; color: #0B0D1A; transition: all var(--transition-fast);
}
.acq-task.checked .acq-task-box { background: var(--accent); border-color: var(--accent); }
.acq-task.checked .acq-task-text { color: var(--text3); text-decoration: line-through; }
.acq-erreurs { margin: 0; padding-left: 18px; }
.acq-erreurs li { font-size: 12.5px; color: var(--text2); line-height: 1.6; margin-bottom: 4px; }

/* ── SECTION "MES BUSINESSES" ── */
#view-businesses { display: none; }
.businesses-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 12px; }
.businesses-title { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.businesses-sub { font-size: 13px; color: var(--text2); margin-top: 3px; }
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.biz-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
}
.biz-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.biz-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.biz-card-name { font-size: 16px; font-weight: 800; color: var(--text); padding-right: 50px; }
.biz-card-tagline { font-size: 12.5px; color: var(--text2); line-height: 1.5; margin-bottom: 12px; }
.biz-card-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.biz-card-score { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; margin-bottom: 14px; }
.biz-card-score-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; font-size: 11.5px; color: var(--text2); }
.biz-card-actions { display: flex; align-items: center; gap: 8px; }
.btn-biz-open {
  flex: 1;
  background: var(--accent-dim);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
}
.btn-biz-open:hover { background: var(--accent); color: #0B0D1A; }

/* ── TOAST & MISC ── */
#toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elevated);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.header-account {
  height: 36px;
  padding: 0 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text2);
  font-size: 12px;
  font-weight: 600;
  transition: all var(--transition-fast);
  position: relative;
  max-width: 170px;
}
.header-account:hover { color: var(--text); border-color: var(--border-hover); }
.header-account .acc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text3); flex-shrink: 0; }
.header-account.connected .acc-dot { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.header-account .acc-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.account-menu {
  display: none;
  position: absolute;
  top: 44px;
  right: 0;
  z-index: 210;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
}
.account-menu.open { display: block; }
.account-menu-item {
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}
.account-menu-item:hover { background: rgba(255,255,255,0.06); color: var(--text); }
/* ── BOUTONS OAUTH SOCIAUX (Google, Facebook, GitHub) & SÉPARATEUR ── */
.auth-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0.5rem;
}

.btn-social-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.btn-social-auth:hover {
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.btn-social-auth.facebook:hover {
  border-color: rgba(24, 119, 242, 0.5);
  background: rgba(24, 119, 242, 0.08);
}

.btn-social-auth.github:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-social-auth .social-svg, .btn-social-auth .google-svg {
  flex-shrink: 0;
}

.auth-social-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.15rem 0;
  color: var(--text3);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-social-divider::before,
.auth-social-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.auth-social-divider span {
  padding: 0 10px;
}

.auth-tabs { display: flex; gap: 6px; margin-bottom: 1.5rem; background: var(--bg-input); border-radius: var(--radius-md); padding: 4px; border: 1px solid var(--border); }
.auth-tab { flex: 1; text-align: center; padding: 9px; font-size: 13px; font-weight: 700; color: var(--text2); border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition-fast); }
.auth-tab.active { background: var(--accent-dim2); color: var(--accent); }
.auth-switch-note { margin-top: 1rem; font-size: 12px; color: var(--text3); text-align: center; }

.logo-preview-box { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.logo-preview-svg-wrap {
  width: 88px; height: 88px; flex-shrink: 0; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.logo-preview-svg-wrap svg { width: 68%; height: 68%; }
.logo-meta { flex: 1; min-width: 180px; }
.logo-concept { font-size: 13px; color: var(--text2); line-height: 1.5; margin-bottom: 8px; }
.logo-palette { display: flex; gap: 6px; margin-bottom: 10px; }
.swatch { width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--border); }
.logo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-mini { background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text2); font-size: 11px; font-weight: 600; padding: 6px 12px; border-radius: var(--radius-sm); cursor: pointer; }
.btn-mini:hover { color: var(--text); border-color: var(--accent); }

#notif-banner {
  display: none; position: fixed; bottom: 1.5rem; right: 1.5rem; background: var(--bg-elevated); border: 1px solid var(--accent);
  border-radius: var(--radius-md); padding: 14px 18px; max-width: 320px; z-index: 999; animation: slide-in 0.3s ease; box-shadow: var(--shadow-lg);
}
@keyframes slide-in { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.notif-title { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.notif-body { font-size: 12px; color: var(--text2); line-height: 1.5; }
.notif-close { position: absolute; top: 8px; right: 10px; background: none; border: none; color: var(--text3); cursor: pointer; font-size: 16px; line-height: 1; }

.error-box { background: var(--red-dim); border: 1px solid rgba(251, 113, 133, 0.25); border-radius: var(--radius-md); padding: 1rem 1.25rem; font-size: 13px; color: var(--red); margin-bottom: 1rem; display: none; }

.footer { text-align: center; padding: 2.5rem 1rem; color: var(--text3); font-size: 12px; border-top: 1px solid var(--border); margin-top: 3.5rem; }

/* ── RESPONSIVE MEDIA QUERIES ── */
@media (max-width: 960px) {
  .workspace-split { grid-template-columns: 1fr; }
  .workspace-mob-tabs { display: flex; }
  .workspace-dossier-panel, .workspace-assistant-panel { max-height: none; height: auto; position: static; }
  .workspace-dossier-panel.mob-hidden, .workspace-assistant-panel.mob-hidden { display: none; }
  .workspace-assistant-panel { height: 580px; }
  .app-nav { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card { max-width: 440px; margin: 0 auto; width: 100%; }
}

@media (max-width: 768px) {
  /* Évite le zoom automatique incontrôlé sur iPhone/Android */
  input[type="text"], input[type="password"], input[type="email"], select, textarea {
    font-size: 16px !important;
    min-height: 48px;
    padding: 12px 14px;
  }

  /* Header compact et équilibré sur mobile */
  .app-header {
    padding: 0 12px;
    height: 56px;
  }
  .pulse-indicator {
    display: none;
  }
  .header-left {
    gap: 8px;
  }
  .header-logo-name {
    font-size: 15px;
  }
  .header-right {
    gap: 6px;
  }
  .btn-pro-badge {
    padding: 6px 10px;
    font-size: 12px;
  }
  #pro-badge-text {
    display: none;
  }
  .header-account {
    padding: 6px 10px;
    font-size: 13px;
    white-space: nowrap;
  }
  .btn-export {
    display: none;
  }

  /* Conteneur principal */
  .app-main {
    padding: 1.25rem 0.85rem 4rem 0.85rem;
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
  }

  /* Recherche d'opportunités adaptée aux mobiles */
  .search-hero-card {
    padding: 1.25rem 1rem 1rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radius-lg);
  }
  .search-hero-title {
    font-size: 21px;
    line-height: 1.3;
  }
  .search-hero-sub {
    font-size: 13.5px;
    margin-bottom: 1rem;
  }
  .search-chips-row {
    gap: 6px;
    margin-bottom: 1rem;
  }
  .search-chip {
    font-size: 12px;
    padding: 5px 11px;
  }
  .search-input-wrapper {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 8px;
  }
  .search-input {
    font-size: 16px !important;
    min-height: 44px;
    padding: 4px 6px;
    width: 100%;
  }
  .btn-search-submit {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 14.5px;
    white-space: normal;
    text-align: center;
    padding: 12px 14px;
  }

  /* Modales parfaitement dimensionnées et lisibles au toucher */
  #pricing-modal, #pro-modal, #settings-modal, #auth-modal, #dashboard-modal {
    padding: 12px 8px;
    align-items: center;
  }
  .modal-box, .dash-box, .pricing-modal-box {
    padding: 1.5rem 1.15rem;
    max-width: 100%;
    width: 100%;
    border-radius: var(--radius-lg);
  }
  .modal-title, .dash-title, .pricing-title {
    font-size: 20px;
    margin-bottom: 1rem;
  }
  .btn-social-auth {
    min-height: 48px;
    font-size: 14.5px;
    padding: 12px 14px;
    gap: 10px;
  }
  .auth-social-divider {
    margin: 1rem 0;
    font-size: 12px;
  }
  .auth-tabs {
    padding: 5px;
    gap: 4px;
    margin-bottom: 1.25rem;
  }
  .auth-tab {
    padding: 10px 8px;
    font-size: 14px;
  }
  .field-label {
    font-size: 13px;
    margin-bottom: 6px;
  }
  .field-hint, #auth-password-hint {
    font-size: 12.5px;
    margin-top: 5px;
  }
  .btn-start {
    min-height: 50px;
    font-size: 16px;
    font-weight: 700;
  }
  .auth-switch-note {
    font-size: 13px;
    margin-top: 1.25rem;
  }

  /* Écran d'accueil Setup */
  #setup-screen {
    padding: 1.5rem 0.75rem;
  }
  .setup-box {
    padding: 1.75rem 1.15rem;
    border-radius: var(--radius-lg);
    max-width: 100%;
    width: 100%;
  }
  .setup-title {
    font-size: 24px;
    line-height: 1.25;
  }
  .setup-sub {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 600px) {
  .revenue-strip {
    grid-template-columns: 1fr 1fr;
  }
  .rev-cell {
    padding: 0.85rem 1rem;
  }
  .rev-cell:nth-child(2) { border-right: none; }
  .rev-cell:nth-child(3) { border-top: 1px solid var(--border); }
  .rev-val { font-size: 14.5px; }
  .finance-grid { grid-template-columns: 1fr; }
  .app-main { padding: 1.25rem 0.6rem 4rem 0.6rem; }
  .bmc-grid, .swot-grid, .scenario-grid, .dash-grid { grid-template-columns: 1fr !important; }
  .biz-grid { grid-template-columns: 1fr !important; }
  .idea-card-header { padding: 1rem; gap: 0.75rem; }
  .idea-name { font-size: 16.5px; }
  .idea-tagline { font-size: 13px; }
}

