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

:root {
  /* Couleurs principales */
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161e;
  --bg-card-hover: #1c1c26;

  /* Accents */
  --accent-blue: #4f8ef7;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --gradient: linear-gradient(135deg, #4f8ef7, #8b5cf6);

  /* Texte */
  --text-primary: #f0f0f8;
  --text-secondary: #9090a8;
  --text-muted: #5a5a70;

  /* Bordures */
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(79, 142, 247, 0.3);

  /* Espacements */
  --section-padding: 100px 0;
  --container-width: 1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

strong {
  color: var(--text-primary);
}

/* ===== UTILITAIRES ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-header p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.nav-logo .dot {
  color: var(--accent-blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  background: var(--gradient);
  color: white !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover {
  opacity: 0.85;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

/* Arrière-plan animé */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: pulse 8s ease-in-out infinite;
}

.circle-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-blue);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.circle-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-purple);
  bottom: -100px;
  left: -100px;
  animation-delay: 3s;
}

.circle-3 {
  width: 300px;
  height: 300px;
  background: var(--accent-cyan);
  top: 50%;
  left: 40%;
  animation-delay: 6s;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.12; }
  50% { transform: scale(1.1); opacity: 0.18; }
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fadeInDown 0.6s ease both;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-description {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 36px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
  animation: fadeInUp 0.6s ease 0.3s both;
}

/* ===== BOUTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--gradient);
  color: white;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 10px;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-large {
  font-size: 17px;
  padding: 16px 36px;
}

/* ===== STATS HERO ===== */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ===== SERVICES ===== */
.services {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== AVANTAGES ===== */
.avantages {
  padding: var(--section-padding);
}

.avantages-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.avantages-text .section-tag {
  display: block;
  text-align: left;
  margin-bottom: 12px;
}

.avantages-text h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.avantages-text > p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

.avantages-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.avantages-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.4s ease;
}

.avantages-list li.visible {
  opacity: 1;
  transform: translateX(0);
}

.check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: rgba(79, 142, 247, 0.15);
  color: var(--accent-blue);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

.avantages-list li strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.avantages-list li p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* ===== PHONE MOCKUP ===== */
.avantages-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 24px 20px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 16px;
  max-width: 90%;
  opacity: 0;
  animation: bubbleIn 0.4s ease forwards;
}

.chat-bubble.agent {
  background: rgba(79, 142, 247, 0.12);
  border: 1px solid rgba(79, 142, 247, 0.2);
  color: var(--text-secondary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  color: var(--text-primary);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Délais d'apparition des bulles */
.chat-bubble:nth-child(1) { animation-delay: 0.2s; }
.chat-bubble:nth-child(2) { animation-delay: 1.2s; }
.chat-bubble:nth-child(3) { animation-delay: 2.2s; }
.chat-bubble:nth-child(4) { animation-delay: 3.4s; }
.chat-bubble:nth-child(5) { animation-delay: 4.2s; }

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Indicateur "en train d'écrire" */
.typing-indicator {
  display: flex;
  gap: 5px;
  padding: 12px 16px;
  background: rgba(79, 142, 247, 0.08);
  border: 1px solid rgba(79, 142, 247, 0.15);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
  animation: bubbleIn 0.4s ease 5.2s both;
}

.typing-indicator span {
  width: 7px;
  height: 7px;
  background: var(--accent-blue);
  border-radius: 50%;
  animation: typingDot 1.2s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-5px); opacity: 1; }
}

/* ===== CONTACT ===== */
.contact {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
  max-width: 700px;
  transition: border-color 0.3s;
}

.contact-card:hover {
  border-color: var(--border-hover);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  font-size: 20px;
}

.contact-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.2s;
}

.contact-value:hover {
  color: var(--accent-blue);
}

/* ===== FOOTER ===== */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== ANIMATIONS GLOBALES ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
  :root {
    --section-padding: 72px 0;
  }

  .nav-links li:not(:last-child) {
    display: none;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 22px;
  }

  .avantages-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .phone-mockup {
    width: 100%;
    max-width: 320px;
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
}
