/* Commercial landing page — visual language aligned with divers_sources/index.htm */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.landing {
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

.landing a { color: #357abd; }
.landing a:hover { color: #ff6b35; }

#fonctionnement,
#fonctionnalites,
#integration {
  scroll-margin-top: 88px;
}

/* Header */
.landing-header {
  background: #fff;
  padding: 16px clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 900;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #222;
  text-decoration: none;
}

.landing-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  flex-wrap: wrap;
}

.landing-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: #444;
  transition: color 0.2s;
}

.landing-nav a:hover { color: #ff6b35; }

.landing-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.landing-github {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #24292f !important;
  text-decoration: none;
  border: 1px solid #d0d7de;
  background: #f6f8fa;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.landing-github:hover {
  background: #fff;
  border-color: #8c959f;
  color: #ff6b35 !important;
}

.landing-github-icon {
  flex-shrink: 0;
}

.landing-cta-header {
  background: #ff6b35;
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
  transition: background 0.25s, transform 0.2s;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}

.landing-cta-header:hover {
  background: #e55a2b;
  transform: translateY(-2px);
  color: #fff !important;
}

/* Hero */
.landing-hero {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  padding: clamp(48px, 8vw, 88px) clamp(24px, 5vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
  color: #fff;
  min-height: min(520px, 85vh);
}

.landing-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.landing-hero-lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.95;
  margin-bottom: 1.75rem;
  max-width: 32rem;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.landing-cta-primary {
  background: #4caf50;
  color: #fff;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.25s, transform 0.2s;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.landing-cta-primary:hover {
  background: #43a047;
  transform: translateY(-2px);
  color: #fff;
}

.landing-cta-secondary {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.landing-cta-secondary:hover { opacity: 0.9; color: #fff; }

/* Chat mockup in hero */
.landing-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.landing-chat-mock {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  color: #333;
}

.landing-chat-mock-header {
  background: linear-gradient(180deg, #f8f9fc 0%, #eef0f5 100%);
  padding: 16px 18px;
  border-bottom: 1px solid #e5e8ef;
}

.landing-chat-mock-header strong {
  display: block;
  font-size: 1rem;
  color: #222;
}

.landing-chat-mock-header span {
  font-size: 0.8rem;
  color: #666;
}

.landing-chat-mock-body {
  padding: 16px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fafafa;
}

.landing-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  animation: landing-fade-in 0.6s ease backwards;
}

.landing-bubble-user {
  align-self: flex-end;
  background: #635bff;
  color: #fff;
  border-bottom-right-radius: 4px;
  animation-delay: 0.1s;
}

.landing-bubble-bot {
  align-self: flex-start;
  background: #eef0ff;
  color: #222;
  border-bottom-left-radius: 4px;
  animation-delay: 0.35s;
}

.landing-bubble-human {
  align-self: flex-start;
  background: #e8f5e9;
  color: #1b5e20;
  border-left: 3px solid #2e7d32;
  border-bottom-left-radius: 4px;
  animation-delay: 0.6s;
}

.landing-bubble-human small {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  color: #2e7d32;
}

.landing-chat-mock-input {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid #e5e8ef;
  background: #fff;
}

.landing-chat-mock-input span {
  flex: 1;
  background: #f0f0f0;
  border-radius: 8px;
  height: 36px;
}

.landing-chat-mock-input em {
  width: 72px;
  height: 36px;
  background: #635bff;
  border-radius: 8px;
  font-style: normal;
}

@keyframes landing-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.landing-section {
  padding: clamp(56px, 8vw, 88px) clamp(24px, 5vw, 48px);
}

.landing-section--gray { background: #f5f5f5; }
.landing-section--blue {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  text-align: center;
}

.landing-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.landing-section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #222;
}

.landing-section-title-icon { font-size: 2rem; }

.landing-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.landing-step-card {
  background: #fff;
  padding: 36px 28px;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.landing-step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.landing-step-icon {
  font-size: 2.75rem;
  margin-bottom: 16px;
  line-height: 1;
}

.landing-step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: #222;
}

.landing-step-card p {
  color: #666;
  font-size: 0.95rem;
}

/* Features split */
.landing-split {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}

.landing-features-list {
  list-style: none;
}

.landing-features-list li {
  font-size: 1.05rem;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #333;
}

.landing-features-list li::before {
  content: "✓";
  color: #4caf50;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.landing-tag-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.landing-tag {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #357abd;
  box-shadow: 0 2px 10px rgba(74, 144, 226, 0.12);
  border: 1px solid #e3f2fd;
  text-align: center;
}

/* Integration block */
.landing-integration {
  max-width: 720px;
  margin: 0 auto;
}

.landing-integration p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 28px;
  line-height: 1.7;
}

.landing-code {
  background: #1a1d23;
  color: #c8e6c9;
  padding: 20px 24px;
  border-radius: 12px;
  text-align: left;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  overflow-x: auto;
  margin-bottom: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.landing-code .kw { color: #8ab4f8; }
.landing-code .str { color: #f9ab00; }

.landing-cta-offer {
  background: #ff6b35;
  color: #fff;
  padding: 18px 40px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.25s, transform 0.2s;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.landing-cta-offer:hover {
  background: #e55a2b;
  transform: translateY(-2px);
  color: #fff;
}

.landing-footer {
  text-align: center;
  padding: 28px 24px;
  background: #dff1ff;
  font-size: 0.85rem;
  color: #666;
}

.landing-footer a {
  color: inherit;
  text-decoration: none;
  margin: 0 10px;
}

.landing-footer a:hover { color: #357abd; }

/* Widget FAB matches brand */
.chat-widget-root .chat-widget-fab {
  background: #ff6b35;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.45);
}

.chat-widget-root .chat-widget-fab:hover {
  background: #e55a2b;
}

@media (max-width: 900px) {
  .landing-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .landing-hero-lead { margin-left: auto; margin-right: auto; }
  .landing-hero-actions { justify-content: center; }
  .landing-split { grid-template-columns: 1fr; }
  .landing-nav { display: none; }
}

@media (max-width: 520px) {
  .landing-tag-grid { grid-template-columns: 1fr; }
}
