/* ============================================
   YAKAYALLER — Stylesheet
   Thèmes clair (jour) / sombre (nuit) + police Genspark
   ============================================ */

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

/* Thème SOMBRE (par défaut la nuit) */
:root, :root[data-theme="dark"] {
  --bg: #0a0a0f;
  --bg-2: #111119;
  --bg-3: #16161f;
  --bg-card: #1a1a25;
  --bg-hover: #22222e;
  --border: #2a2a3a;
  --border-light: #33334a;
  --text: #e8e8f0;
  --text-2: #9999b0;
  --text-3: #666680;
  --accent: #6c5ce7;
  --accent-2: #00cec9;
  --accent-3: #fd79a8;
  --success: #00b894;
  --warning: #fdcb6e;
  --danger: #e74c3c;
  --gradient: linear-gradient(135deg, #6c5ce7, #00cec9);
  --gradient-2: linear-gradient(135deg, #fd79a8, #fdcb6e);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,0.3);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --navbar-bg: rgba(10,10,15,0.8);
}

/* Thème CLAIR (par défaut le jour, style Genspark) */
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #fafafa;
  --bg-3: #f4f4f6;
  --bg-card: #ffffff;
  --bg-hover: #f0f0f4;
  --border: #e5e5ea;
  --border-light: #d5d5dc;
  --text: #0a0a0f;
  --text-2: #4a4a55;
  --text-3: #8a8a95;
  --accent: #5a4bd8;
  --accent-2: #0aa9a4;
  --accent-3: #e857a0;
  --gradient: linear-gradient(135deg, #5a4bd8, #0aa9a4);
  --shadow: 0 8px 32px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.10);
  --navbar-bg: rgba(255,255,255,0.85);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-feature-settings: 'cv02','cv03','cv04','cv11','ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter Tight', 'Inter', -apple-system, sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.hero-title { letter-spacing: -0.03em; }

/* Toggle thème */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-3); color: var(--text); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.theme-toggle:hover { background: var(--bg-hover); transform: rotate(15deg); }

/* Popup liste d'attente */
.waitlist-modal {
  position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn 0.25s ease;
}
.waitlist-container {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px; max-width: 480px; width: 100%; position: relative;
  box-shadow: var(--shadow-lg); text-align: center;
}
.waitlist-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
  border-radius: 50%; border: none; background: var(--bg-3); color: var(--text-2);
  font-size: 14px; cursor: pointer; transition: var(--transition);
}
.waitlist-close:hover { background: var(--danger); color: #fff; }
.waitlist-icon { font-size: 56px; margin-bottom: 12px; }
.waitlist-container h3 { font-size: 24px; margin-bottom: 12px; color: var(--text); }
.waitlist-container p { color: var(--text-2); margin-bottom: 24px; font-size: 15px; line-height: 1.6; }
.waitlist-perk { margin-top: 16px; font-size: 13px; color: var(--accent-2); font-weight: 600; }

/* Popup crédits (style Genspark) */
.credits-modal {
  position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn 0.25s ease;
}
.credits-container {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px;
  padding: 40px; max-width: 560px; width: 100%; position: relative;
  box-shadow: var(--shadow-lg); text-align: center;
}
.credits-tabs { display: flex; background: var(--bg-3); border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.credits-tab { flex: 1; padding: 12px; background: transparent; border: none; color: var(--text-2); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 8px; transition: var(--transition); position: relative; }
.credits-tab.active { background: var(--bg-card); color: var(--text); box-shadow: var(--shadow); }
.credits-tab-badge { position: absolute; top: -8px; right: 8px; background: var(--gradient); color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 100px; font-weight: 700; }
.credits-panel { display: none; }
.credits-panel.active { display: block; }
.credits-price-block { background: var(--bg-3); border-radius: 12px; padding: 24px; margin-bottom: 16px; text-align: left; }
.credits-price-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.credits-annual-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.credits-annual-toggle .savings { color: var(--accent-2); font-weight: 700; font-size: 11px; letter-spacing: 0.05em; }
.toggle-switch { position: relative; width: 44px; height: 24px; background: var(--border-light); border-radius: 100px; cursor: pointer; transition: var(--transition); }
.toggle-switch.active { background: var(--accent); }
.toggle-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: var(--transition); }
.toggle-switch.active::after { left: 22px; }
.credits-price-big { font-size: 44px; font-weight: 800; color: var(--text); }
.credits-price-suffix { font-size: 15px; color: var(--text-3); margin-left: 8px; }
.credits-select { width: 100%; padding: 12px 16px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: inherit; font-size: 14px; cursor: pointer; }
.credits-info { text-align: left; font-size: 14px; color: var(--text-2); margin-bottom: 20px; padding-left: 20px; }
.credits-info li { margin: 6px 0; }
.credits-info strong { color: var(--text); }
.credits-actions { display: flex; gap: 12px; }
.credits-actions button { flex: 1; }

/* Toggle mode Interview / Direct */
.mode-toggle { display: flex; background: var(--bg-3); border-radius: 100px; padding: 3px; gap: 2px; }
.mode-btn { padding: 6px 12px; background: transparent; border: none; color: var(--text-2); font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; border-radius: 100px; transition: var(--transition); }
.mode-btn.active { background: var(--gradient); color: #fff; box-shadow: var(--shadow); }
.mode-btn:hover:not(.active) { color: var(--text); }
.ai-mode-toggle .mode-btn.active { background: linear-gradient(135deg, #fdcb6e, #e17055); box-shadow: var(--shadow); }
.ai-mode-toggle .mode-btn[data-aimode="eco"].active { background: linear-gradient(135deg, #00b894, #00cec9); }

/* ========== PIÈCES JOINTES CHAT ========== */
.chat-attach {
  background: var(--bg-3); border: 1px solid var(--border); color: var(--text-2);
  width: 46px; height: 46px; border-radius: 12px; font-size: 19px; cursor: pointer;
  transition: var(--transition); flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.chat-attach:hover { color: var(--accent-2); border-color: var(--accent); transform: translateY(-2px); }
.chat-attach.uploading { opacity: 0.5; pointer-events: none; animation: pulse 1s infinite; }
.chat-attachments {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px;
}
.chat-attachment-chip {
  display: flex; align-items: center; gap: 8px; background: var(--bg-3);
  border: 1px solid var(--accent); border-radius: 10px; padding: 6px 12px;
  font-size: 13px; color: var(--text); max-width: 260px;
}
.chat-attachment-chip .att-icon { font-size: 16px; }
.chat-attachment-chip .att-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-attachment-chip .att-remove {
  background: none; border: none; color: var(--text-2); cursor: pointer;
  font-size: 14px; padding: 2px; border-radius: 4px;
}
.chat-attachment-chip .att-remove:hover { color: #e74c3c; }
.attachment-msg-tag {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(108,92,231,0.15);
  border: 1px solid var(--accent); border-radius: 8px; padding: 4px 10px;
  font-size: 12px; color: var(--accent-2); margin-bottom: 8px; font-weight: 600;
}

/* ========== MODALE GÉNÉRIQUE ========== */
.generic-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; z-index: 3000;
  padding: 20px; animation: fadeIn 0.2s ease;
}
.generic-modal-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; max-width: 540px; width: 100%; position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4); max-height: 85vh; overflow-y: auto;
}
.generic-modal-close { position: absolute; top: 14px; right: 14px; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

/* Aperçu teaser document (montre ce que le Premium obtient) */
.teaser-doc {
  background: #fff; color: #222; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  margin: 4px 0;
}
.teaser-doc-header {
  background: linear-gradient(135deg, #6C5CE7, #00CEC9); color: #fff;
  font-weight: 700; font-size: 13px; padding: 10px 16px;
}
.teaser-doc-body {
  padding: 16px; font-size: 12.5px; line-height: 1.6; white-space: pre-wrap;
  color: #333; max-height: 180px; overflow: hidden; position: relative;
}
.teaser-doc-body::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50px;
  background: linear-gradient(transparent, #fff);
}
.teaser-doc-footer {
  background: #f6f6fb; color: #6C5CE7; font-size: 12px; font-weight: 700;
  padding: 8px 16px; border-top: 1px solid #eee;
}

/* ========== EXPORTS PDF/WORD/EXCEL ========== */
.export-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border);
}
.export-label { font-size: 12px; color: var(--text-2); font-weight: 600; }
.export-btn {
  background: var(--bg-3); border: 1px solid var(--border); color: var(--text);
  padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: var(--transition); font-family: inherit;
}
.export-btn:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-1px); }
.export-btn-locked { border-style: dashed; color: var(--warning); }
.export-btn-locked:hover { border-color: var(--warning); color: var(--warning); }

/* ========== SCHÉMAS MERMAID ========== */
.mermaid-diagram {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; margin: 14px 0; text-align: center; overflow-x: auto;
}
.mermaid-diagram svg { max-width: 100%; height: auto; }
.mermaid-error { color: var(--warning); font-size: 13px; }

/* ========== MICRO / DICTÉE VOCALE ========== */
.chat-mic { position: relative; }
.chat-mic.recording {
  background: rgba(231,76,60,0.2); border-color: #e74c3c; color: #e74c3c;
  animation: micPulse 1.2s ease-in-out infinite;
}
@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231,76,60,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(231,76,60,0); }
}

/* ========== BANDEAU UPGRADE SIDEBAR ========== */
.upgrade-banner {
  background: linear-gradient(135deg, rgba(108,92,231,0.2), rgba(0,206,201,0.15));
  border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 24px; margin: 40px auto 0; max-width: 1100px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.upgrade-banner-text h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.upgrade-banner-text p { color: var(--text-2); font-size: 14px; }
.upgrade-banner .btn { white-space: nowrap; }

/* Barre profil dans le chat */
.chat-profile-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px; background: var(--bg-3); border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--text-2); flex-shrink: 0;
}
.chat-profile-edit {
  background: transparent; border: 1px solid var(--border-light); color: var(--accent-2);
  padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: var(--transition);
}
.chat-profile-edit:hover { background: var(--accent); color: #fff; border-color: transparent; }

/* Popup profil */
.profile-modal {
  position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,0.75);
  backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn 0.25s ease;
}
.profile-container {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px;
  padding: 40px; max-width: 640px; width: 100%; position: relative;
  box-shadow: var(--shadow-lg); max-height: 92vh; overflow-y: auto;
}
.profile-header { text-align: center; margin-bottom: 28px; }
.profile-icon { font-size: 56px; display: block; margin-bottom: 12px; }
.profile-header h3 { font-size: 26px; margin-bottom: 10px; color: var(--text); }
.profile-header p { color: var(--text-2); font-size: 15px; line-height: 1.6; max-width: 480px; margin: 0 auto; }
.profile-header strong { color: var(--accent-2); }
.profile-step { display: none; }
.profile-step.active { display: block; animation: fadeIn 0.25s ease; }
.profile-step h4 { font-size: 18px; margin-bottom: 16px; color: var(--text); text-align: center; }
.profile-types { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.profile-type-btn {
  padding: 16px 20px; background: var(--bg-3); border: 2px solid var(--border);
  border-radius: 12px; text-align: left; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: 16px; font-family: inherit; color: var(--text);
}
.profile-type-btn:hover { border-color: var(--accent); background: var(--bg-hover); transform: translateX(4px); }
.profile-type-icon { font-size: 28px; }
.profile-type-btn strong { display: block; font-size: 15px; margin-bottom: 2px; color: var(--text); }
.profile-type-btn small { font-size: 12px; color: var(--text-3); }
.profile-skip { text-align: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.profile-field { margin-bottom: 12px; }
.profile-field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.profile-field input, .profile-field select {
  width: 100%; padding: 12px 14px; background: var(--bg-3); border: 1px solid var(--border-light);
  border-radius: 10px; color: var(--text); font-family: inherit; font-size: 14px;
  transition: var(--transition);
}
.profile-field input:focus, .profile-field select:focus { outline: none; border-color: var(--accent); background: var(--bg-2); }
.profile-fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 500px) { .profile-fields-row { grid-template-columns: 1fr; } }
.profile-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }

/* Compteur crédits navbar */
.credits-counter { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 100px; font-size: 13px; color: var(--text-2); cursor: pointer; transition: var(--transition); }
.credits-counter:hover { border-color: var(--accent); color: var(--text); }
.credits-counter .credits-icon { color: var(--accent-2); font-size: 15px; }
.credits-counter.low { border-color: var(--warning); color: var(--warning); }
.credits-counter.critical { border-color: var(--danger); color: var(--danger); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }
a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

.hidden { display: none !important; }

/* ========== ESPACE MEMBRE / MON COMPTE ========== */
.hero-badge-member { background: linear-gradient(135deg, rgba(108,92,231,0.25), rgba(0,206,201,0.25)); border-color: var(--accent); color: var(--accent-2); font-weight: 600; }
.account-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 32px; margin-bottom: 20px; transition: var(--transition);
}
.account-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.account-card-head h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.account-sub { color: var(--text-2); font-size: 14px; }
.account-status {
  background: rgba(0,206,201,0.15); color: var(--accent-2); font-size: 13px; font-weight: 700;
  padding: 5px 14px; border-radius: 20px; border: 1px solid rgba(0,206,201,0.3); white-space: nowrap;
}
.account-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--border); font-size: 15px; flex-wrap: wrap;
}
.account-row strong { color: var(--text); }
.account-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.account-note { color: var(--text-2); font-size: 13px; margin-top: 14px; line-height: 1.5; }
@media (max-width: 640px) { .account-card { padding: 20px; } .account-actions .btn { width: 100%; } }

/* Pages */
.page { display: none; }
.page.active { display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 15px; cursor: pointer; border: none; transition: var(--transition);
  white-space: nowrap; font-family: inherit;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 4px 20px rgba(108,92,231,0.3);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(108,92,231,0.5); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }
.btn-ghost {
  background: transparent; color: var(--text); border: 1px solid var(--border-light);
}
.btn-ghost:hover { background: var(--bg-hover); border-color: var(--accent); }

/* Navbar */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,15,0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent; transition: var(--transition);
}
#navbar.scrolled { border-bottom-color: var(--border); background: rgba(10,10,15,0.95); }
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; cursor: pointer; }
.logo-icon { font-size: 24px; }
.logo-text .accent { color: var(--accent-2); }
.logo-text .tld { color: var(--text-3); font-weight: 500; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-2); font-size: 14px; font-weight: 500; transition: var(--transition); cursor: pointer; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.user-badge {
  display: flex; align-items: center; gap: 10px; padding: 6px 14px;
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 20px; font-size: 13px;
}
.badge-plan { color: var(--text-3); }
.badge-credits { color: var(--accent-2); font-weight: 600; }

/* Hero */
.hero { position: relative; padding: 160px 24px 100px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35;
  animation: float 20s infinite ease-in-out;
}
.orb-1 { width: 500px; height: 500px; background: var(--accent); top: -100px; left: -100px; }
.orb-2 { width: 400px; height: 400px; background: var(--accent-2); bottom: -50px; right: -50px; animation-delay: -7s; }
.orb-3 { width: 300px; height: 300px; background: var(--accent-3); top: 40%; left: 50%; animation-delay: -14s; }
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(50px,-30px) scale(1.1); }
  66% { transform: translate(-30px,50px) scale(0.9); }
}
.hero-content { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px;
  background: rgba(108,92,231,0.15); border: 1px solid rgba(108,92,231,0.3);
  border-radius: 100px; font-size: 14px; font-weight: 500; color: var(--text-2); margin-bottom: 32px;
}
.pulse-dot {
  width: 8px; height: 8px; background: var(--accent-2); border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,206,201,0.6); }
  50% { box-shadow: 0 0 0 10px rgba(0,206,201,0); }
}
.hero-title { font-size: clamp(36px, 6vw, 64px); font-weight: 800; line-height: 1.15; margin-bottom: 24px; letter-spacing: -0.02em; }
.gradient-text {
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.gradient-text-2 {
  background: var(--gradient-2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle { font-size: 19px; color: var(--text-2); max-width: 700px; margin: 0 auto 40px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 32px; font-weight: 800; color: var(--text); }
.stat-label { font-size: 14px; color: var(--text-3); }

/* Sections */
.section { padding: 100px 24px; }
.section-alt { background: var(--bg-2); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-tag {
  display: inline-block; padding: 6px 16px; background: rgba(108,92,231,0.15);
  border-radius: 100px; font-size: 13px; font-weight: 600; color: var(--accent);
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em;
}
.section-header h2 { font-size: clamp(28px,4vw,42px); font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.section-header p { font-size: 18px; color: var(--text-2); }

/* Page header (Contact, Privacy, Terms) */
.page-header { text-align: center; margin: 80px 0 50px; }
.page-header h1 { font-size: clamp(32px,5vw,48px); font-weight: 800; margin-bottom: 16px; }
.page-header p { color: var(--text-2); font-size: 17px; }

/* Specialists grid */
.specialists-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(360px,1fr));
  gap: 24px;
}
.specialist-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: var(--transition); cursor: pointer; position: relative; overflow: hidden;
}
.specialist-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--card-color, var(--accent)); transform: scaleX(0); transform-origin: left; transition: var(--transition);
}
.specialist-card:hover { transform: translateY(-4px); border-color: var(--border-light); box-shadow: var(--shadow); }
.specialist-card:hover::before { transform: scaleX(1); }
.specialist-icon {
  width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 20px; background: rgba(255,255,255,0.05);
}
.specialist-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.specialist-tagline { font-size: 14px; color: var(--text-2); margin-bottom: 16px; font-style: italic; }
.specialist-desc { font-size: 15px; color: var(--text-2); margin-bottom: 20px; }
.specialist-features { list-style: none; margin-bottom: 24px; }
.specialist-features li {
  font-size: 14px; color: var(--text-2); padding: 5px 0; display: flex; align-items: flex-start; gap: 8px;
}
.specialist-features li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
.specialist-lock {
  position: absolute; top: 20px; right: 20px; padding: 4px 12px;
  background: rgba(253,121,168,0.15); border: 1px solid rgba(253,121,168,0.3);
  border-radius: 100px; font-size: 12px; font-weight: 600; color: var(--accent-3);
}
.specialist-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 12px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px;
  background: var(--bg-hover); color: var(--text); border: 1px solid var(--border-light);
  transition: var(--transition); cursor: pointer;
}
.specialist-card:hover .specialist-btn { background: var(--card-color, var(--accent)); color: #fff; border-color: transparent; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.step-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; text-align: center; position: relative;
}
.step-num { font-size: 48px; font-weight: 900; color: var(--bg-hover); position: absolute; top: 12px; right: 20px; }
.step-icon { font-size: 40px; margin-bottom: 20px; }
.step-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.step-card p { color: var(--text-2); font-size: 15px; }

/* Chat modal — plein écran responsive */
.chat-modal {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center;
  padding: 16px; animation: fadeIn 0.25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.chat-container {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 20px;
  width: 95vw; max-width: 1600px; height: calc(100vh - 16px);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}
@media (max-width: 768px) {
  .chat-modal { padding: 0; }
  .chat-container { border-radius: 0; height: 100vh; max-width: 100%; }
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.chat-header-info { display: flex; align-items: center; gap: 14px; }
.chat-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; background: rgba(255,255,255,0.05);
}
.chat-header-info h3 { font-size: 18px; font-weight: 700; }
.chat-tagline { font-size: 13px; color: var(--text-3); }
.chat-header-actions { display: flex; align-items: center; gap: 16px; }
.chat-credits { font-size: 13px; color: var(--accent-2); font-weight: 600; }
.chat-close {
  width: 36px; height: 36px; border-radius: 50%; background: var(--bg-hover);
  border: none; color: var(--text-2); font-size: 16px; cursor: pointer; transition: var(--transition);
}
.chat-close:hover { background: var(--danger); color: #fff; }

.chat-examples {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 24px;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.chat-example-btn {
  padding: 6px 14px; background: var(--bg-3); border: 1px solid var(--border-light);
  border-radius: 100px; font-size: 13px; color: var(--text-2); cursor: pointer; transition: var(--transition); font-family: inherit;
}
.chat-example-btn:hover { background: var(--accent); color: #fff; border-color: transparent; }

.chat-messages { flex: 1; overflow-y: auto; padding: 32px 40px; display: flex; flex-direction: column; gap: 20px; max-width: 1100px; margin: 0 auto; width: 100%; }
@media (max-width: 768px) { .chat-messages { padding: 20px 16px; } }
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

.chat-welcome { text-align: center; padding: 40px 20px; margin: auto; }
.chat-welcome-icon { font-size: 48px; display: block; margin-bottom: 16px; }
.chat-welcome h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.chat-welcome p { color: var(--text-2); }

.message { display: flex; gap: 12px; max-width: 100%; animation: msgIn 0.3s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.message.user { margin-left: auto; flex-direction: row-reverse; }
.message-avatar {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; background: var(--bg-3);
}
.message.assistant .message-avatar { background: rgba(108,92,231,0.2); }
.message.user .message-avatar { background: rgba(0,206,201,0.2); }
.message-bubble {
  padding: 14px 18px; border-radius: 16px; font-size: 15px; line-height: 1.6;
  word-wrap: break-word; overflow-wrap: break-word;
}
.message.assistant .message-bubble { background: var(--bg-3); border: 1px solid var(--border); border-top-left-radius: 4px; }
.message.user .message-bubble { background: var(--gradient); color: #fff; border-top-right-radius: 4px; }
.message-bubble h1, .message-bubble h2, .message-bubble h3 { margin: 12px 0 8px; font-weight: 700; }
.message-bubble h1 { font-size: 20px; }
.message-bubble h2 { font-size: 18px; }
.message-bubble h3 { font-size: 16px; }
.message-bubble ul, .message-bubble ol { margin: 8px 0; padding-left: 24px; }
.message-bubble li { margin: 6px 0; display: list-item; line-height: 1.6; }
.message-bubble p { margin: 8px 0; }
.message-bubble code {
  background: var(--bg); padding: 1px 6px; border-radius: 5px; font-size: 0.9em;
  font-family: 'SF Mono', 'Monaco', monospace; color: var(--accent-2);
  display: inline; line-height: 1.4; vertical-align: baseline;
}
.message-bubble pre {
  background: var(--bg); padding: 16px; border-radius: 10px; overflow-x: auto;
  margin: 12px 0; border: 1px solid var(--border);
}
.message-bubble pre code { background: none; padding: 0; color: var(--text); }
.message-bubble strong { color: var(--text); font-weight: 700; }
.message.user .message-bubble strong { color: #fff; }
.message-bubble blockquote {
  border-left: 3px solid var(--accent); padding-left: 14px; margin: 10px 0;
  color: var(--text-2); font-style: italic;
}
.message-bubble table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.message-bubble th, .message-bubble td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.message-bubble th { background: var(--bg); font-weight: 600; }
.message-bubble a { color: var(--accent-2); text-decoration: underline; }

.typing-indicator { display: flex; gap: 4px; padding: 8px 0; }
.typing-indicator span {
  width: 8px; height: 8px; background: var(--text-3); border-radius: 50%; animation: typing 1.4s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%,60%,100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-8px); opacity: 1; }
}

.chat-input-area { padding: 16px 24px 20px; border-top: 1px solid var(--border); flex-shrink: 0; max-width: 1100px; margin: 0 auto; width: 100%; }
.chat-input-wrapper { display: flex; gap: 12px; align-items: flex-end; }
.chat-input {
  flex: 1; background: var(--bg-3); border: 1px solid var(--border-light);
  border-radius: 12px; padding: 12px 16px; color: var(--text); font-size: 15px;
  font-family: inherit; resize: none; min-height: 44px; max-height: 120px;
  transition: var(--transition);
}
.chat-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108,92,231,0.15); }
.chat-send {
  width: 44px; height: 44px; border-radius: 12px; border: none;
  background: var(--gradient); color: #fff; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: var(--transition); flex-shrink: 0;
}
.chat-send:hover:not(:disabled) { transform: scale(1.05); }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; }
.chat-disclaimer { font-size: 12px; color: var(--text-3); text-align: center; margin-top: 10px; }

/* Pricing — 5 plans responsive */
.pricing-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; max-width: 1400px; margin: 0 auto; }
@media (max-width: 1200px) { .pricing-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 768px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px; position: relative; transition: var(--transition); display: flex; flex-direction: column;
}
.pricing-card:hover { transform: translateY(-4px); border-color: var(--border-light); }
.pricing-featured {
  border-color: var(--accent); box-shadow: 0 0 40px rgba(108,92,231,0.2); transform: scale(1.03);
}
.pricing-pro {
  border-color: var(--warning); box-shadow: 0 0 40px rgba(253,203,110,0.15);
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  padding: 6px 18px; background: var(--gradient); border-radius: 100px;
  font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap;
}
.pricing-badge-pro {
  background: linear-gradient(135deg, #fdcb6e, #fd79a8); color: #1a1a25;
}
.pricing-header { text-align: center; margin-bottom: 20px; }
.pricing-header h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.pricing-price { font-size: 32px; font-weight: 800; }
.pricing-price span { font-size: 14px; font-weight: 400; color: var(--text-3); }
.pricing-sub { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.pricing-lock {
  display: inline-block; margin-top: 10px; padding: 4px 12px;
  background: rgba(0,206,201,0.12); border: 1px solid rgba(0,206,201,0.3);
  border-radius: 100px; font-size: 12px; color: var(--accent-2); font-weight: 600;
}
.pricing-price-launch { display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: wrap; }
.price-old { font-size: 22px; color: var(--text-3); text-decoration: line-through; font-weight: 500; }
.price-new { font-size: 52px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.price-suffix { font-size: 15px; color: var(--text-3); font-weight: 500; }
.hero-badge-launch { background: linear-gradient(135deg, rgba(253,203,110,0.2), rgba(253,121,168,0.2)); border-color: rgba(253,203,110,0.4); color: var(--warning); font-weight: 600; }
.manifesto {
  max-width: 800px; margin: 60px auto 0; padding: 40px;
  background: linear-gradient(135deg, rgba(108,92,231,0.08), rgba(0,206,201,0.08));
  border: 1px solid var(--border-light); border-radius: var(--radius); text-align: center;
}
.manifesto h3 { font-size: 20px; margin-bottom: 12px; color: var(--text); }
.manifesto p { color: var(--text-2); font-size: 16px; line-height: 1.75; }
.manifesto strong { color: var(--text); }
.pricing-features { list-style: none; margin-bottom: 20px; flex: 1; }
.pricing-features li { padding: 6px 0; font-size: 13px; color: var(--text-2); border-bottom: 1px solid var(--border); line-height: 1.5; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li strong { color: var(--text); }
.payment-methods { display: flex; justify-content: center; gap: 12px; margin-top: 16px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.pricing-guarantee { text-align: center; margin-top: 40px; color: var(--text-3); font-size: 14px; }

/* Bannière sur-mesure */
.custom-banner {
  margin-top: 48px; padding: 32px;
  background: linear-gradient(135deg, rgba(253,121,168,0.08), rgba(108,92,231,0.08));
  border: 1px solid var(--border-light); border-radius: var(--radius);
}
.custom-banner-content {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.custom-banner-content > div { flex: 1; min-width: 280px; }
.custom-tag {
  display: inline-block; padding: 4px 12px; background: rgba(253,121,168,0.15);
  border: 1px solid rgba(253,121,168,0.3); border-radius: 100px;
  font-size: 12px; color: var(--accent-3); font-weight: 600; margin-bottom: 10px;
}
.custom-banner-content h3 { font-size: 22px; margin-bottom: 8px; color: var(--text); }
.custom-banner-content p { color: var(--text-2); font-size: 15px; line-height: 1.6; max-width: 640px; }
.custom-banner-content strong { color: var(--text); }

/* Formulaire sur-mesure */
.custom-form {
  max-width: 720px; margin: 0 auto; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 40px;
}
.custom-progress { display: flex; gap: 8px; margin-bottom: 32px; }
.custom-progress-step {
  flex: 1; height: 6px; background: var(--border); border-radius: 3px; transition: var(--transition);
}
.custom-progress-step.active { background: var(--gradient); }
.custom-progress-step.done { background: var(--accent-2); }
.custom-step { display: none; }
.custom-step.active { display: block; animation: fadeIn 0.3s ease; }
.custom-step h3 { font-size: 22px; margin-bottom: 8px; }
.custom-step-hint { color: var(--text-3); font-size: 14px; margin-bottom: 24px; }
.custom-option {
  display: block; padding: 14px 18px; background: var(--bg-3); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); margin-bottom: 8px; cursor: pointer;
  transition: var(--transition); font-size: 15px; color: var(--text);
}
.custom-option:hover { border-color: var(--accent); background: var(--bg-hover); }
.custom-option input { margin-right: 12px; accent-color: var(--accent); }
.custom-option input:checked ~ span { color: var(--accent); font-weight: 600; }
.custom-field {
  width: 100%; padding: 14px 18px; background: var(--bg-3); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); color: var(--text); font-family: inherit; font-size: 15px;
  margin-bottom: 16px; transition: var(--transition);
}
.custom-field:focus { outline: none; border-color: var(--accent); background: var(--bg-2); }
.custom-field-lg { min-height: 100px; resize: vertical; }
.custom-nav {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 24px;
}
.custom-success {
  text-align: center; padding: 40px 20px;
}
.custom-success-icon {
  font-size: 64px; display: block; margin-bottom: 16px;
}
.custom-success h3 { font-size: 26px; margin-bottom: 12px; }
.custom-success p { color: var(--text-2); font-size: 16px; max-width: 480px; margin: 0 auto 12px; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 20px 0; background: none; border: none; color: var(--text);
  font-size: 17px; font-weight: 600; cursor: pointer; text-align: left; font-family: inherit;
}
.faq-icon { font-size: 24px; color: var(--accent); transition: var(--transition); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p { padding: 0 0 20px; color: var(--text-2); font-size: 15px; }
.faq-answer a { color: var(--accent-2); text-decoration: underline; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 50px; }
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; text-align: center;
}
.contact-card h3 { font-size: 18px; margin-bottom: 8px; }
.contact-card p { color: var(--text-2); font-size: 14px; margin-bottom: 16px; }
.contact-link { color: var(--accent-2); font-weight: 600; font-size: 15px; }
.contact-link:hover { text-decoration: underline; }
.contact-form-wrap {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px;
}
.contact-form-wrap h3 { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-2); font-weight: 500; }
.contact-form input, .contact-form textarea {
  background: var(--bg-3); border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  padding: 12px 16px; color: var(--text); font-size: 15px; font-family: inherit;
  transition: var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108,92,231,0.15);
}
.form-disclaimer { text-align: center; color: var(--text-3); font-size: 13px; margin-top: 8px; }
.form-disclaimer a { color: var(--accent-2); text-decoration: underline; }

/* Legal content */
.legal-content h2 { font-size: 22px; margin: 32px 0 12px; color: var(--text); }
.legal-content p, .legal-content li { color: var(--text-2); margin-bottom: 12px; line-height: 1.75; }
.legal-content ul { padding-left: 24px; margin-bottom: 16px; }
.legal-content a { color: var(--accent-2); text-decoration: underline; }
.legal-content strong { color: var(--text); }

/* Footer */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-2); margin-top: 12px; font-size: 14px; max-width: 300px; }
.footer-tagline { color: var(--accent-2) !important; font-weight: 600; font-style: italic; margin-top: 8px !important; }
.footer-links h4 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-links a { display: block; color: var(--text-3); font-size: 14px; padding: 5px 0; transition: var(--transition); cursor: pointer; }
.footer-links a:hover { color: var(--accent-2); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 13px; color: var(--text-3); margin: 4px 0; }
.footer-bottom a { color: var(--accent-2); }
.footer-disclaimer { font-size: 12px; opacity: 0.7; margin-top: 8px !important; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 300;
  padding: 16px 24px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 15px; max-width: 400px;
  animation: toastIn 0.3s ease;
}
@keyframes toastIn { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.info { border-color: var(--accent); }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .specialists-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .contact-form-wrap { padding: 24px; }
}
