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

:root {
  --bg: #0a0e17;
  --surface: #111827;
  --border: rgba(59, 130, 246, 0.1);
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --accent: #60a5fa;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.brand:hover {
  opacity: 0.8;
}

.logo {
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
  align-items: center;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  font-size: 0.95rem;
}

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

.cta-btn {
  background: var(--primary);
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s;
}

.cta-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.burger {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 20px;
}

.mobile-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.mobile-menu ul {
  list-style: none;
  padding: 20px 24px;
}

.mobile-menu li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

/* Hero */
.hero {
  padding: 100px 0 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 24px;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-list,
.hero-list-subtitle {
  line-height: 40px;
  padding-left: 20px;
}

/* ====================================== */
/* PANNEAU DE PRÉSENTATION HERO */
/* ====================================== */

.hero-presentation-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  margin: 32px 0;
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  animation: slideInUp 0.6s ease-out;
}

.hero-presentation-panel:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 50px rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

/* Titre du panneau */
.panel-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 12px;
  display: inline-block;
}

/* Sous-titres */
.hero-presentation-panel .hero-subtitle {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 16px;
  margin-top: 24px;
  font-weight: 600;
}

.section-heading {
  font-size: 1.1rem;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 16px;
  font-weight: 600;
}

/* Liste stylisée avec puces bleues animées */
.hero-list-styled {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.hero-list-styled li {
  padding: 12px 0 12px 32px;
  position: relative;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 0.9;
  transition: all 0.3s ease;
}

.hero-list-styled li:hover {
  color: var(--text);
  transform: translateX(5px);
}

/* Puce bleue animée */
.hero-list-styled li::before {
  content: "●";
  position: absolute;
  left: 8px;
  color: var(--primary);
  font-size: 1.1rem;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Délais d'animation pour chaque puce */
.hero-list-styled li:nth-child(1)::before { animation-delay: 0s; }
.hero-list-styled li:nth-child(2)::before { animation-delay: 0.2s; }
.hero-list-styled li:nth-child(3)::before { animation-delay: 0.4s; }
.hero-list-styled li:nth-child(4)::before { animation-delay: 0.6s; }

/* Animation de pulsation des puces */
@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

/* Mise en avant des mots en gras */
.hero-list-styled strong {
  color: var(--primary);
  font-weight: 600;
}

/* Section diagnostic CTA */
.diagnostic-cta {
  background: rgba(59, 130, 246, 0.05);
  border-left: 3px solid var(--primary);
  padding: 20px;
  margin-top: 28px;
  border-radius: 8px;
}

.diagnostic-cta p {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.7;
}

.diagnostic-cta strong {
  color: var(--primary);
}

/* Animation d'entrée du panneau */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====================================== */
/* FIN PANNEAU DE PRÉSENTATION */
/* ====================================== */

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Robot Animé */
.robot-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  cursor: pointer;
}

.robot-wrapper {
  position: relative;
  animation: float 3s ease-in-out infinite;
  z-index: 10;
}

.robot {
  width: 100%;
  max-width: 700px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.robot-container:hover .robot {
  transform: scale(1.05);
}

/* Particules flottantes */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0;
  animation: particle-float 3s infinite;
}

.particle:nth-child(1) {
  left: 20%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  left: 40%;
  animation-delay: 0.5s;
}

.particle:nth-child(3) {
  left: 60%;
  animation-delay: 1s;
}

.particle:nth-child(4) {
  left: 80%;
  animation-delay: 1.5s;
}

/* Cercles pulsants */
.pulse-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  opacity: 0;
  animation: pulse 2s ease-out infinite;
  z-index: 1;
}

.pulse-circle:nth-child(2) {
  animation-delay: 0.5s;
}

.pulse-circle:nth-child(3) {
  animation-delay: 1s;
}

/* Lueur autour du robot */
.glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  animation: glow-pulse 2s ease-in-out infinite;
  z-index: 0;
}

/* Badges flottants */
.floating-badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  animation: badge-float 3s ease-in-out infinite;
  white-space: nowrap;
  z-index: 15;
  transition: all 0.3s;
}

.floating-badge a {
  list-style: none;
  text-decoration: none;
  color: var(--text);
}

.badge-1 {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.badge-2 {
  top: 20%;
  right: -10%;
  animation-delay: 1s;
}

.badge-3 {
  bottom: 20%;
  left: -5%;
  animation-delay: 2s;
}

.badge-4 {
  bottom: 10%;
  right: -5%;
  animation-delay: 3s;
}

.badge-5 {
  top: 30%;
  left: -15%;
  animation-delay: 4s;
}

.badge-6 {
  bottom: 30%;
  right: -15%;
  animation-delay: 5s;
}

/* Animations principales */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

@keyframes particle-float {
  0% {
    bottom: 0;
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    bottom: 100%;
    opacity: 0;
  }
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

@keyframes glow-pulse {
  0%, 100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes badge-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Effets de survol */
.robot-container:hover .robot-wrapper {
  animation-play-state: paused;
}

.robot-container:hover .floating-badge {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

/* Services */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 48px;
  text-align: center;
  font-weight: 700;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
  text-align: center;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s;
}

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

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.stat {
  text-align: center;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

.about-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.about-panel:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.about-panel h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.about-panel ul {
  list-style: none;
}

.about-panel li {
  padding: 12px 0;
  color: var(--text-muted);
  position: relative;
  padding-left: 24px;
}

.about-panel li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Testimonials */
.testimonials-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--surface);
}

.testimonial {
  flex: 0 0 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  scroll-snap-align: start;
}

.testimonial-text {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.testimonial-author {
  color: var(--text-muted);
  font-weight: 600;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-muted);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: var(--primary);
}

/* ROI Calculator */
.roi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.roi-form,
.roi-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.roi-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin: 20px 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.contact-form textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
}

.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.fine-print {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 16px;
}

.contact-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.contact-info h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
}

.contact-info a:hover {
  color: var(--accent);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 80px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.footer-brand:hover {
  opacity: 0.8;
}

.footer-logo {
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 24px;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .roi-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .floating-badge {
    font-size: 0.8rem;
    padding: 8px 16px;
  }
  
  .glow {
    width: 300px;
    height: 300px;
  }
  
  .pulse-circle {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
  }

  .burger {
    display: block;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .robot-container {
    display: none;
  }

  .hero-grid {
    gap: 32px;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 60px 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .testimonial {
    flex: 0 0 300px;
  }

  /* Responsive pour le panneau de présentation */
  .hero-presentation-panel {
    padding: 24px;
    margin: 24px 0;
  }

  .panel-title {
    font-size: 1.5rem;
  }

  .hero-list-styled li {
    font-size: 0.95rem;
    padding-left: 28px;
  }

  .diagnostic-cta {
    padding: 16px;
  }

  .diagnostic-cta p {
    font-size: 1rem;
  }
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s;
  z-index: 100;
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

.scroll-top.show {
  display: flex;
}