/* ============================================================
   ON GÈRE IA — Design tokens
   Palette derivee du logo : bleu marine profond + vert franc.
   Display: Sora (geometrique, forte personnalite)
   Corps: Inter
   Utilitaire (prix, stats, labels): IBM Plex Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --navy-950: #0a1220;
  --navy-900: #0f1b2e;
  --navy-800: #16233a;
  --navy-700: #223250;
  --green-600: #0e7c3f;
  --green-500: #17a054;
  --green-400: #2ec46e;
  --green-100: #e4f6ea;
  --bg: #f6f8f7;
  --white: #ffffff;
  --ink: #0e1520;
  --ink-muted: #5c6b78;
  --line: #e2e7e5;

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-950);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-500);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(23, 160, 84, 0.28);
}
.btn-primary:hover { background: var(--green-600); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--navy-950);
  border: 1.5px solid var(--navy-700);
}
.btn-outline:hover { border-color: var(--green-500); color: var(--green-600); transform: translateY(-2px); }
.btn-ghost-light {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,248,247,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 0;
  position: relative;
  flex-wrap: nowrap;
}
.nav-brand { display: flex; align-items: center; gap: 0.55rem; flex-shrink: 0; }
.nav-brand img { width: 34px; height: 34px; }
.nav-brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--navy-950); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a {
  font-size: 0.87rem; font-weight: 500; color: var(--ink-muted);
  transition: color 0.15s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--green-600); }
.nav-cta { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }

/* ===== MENU HAMBURGER MOBILE ===== */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 0 8px;
  flex-shrink: 0;
  order: -1;
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--navy-950);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-burger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  background: radial-gradient(ellipse 90% 70% at 30% 0%, #142a44 0%, var(--navy-950) 62%);
  color: var(--white);
  overflow: hidden;
  padding: 5.5rem 0 6rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  color: var(--white);
  margin-bottom: 1.1rem;
}
.hero h1 .accent { color: var(--green-400); }
.hero p.lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--green-400);
  border-left: 2px solid var(--green-500);
  padding-left: 0.85rem;
}

/* Signature visuelle : reseau de noeuds connectes (echo du logo cerveau/circuit) */
.hero-visual { position: relative; height: 420px; }
.node-field { position: absolute; inset: 0; }
.node {
  position: absolute;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  animation: floatNode 5s ease-in-out infinite;
}
.node .dot {
  width: 54px; height: 54px; border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(46,196,110,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  backdrop-filter: blur(6px);
}
.node .label { font-family: var(--font-mono); font-size: 0.66rem; color: rgba(255,255,255,0.55); }
.node.n1 { top: 4%; left: 8%; animation-delay: 0s; }
.node.n2 { top: 18%; left: 62%; animation-delay: 0.6s; }
.node.n3 { top: 46%; left: 2%; animation-delay: 1.2s; }
.node.n4 { top: 52%; left: 74%; animation-delay: 1.8s; }
.node.n5 { top: 76%; left: 30%; animation-delay: 2.4s; }
.node.n6 { top: 78%; left: 60%; animation-delay: 0.3s; }
.node.center { top: 32%; left: 34%; z-index: 3; }
.node.center .dot {
  width: 84px; height: 84px; border-radius: 20px;
  background: linear-gradient(150deg, var(--green-500), var(--green-600));
  border: none;
  box-shadow: 0 18px 40px rgba(23,160,84,0.4);
  font-size: 2rem;
}
.node-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.node-lines line { stroke: rgba(46,196,110,0.28); stroke-width: 1; stroke-dasharray: 3 5; }

@keyframes floatNode {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .node { animation: none; }
}

/* ===== SECTION SHELLS ===== */
.section { padding: 5rem 0; }
.section-light { background: var(--bg); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy-950); color: var(--white); }
.section-head { max-width: 620px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin-top: 0.7rem; }
.section-head p { color: var(--ink-muted); margin-top: 0.8rem; font-size: 1rem; }
.section-navy .section-head p { color: rgba(255,255,255,0.65); }

.divider-nodes {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 0 auto 1rem;
  width: fit-content;
}
.divider-nodes span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green-500);
}
.divider-nodes .bar { width: 40px; height: 1px; background: var(--line); }

/* ===== QUI SOMMES-NOUS ===== */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.about-card {
  background: var(--navy-950);
  border-radius: 20px;
  padding: 2.4rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.about-card::after {
  content: '';
  position: absolute; right: -40px; bottom: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(23,160,84,0.35), transparent 70%);
}
.about-card .stat { font-family: var(--font-mono); font-size: 2.2rem; color: var(--green-400); font-weight: 600; }
.about-card .stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-top: 0.2rem; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 1.8rem; position: relative; z-index: 1; }
.about-text p { color: var(--ink-muted); margin-bottom: 1.1rem; font-size: 1.02rem; }
.about-text strong { color: var(--navy-950); }

/* ===== POURQUOI (cartes) ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.6rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(15,27,46,0.08); border-color: var(--green-500); }
.why-card .icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--green-100); color: var(--green-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; margin-bottom: 1rem;
}
.why-card h4 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.why-card p { font-size: 0.82rem; color: var(--ink-muted); }

/* ===== SECTEURS ===== */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.9rem;
}
.sector-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.3rem 1rem;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.sector-card:hover { transform: translateY(-3px); border-color: var(--green-500); background: var(--green-100); }
.sector-card .emoji { font-size: 1.6rem; margin-bottom: 0.5rem; }
.sector-card span { font-size: 0.8rem; font-weight: 600; color: var(--navy-950); }

/* ===== OFFRES ===== */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.offer-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem 1.7rem;
  border: 1px solid var(--line);
  position: relative;
  display: flex; flex-direction: column;
}
.offer-card.featured {
  border-color: var(--green-500);
  box-shadow: 0 20px 44px rgba(23,160,84,0.16);
  transform: scale(1.02);
}
.offer-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  padding: 0.35rem 0.7rem; border-radius: 20px;
  width: fit-content; margin-bottom: 1.1rem;
}
.offer-tag.molo { background: var(--green-100); color: var(--green-600); }
.offer-tag.enjaille { background: #fdf3d8; color: #9a6b06; }
.offer-tag.gbe { background: #fbe4e4; color: #b3261e; }
.offer-card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.offer-card p.desc { color: var(--ink-muted); font-size: 0.88rem; margin-bottom: 1.3rem; }
.offer-price { font-family: var(--font-mono); font-size: 0.82rem; color: var(--navy-950); margin-bottom: 0.3rem; }
.offer-price b { font-size: 1.1rem; }
.offer-list { margin: 1.3rem 0; flex: 1; }
.offer-list li {
  font-size: 0.85rem; color: var(--ink); padding: 0.4rem 0;
  border-bottom: 1px dashed var(--line);
  display: flex; gap: 0.5rem; align-items: flex-start;
}
.offer-list li::before { content: '→'; color: var(--green-500); font-weight: 700; flex-shrink: 0; }

/* ===== DEMO (Babi PDF Agent) ===== */
.demo-panel {
  background: linear-gradient(120deg, var(--navy-950) 0%, #123423 130%);
  border-radius: 24px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  color: var(--white);
}
.demo-panel h2 { color: var(--white); }
.demo-panel p { color: rgba(255,255,255,0.68); margin: 1rem 0 1.6rem; }
.demo-mock {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 1.4rem;
}
.demo-mock .bar { display: flex; gap: 0.35rem; margin-bottom: 1rem; }
.demo-mock .bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.demo-mock .line { height: 9px; border-radius: 5px; background: rgba(255,255,255,0.1); margin-bottom: 0.6rem; }
.demo-mock .line.w60 { width: 60%; }
.demo-mock .line.w80 { width: 80%; }
.demo-mock .line.w40 { width: 40%; background: var(--green-500); opacity: 0.5; }

/* ===== METHODE (timeline reelle) ===== */
.method-track { display: flex; flex-direction: column; gap: 0; }
.method-step {
  display: grid; grid-template-columns: 90px 1fr; gap: 1.4rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.method-step:last-child { border-bottom: none; }
.method-num { font-family: var(--font-mono); color: var(--green-500); font-weight: 600; font-size: 0.95rem; }
.method-step h4 { font-size: 1.02rem; margin-bottom: 0.25rem; }
.method-step p { font-size: 0.87rem; color: var(--ink-muted); }

/* ===== CTA FINAL ===== */
.cta-final {
  background: var(--green-500);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  color: var(--white);
}
.cta-final h2 { color: var(--white); margin-bottom: 0.8rem; }
.cta-final p { color: rgba(255,255,255,0.85); margin-bottom: 1.8rem; }
.cta-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.cta-final .btn-primary { background: var(--navy-950); box-shadow: none; }
.cta-final .btn-primary:hover { background: var(--navy-800); }
.cta-final .btn-outline { border-color: rgba(255,255,255,0.5); color: var(--white); }
.cta-final .btn-outline:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.1); }

/* ===== FOOTER ===== */
.footer { background: var(--navy-950); color: rgba(255,255,255,0.6); padding: 3.2rem 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.4rem; }
.footer-brand { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.9rem; }
.footer-brand img { width: 30px; height: 30px; }
.footer-brand span { font-family: var(--font-display); font-weight: 700; color: var(--white); }
.footer-tagline { font-size: 0.82rem; color: rgba(255,255,255,0.45); max-width: 240px; }
.footer h5 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.85); margin-bottom: 0.9rem; }
.footer ul li { margin-bottom: 0.55rem; font-size: 0.85rem; }
.footer ul li a:hover { color: var(--green-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.4rem; font-size: 0.78rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; }

/* ===== WHATSAPP FLOTTANT ===== */
.whatsapp-float {
  position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-500);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.5rem;
  box-shadow: 0 12px 26px rgba(23,160,84,0.4);
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ===== ASSISTANT IA — bulle d'accroche automatique ===== */
.ai-greeting {
  position: fixed; bottom: 6.2rem; left: 1.4rem; z-index: 199;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  padding: 0.9rem 2.1rem 0.9rem 1.1rem;
  max-width: 250px;
  box-shadow: 0 16px 34px rgba(15,27,46,0.16);
  opacity: 0; transform: translateY(8px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.ai-greeting.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.ai-greeting p { font-size: 0.82rem; color: var(--ink); line-height: 1.4; }
.ai-greeting-close {
  position: absolute; top: 6px; right: 8px;
  background: none; border: none; cursor: pointer;
  font-size: 0.75rem; color: var(--ink-muted);
}

/* ===== ASSISTANT IA — bouton lanceur ===== */
.ai-launcher {
  position: fixed; bottom: 1.4rem; left: 1.4rem; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(150deg, var(--green-500), var(--navy-900));
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px rgba(15,27,46,0.35);
  transition: transform 0.15s ease;
}
.ai-launcher:hover { transform: scale(1.06); }
.ai-launcher-icon { font-size: 1.5rem; position: relative; z-index: 2; }
.ai-launcher-ring {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(46,196,110,0.5);
  animation: pulseRing 2.4s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(0.85); opacity: 0.9; }
  80% { transform: scale(1.25); opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-launcher-ring { animation: none; }
}

/* ===== ASSISTANT IA — panneau de discussion ===== */
.ai-panel {
  position: fixed; bottom: 1.4rem; left: 1.4rem; z-index: 201;
  width: 360px; max-width: calc(100vw - 2rem);
  height: 500px; max-height: calc(100vh - 3rem);
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(10,18,32,0.35);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.ai-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.ai-panel-header {
  background: var(--navy-950);
  color: var(--white);
  padding: 1rem 1.1rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.ai-panel-title { display: flex; align-items: center; gap: 0.6rem; }
.ai-panel-title img { width: 32px; height: 32px; border-radius: 8px; }
.ai-panel-name { font-family: var(--font-display); font-size: 0.88rem; font-weight: 700; }
.ai-panel-status { font-size: 0.72rem; color: var(--green-400); }
.ai-panel-close { background: none; border: none; color: rgba(255,255,255,0.7); cursor: pointer; font-size: 1rem; }
.ai-panel-close:hover { color: #fff; }

.ai-panel-body {
  flex: 1; overflow-y: auto;
  padding: 1rem;
  display: flex; flex-direction: column; gap: 0.65rem;
  background: var(--bg);
}
.ai-msg {
  max-width: 84%;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.45;
  word-break: break-word;
}
.ai-msg-bot {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom-left-radius: 3px;
  color: var(--ink);
}
.ai-msg-user {
  align-self: flex-end;
  background: var(--green-500);
  color: #fff;
  border-bottom-right-radius: 3px;
}
.ai-msg-loading { color: var(--ink-muted); font-style: italic; }

.ai-panel-input {
  display: flex; gap: 0.5rem;
  padding: 0.8rem;
  border-top: 1px solid var(--line);
  background: var(--white);
  flex-shrink: 0;
}
.ai-panel-input input {
  flex: 1; border: 1px solid var(--line); border-radius: 20px;
  padding: 0.55rem 0.95rem; font-size: 0.85rem; font-family: var(--font-body);
  background: var(--bg);
  min-width: 0;
}
.ai-panel-input button {
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: var(--green-500); color: #fff; cursor: pointer; font-size: 0.95rem;
  flex-shrink: 0;
}

/* ===== NOS SERVICES (reutilise sur accueil.html et services.html) ===== */
.services-grid { display:grid; grid-template-columns:1fr 1fr; gap:1.4rem; }
.service-card { background:var(--white); border:1px solid var(--line); border-radius:20px; padding:2rem; }
.service-card.featured { border-color:var(--green-500); box-shadow:0 20px 44px rgba(23,160,84,0.14); }
.service-icon { font-size:1.8rem; margin-bottom:0.8rem; }
.service-card h3 { font-size:1.15rem; margin-bottom:0.3rem; }
.service-soustitre { font-family: var(--font-mono); font-size:0.72rem; color:var(--green-600); text-transform:uppercase; letter-spacing:0.05em; margin-bottom:0.8rem !important; }
.service-card p { color:var(--ink-muted); font-size:0.9rem; }
.service-capacites { margin-top:1rem; }
.service-capacites li { font-size:0.83rem; padding:0.3rem 0; display:flex; gap:0.5rem; }
.service-capacites li::before { content:'✓'; color:var(--green-500); font-weight:700; flex-shrink:0; }

/* ============================================================
   RESPONSIVE — UN SEUL BLOC CONSOLIDE, DU PLUS GRAND AU PLUS PETIT
   ============================================================ */

@media (max-width: 960px) {
  .hero { padding-bottom: 8rem; } /* espace pour ne pas etre cache par les boutons flottants */
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .sectors-grid { grid-template-columns: repeat(3, 1fr); }
  .offers-grid { grid-template-columns: 1fr; }
  .offer-card.featured { transform: none; }
  .demo-panel { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }

  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0;
    box-shadow: 0 12px 24px rgba(15,27,46,0.08);
  }
  .nav-links.mobile-open { display: flex; }
  .nav-links a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nav-links a:last-child { border-bottom: none; }
}

@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .method-step { grid-template-columns: 50px 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .hero { padding: 4rem 0 9rem; }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 2.3rem); }
  .hero p.lead { font-size: 0.95rem; max-width: 100%; }
  .hero-tagline { font-size: 0.76rem; }

  .ai-panel { left: 0.7rem; right: 0.7rem; width: auto; bottom: 0.9rem; }
  .ai-greeting { left: 0.7rem; max-width: calc(100vw - 5.5rem); }
  .ai-launcher { left: 0.9rem; }
}

@media (max-width: 480px) {
  .nav-brand span { display: none; }
  .nav-cta .btn { padding: 0.55rem 0.85rem; font-size: 0.82rem; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .about-card { padding: 1.6rem; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .demo-panel { padding: 1.6rem; }
  .cta-final { padding: 1.8rem; }
}

/* Filet de securite anti-debordement, applique a tous les conteneurs */
.hero, .hero-grid, .container, section, .navbar-inner {
  max-width: 100vw;
}
/* Animation des points de suspension */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background-color: #f0f2f5;
    border-radius: 18px;
    width: fit-content;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: #8a8d91;
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
.typing-indicator span:nth-child(3) { animation-delay: 0s; }

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0);
    } 
    40% { 
        transform: scale(1.0);
    }
}