/* ===== Variables & Reset ===== */
:root {
  --blue-dark: #033E7B;
  --blue-mid: #0453A9;
  --cyan: #05A9E1;
  --cyan-light: #0AB3C6;
  --teal: #078584;
  --green: #0CC278;
  --green-bright: #08E04F;
  --bg: #F4F7FA;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --surface: #E8EDF3;
  --border: #DDE3EB;
  --text: #334155;
  --text-muted: #64748B;
  --text-heading: #0F172A;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient: linear-gradient(135deg, var(--cyan) 0%, var(--green) 100%);
  --gradient-blue: linear-gradient(135deg, var(--blue-mid) 0%, var(--cyan) 100%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Gradient Text ===== */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  padding: 12px 28px;
  gap: 8px;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(5, 169, 225, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(5, 169, 225, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; }
.btn-nav {
  background: var(--gradient);
  color: #fff !important;
  padding: 10px 24px;
  font-size: 0.9rem;
}
.btn-nav:hover { box-shadow: 0 4px 15px rgba(5, 169, 225, 0.4); }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 36px;
  height: 36px;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.5px;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text-heading); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 20%, rgba(5, 169, 225, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(12, 194, 120, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(4, 83, 169, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(5, 169, 225, 0.1);
  border: 1px solid rgba(5, 169, 225, 0.2);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-heading);
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-heading);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

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

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== Services ===== */
.services { background: var(--bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.service-card:hover {
  border-color: rgba(5, 169, 225, 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.service-card.featured {
  border-color: rgba(5, 169, 225, 0.35);
  background: linear-gradient(135deg, rgba(5, 169, 225, 0.06) 0%, rgba(12, 194, 120, 0.06) 100%);
}

.service-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--gradient);
  color: #fff;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(5, 169, 225, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--cyan);
}
.service-icon svg { width: 26px; height: 26px; }

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.service-card > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-features li {
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}
.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
}

/* ===== Expertise ===== */
.expertise {
  background: linear-gradient(180deg, var(--bg) 0%, #EDF1F7 100%);
}

.expertise-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.expertise-content .section-tag { text-align: left; }
.expertise-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.expertise-content > p {
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

.expertise-items { display: flex; flex-direction: column; gap: 28px; }

.expertise-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.expertise-number {
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.expertise-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}
.expertise-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Code Window */
.code-window {
  background: #0D1117;
  border-radius: var(--radius-lg);
  border: 1px solid #21262D;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: #161B22;
  border-bottom: 1px solid #21262D;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #FF5F57; }
.dot.yellow { background: #FEBC2E; }
.dot.green { background: #28C840; }
.code-title {
  margin-left: 12px;
  font-size: 0.8rem;
  color: #8B949E;
}

.code-content {
  padding: 24px;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #C9D1D9;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  overflow-x: auto;
}

.hl-key { color: #79C0FF; }
.hl-val { color: #A5D6FF; }
.hl-str { color: #A5D6FF; }
.hl-num { color: #56D364; }

/* ===== Process / Approche ===== */
.approche { background: var(--bg); }

.process-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.process-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(5, 169, 225, 0.1);
  border: 1px solid rgba(5, 169, 225, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--cyan);
}
.process-icon svg { width: 28px; height: 28px; }

.process-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.process-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
}
.process-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.process-connector {
  flex-shrink: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  margin-top: 30px;
  opacity: 0.4;
}

/* ===== Technologies ===== */
.techno {
  background: linear-gradient(180deg, #EDF1F7 0%, var(--bg) 100%);
}

.tech-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tech-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.tech-category h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.tech-tag:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(5, 169, 225, 0.08);
}

/* ===== CTA ===== */
.cta-section { padding: 40px 0 100px; }

.cta-box {
  text-align: center;
  padding: 80px 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(4, 83, 169, 0.08) 0%, rgba(12, 194, 120, 0.06) 100%);
  border: 1px solid rgba(5, 169, 225, 0.2);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(5, 169, 225, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 16px;
  position: relative;
}
.cta-box p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  position: relative;
}

/* ===== Contact ===== */
.contact { background: var(--bg); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: flex-start;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(5, 169, 225, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}
.contact-icon svg { width: 22px; height: 22px; }

.contact-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}
.contact-item p,
.contact-item a {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.contact-item a:hover { color: var(--cyan); }

/* Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(5, 169, 225, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394A3B8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-links h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-tagline { opacity: 0.6; }

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

.hero-content > * {
  animation: fadeUp 0.8s ease-out both;
}
.hero-badge { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.2s; }
.hero-subtitle { animation-delay: 0.3s; }
.hero-actions { animation-delay: 0.4s; }
.hero-stats { animation-delay: 0.5s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .expertise-layout { grid-template-columns: 1fr; gap: 48px; }
  .tech-categories { grid-template-columns: repeat(2, 1fr); }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.active { display: flex; }

  .hero { min-height: auto; padding: 140px 0 80px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { flex-direction: column; gap: 20px; align-items: flex-start; }
  .stat-divider { width: 40px; height: 1px; }

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

  .process-grid { flex-direction: column; gap: 32px; }
  .process-connector { width: 2px; height: 24px; margin: 0 auto; }

  .tech-categories { grid-template-columns: 1fr; }

  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }

  .cta-box { padding: 48px 24px; }

  .footer-content { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
