/* ===== CSS Custom Properties ===== */
:root {
  --blue-light: #2196f3;
  --blue-mid: #1976d2;
  --blue-dark: #1565c0;
  --navy: #1e2a3a;
  --text: #2d3748;
  --text-muted: #64748b;
  --bg-light: #f5f7fa;
  --bg-hero: linear-gradient(145deg, #ffffff 0%, #e8f4ff 50%, #dbeafe 100%);
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(30, 42, 58, 0.08);
  --shadow-md: 0 8px 32px rgba(30, 42, 58, 0.12);
  --shadow-blue: 0 8px 32px rgba(33, 150, 243, 0.2);
  --radius: 12px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

img {
  max-width: 100%;
  display: block;
}

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

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  border-bottom-color: rgba(30, 42, 58, 0.08);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.navbar-logo img {
  height: 40px;
  width: auto;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-light);
  transition: width var(--transition);
}

.navbar-links a:hover {
  color: var(--blue-mid);
}

.navbar-links a:hover::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border-radius: 20px;
  padding: 4px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 16px;
  color: var(--text-muted);
  transition: all var(--transition);
}

.lang-btn.active {
  background: var(--white);
  color: var(--blue-mid);
  box-shadow: var(--shadow-sm);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  background: var(--bg-hero);
  display: flex;
  align-items: center;
  padding: 120px 2rem 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: var(--blue-mid);
}

.hero-circle-1 {
  width: 600px;
  height: 600px;
  right: -100px;
  top: -100px;
}

.hero-circle-2 {
  width: 400px;
  height: 400px;
  right: 200px;
  top: 100px;
  opacity: 0.04;
}

.hero-circle-3 {
  width: 200px;
  height: 200px;
  left: 10%;
  bottom: 10%;
  opacity: 0.05;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  animation: fadeInUp 0.8s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(33, 150, 243, 0.1);
  color: var(--blue-mid);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(33, 150, 243, 0.2);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-light);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: var(--blue-light);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-mid);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(33, 150, 243, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-mid);
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(33, 150, 243, 0.3);
  transition: all var(--transition);
}

.btn-secondary:hover {
  border-color: var(--blue-mid);
  background: rgba(33, 150, 243, 0.05);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.8s ease 0.2s both;
}


.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

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

/* ===== Sections commons ===== */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* ===== Services ===== */
.services {
  padding: 100px 2rem;
  background: var(--bg-light);
}

.services-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.services-header {
  margin-bottom: 3.5rem;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.service-card {
  flex: 1 1 300px;
  max-width: 370px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(30, 42, 58, 0.06);
  transition: all var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-light), var(--blue-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(33, 150, 243, 0.15);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(33, 150, 243, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(33, 150, 243, 0.18);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--blue-mid);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(33, 150, 243, 0.08);
  color: var(--blue-mid);
  padding: 3px 10px;
  border-radius: 12px;
}

/* ===== Practices ===== */
.practices {
  padding: 100px 2rem;
  background: var(--white);
}

.practices-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.practices-header {
  margin-bottom: 3rem;
}

.practices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.practice-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid transparent;
  transition: all var(--transition);
}

.practice-card:hover {
  border-color: rgba(33, 150, 243, 0.2);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.practice-icon {
  width: 40px;
  height: 40px;
  background: rgba(33, 150, 243, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.practice-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--blue-mid);
}

.practice-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.practice-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== About ===== */
.about {
  padding: 100px 2rem;
  background: var(--white);
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-content .section-desc {
  margin-bottom: 1.5rem;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.value-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(33, 150, 243, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.value-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue-mid);
}

.value-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.value-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.about-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0077b5;
  color: white;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.about-linkedin:hover {
  background: #006097;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 119, 181, 0.3);
}

.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.about-logo-wrap {
  background: linear-gradient(145deg, #f0f6ff, #e8f4ff);
  border-radius: 20px;
  padding: 3rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.about-logo-wrap img {
  max-width: 200px;
}

.about-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

.perk {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.perk-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-mid);
}

.perk-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== Contact ===== */
.contact {
  padding: 100px 2rem;
  background: linear-gradient(145deg, var(--navy) 0%, #1a3050 100%);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(33, 150, 243, 0.08);
  right: -200px;
  top: -200px;
  pointer-events: none;
}

.contact-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.contact .section-label {
  color: rgba(33, 150, 243, 0.9);
}

.contact .section-title {
  color: var(--white);
}

.contact-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.contact-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-contact-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(33, 150, 243, 0.4);
}

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

.btn-contact-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition);
}

.btn-contact-secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

/* ===== Footer ===== */
.footer {
  background: #111827;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo img {
  height: 32px;
  filter: brightness(10);
  opacity: 0.7;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== Tech Orbit Illustration ===== */
.tech-orbit {
  position: relative;
  width: 420px;
  height: 420px;
  flex-shrink: 0;
}

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(33, 150, 243, 0.18), 0 2px 8px rgba(30, 42, 58, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 3;
  animation: centerPulse 3s ease-in-out infinite;
}

.orbit-center img {
  width: 100%;
  height: auto;
}

@keyframes centerPulse {
  0%, 100% { box-shadow: 0 12px 40px rgba(33, 150, 243, 0.18), 0 2px 8px rgba(30, 42, 58, 0.08); }
  50% { box-shadow: 0 12px 60px rgba(33, 150, 243, 0.32), 0 2px 12px rgba(30, 42, 58, 0.1); }
}

/* Anneaux SVG décoratifs */
.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1.5px dashed rgba(33, 150, 243, 0.2);
  transform: translate(-50%, -50%);
}

.orbit-ring-1 {
  width: 220px;
  height: 220px;
  animation: spinRing 18s linear infinite;
}

.orbit-ring-2 {
  width: 360px;
  height: 360px;
  animation: spinRing 28s linear infinite reverse;
}

@keyframes spinRing {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Badges */
.orbit-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 5px;
  background: white;
  border: 1px solid rgba(33, 150, 243, 0.2);
  border-radius: 20px;
  padding: 5px 12px 5px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(30, 42, 58, 0.1);
  /* Contre-rotation pour rester lisibles */
  animation: counterSpin1 18s linear infinite;
}

.orbit-ring-2 .orbit-badge {
  animation: counterSpin2 28s linear infinite reverse;
}

@keyframes counterSpin1 {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
@keyframes counterSpin2 {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.ob-icon {
  font-size: 0.9rem;
  color: var(--blue-mid);
}

/* Positions sur l'anneau 1 */
.ob-1 { top: -14px; left: 50%; transform: translateX(-50%); }
.ob-2 { bottom: 10px; right: -30px; }
.ob-3 { bottom: 10px; left: -30px; }

/* Positions sur l'anneau 2 */
.ob-4 { top: -14px; left: 50%; transform: translateX(-50%); }
.ob-5 { top: 50%; right: -44px; transform: translateY(-50%); }
.ob-6 { bottom: -14px; left: 50%; transform: translateX(-50%); }
.ob-7 { top: 50%; left: -44px; transform: translateY(-50%); }

/* Contre-rotation fixe pour les badges de l'anneau 2 */
.ob-4, .ob-5, .ob-6, .ob-7 {
  animation: counterSpin2 28s linear infinite reverse;
}

/* Points décoratifs flottants */
.orbit-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--blue-light);
  opacity: 0.3;
  animation: floatDot 4s ease-in-out infinite;
}

.od-1 { width: 10px; height: 10px; top: 8%;  left: 20%; animation-delay: 0s; }
.od-2 { width: 6px;  height: 6px;  top: 75%; left: 8%;  animation-delay: 0.8s; }
.od-3 { width: 8px;  height: 8px;  top: 15%; right: 10%; animation-delay: 1.4s; }
.od-4 { width: 5px;  height: 5px;  bottom: 10%; right: 18%; animation-delay: 2s; }
.od-5 { width: 7px;  height: 7px;  bottom: 20%; left: 30%; animation-delay: 0.5s; }

@keyframes floatDot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== Mobile menu ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navbar-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(30, 42, 58, 0.08);
    box-shadow: var(--shadow-sm);
    gap: 0;
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-links li {
    width: 100%;
  }

  .navbar-links a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(30, 42, 58, 0.06);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual {
    display: flex;
    justify-content: center;
  }

  .tech-orbit {
    width: 280px;
    height: 280px;
  }

  .orbit-center {
    width: 80px;
    height: 80px;
    padding: 12px;
    border-radius: 18px;
  }

  .orbit-ring-1 { width: 150px; height: 150px; }
  .orbit-ring-2 { width: 250px; height: 250px; }

  .orbit-badge { font-size: 0.68rem; padding: 4px 8px 4px 6px; }

  .hero-stats {
    gap: 1.5rem;
  }

  .service-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-visual {
    order: -1;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

  .contact-actions {
    flex-direction: column;
    align-items: center;
  }
}
