/* EXCEPTION: home.css ~240L — landing page multi-sections, découpage nuirait à la cohérence visuelle */

/* ══ HERO ════════════════════════════════════════════════════ */
#hero {
  background-color: var(--bg-main);
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  padding: 96px 0 88px;
  position: relative; overflow: hidden;
}
#hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(107,70,193,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-card); color: #a78bfa;
  border: 1px solid var(--brand); border-radius: 99px;
  padding: 5px 16px; font-size: .82rem; font-weight: 600; margin-bottom: 28px;
}
#hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.12; letter-spacing: -.8px; color: var(--text); }
#hero h1 span { background: linear-gradient(90deg, #a78bfa, #818cf8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
#hero .lead { color: var(--muted); font-size: 1.08rem; max-width: 520px; line-height: 1.75; }

.hero-mockup {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 40px rgba(107,70,193,.1);
}
.hero-chat-header {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  padding: 14px 18px; display: flex; align-items: center; gap: 10px;
}
.hero-chat-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
}
.hero-chat-msgs { padding: 16px; background: #0D0D18; display: flex; flex-direction: column; gap: 10px; }
.hero-msg { max-width: 84%; padding: 10px 14px; border-radius: 14px; font-size: .83rem; line-height: 1.55; }
.hero-msg-bot  { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; align-self: flex-start; }
.hero-msg-user { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }

/* ══ DÉMO ═════════════════════════════════════════════════════ */
#demo { padding: 80px 0; background: var(--bg-main); }
.demo-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
  max-width: 420px; width: 100%;
}
.demo-header {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  padding: 16px 20px; display: flex; align-items: center; gap: 12px;
}
.demo-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.demo-messages {
  min-height: 290px; max-height: 330px; overflow-y: auto;
  padding: 16px; background: #0D0D18;
  display: flex; flex-direction: column; gap: 10px;
}
.demo-messages::-webkit-scrollbar { width: 4px; }
.demo-messages::-webkit-scrollbar-track { background: transparent; }
.demo-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: .88rem; line-height: 1.55; word-break: break-word; }
.msg-bot  { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg-user { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.typing { align-self: flex-start; background: var(--bg-card); border: 1px solid var(--border); padding: 10px 16px; border-radius: 16px; border-bottom-left-radius: 4px; display: none; }
.typing.visible { display: flex; align-items: center; gap: 4px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: bounce 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce { 0%,80%,100%{transform:translateY(0)} 40%{transform:translateY(-6px)} }
.demo-input-row {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-top: 1px solid var(--border); background: var(--bg-card);
}
.demo-input {
  flex: 1; background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 24px; padding: 9px 16px; font-size: .88rem;
  outline: none; color: var(--text); font-family: inherit; transition: border-color .2s;
}
.demo-input::placeholder { color: #4b5563; }
.demo-input:focus { border-color: var(--brand); }
.demo-send {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: opacity .2s, transform .15s; flex-shrink: 0;
}
.demo-send:hover { opacity: .85; transform: scale(1.05); }
.demo-send:disabled { opacity: .35; cursor: default; transform: none; }
.demo-send svg { fill: #fff; }
.demo-suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px 0; background: var(--bg-card); }
.demo-suggestions button {
  background: rgba(107,70,193,.15); color: #a78bfa;
  border: 1px solid rgba(107,70,193,.3); border-radius: 20px;
  padding: 5px 12px; font-size: .8rem; cursor: pointer; font-weight: 500;
  transition: background .15s, border-color .15s; font-family: inherit;
}
.demo-suggestions button:hover { background: rgba(107,70,193,.3); border-color: var(--brand); }
.demo-disclaimer { text-align: center; font-size: .76rem; color: #4b5563; padding: 10px 14px 14px; background: var(--bg-card); }
.niche-tab { padding: 11px 24px; border-radius: 50px; border: 1px solid #1E1E35; background: #13131F; color: #9CA3AF; font-size: .9rem; font-weight: 500; cursor: pointer; transition: all .2s; font-family: inherit; }
.niche-tab:hover { border-color: #6B46C1; color: #F8F8FF; }
.niche-tab.active { background: linear-gradient(135deg, #6B46C1, #4F46E5); border-color: transparent; color: #fff; box-shadow: 0 0 20px rgba(107,70,193,.4); }

/* ══ COMMENT ÇA MARCHE ════════════════════════════════════════ */
#comment-ca-marche { padding: 80px 0; background: var(--bg-alt); }
.step-number {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff; font-size: 1.15rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 4px 20px var(--brand-glow);
}
.step-connector { width: 2px; height: 48px; background: var(--border); margin: 0 auto; }
#comment-ca-marche h5 { color: var(--text); }
#comment-ca-marche p  { color: var(--muted); }

/* ══ FAQ ══════════════════════════════════════════════════════ */
#faq { padding: 80px 0; background: var(--bg-main); }
.accordion {
  --bs-accordion-bg: var(--bg-card);
  --bs-accordion-border-color: var(--border);
  --bs-accordion-btn-color: var(--text);
  --bs-accordion-btn-bg: var(--bg-card);
  --bs-accordion-active-color: #a78bfa;
  --bs-accordion-active-bg: #1A1035;
  --bs-accordion-color: var(--muted);
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%239CA3AF'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23a78bfa'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.accordion-item {
  background: var(--bg-card); border: 1px solid var(--border) !important;
  border-radius: 12px !important; margin-bottom: 10px; overflow: hidden;
}
.accordion-button { font-family: inherit; font-weight: 600; font-size: .92rem; background: var(--bg-card); color: var(--text); }
.accordion-button:not(.collapsed) { background: #1A1035; color: #a78bfa; box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(107,70,193,.2); }
.accordion-body { background: var(--bg-card); color: var(--muted); font-size: .9rem; line-height: 1.7; }

/* ══ CONTACT ══════════════════════════════════════════════════ */
#contact { background: var(--bg-alt); padding: 80px 0; }
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 48px 40px; max-width: 680px; margin: 0 auto;
}
.form-label { color: #F8F8FF; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.form-control, .form-select {
  background: #1E1E35; border: 1px solid #3D3D60;
  border-radius: 8px; padding: 11px 16px; font-size: .9rem;
  color: #F8F8FF; font-family: inherit; transition: border-color .2s;
}
.form-control::placeholder, .form-select::placeholder { color: #6B7280; }
.form-control:focus, .form-select:focus {
  background: #1E1E35; color: #F8F8FF;
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(107,70,193,.15);
}
.form-select option { background: #1E1E35; color: #F8F8FF; }
.btn-submit {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff; border: none; border-radius: 8px;
  padding: 14px 40px; font-size: .95rem; font-weight: 700; width: 100%;
  font-family: inherit; transition: opacity .15s, transform .15s;
}
.btn-submit:hover { opacity: .9; transform: translateY(-1px); }
@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }
#form-success {
  display: none; background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.3);
  border-radius: 12px; padding: 20px; text-align: center; color: #4ade80; font-weight: 600;
}

/* ══ SECTIONS RESTANTES ═══════════════════════════════════════ */
#pilliers { padding: 72px 0; background: var(--bg-alt); border-top: 1px solid var(--border); }
#differenciateur { background: var(--bg-alt); padding: 80px 0; }
#niches { background: var(--bg-main); padding: 80px 0; }
#tarifs { padding: 80px 0; background: var(--bg-alt); }
#temoignages { padding: 80px 0; background: var(--bg-main); }
