html {
  scroll-behavior: smooth;
}

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

:root {
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --font-sans: 'Poppins', -apple-system, sans-serif;
  --font-mono: 'Geist Mono', monospace;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  background-image: 
    linear-gradient(to right, rgba(226, 232, 240, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.5) 1px, transparent 1px);
  background-size: 28px 28px;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Header --- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  padding: 0 3rem;
  background-color: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.logo img {
  height: 65px;
  width: auto;
  display: block;
}

.header-cta a {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  background-color: var(--text-main);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.15s ease;
}

.header-cta a:hover {
  background-color: #334155;
}

/* --- Hero --- */
.hero {
  padding: 5rem 0 3rem;
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 740px;
  line-height: 1.7;
}

/* --- Services (3 Cards) --- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 2rem 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem;
}

.card-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- Workflow / Méthodologie --- */
.workflow {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.section-label, .stack-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.step-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.step-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Stack --- */
.stack {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill-list span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  color: var(--text-main);
}

/* --- Contact Box --- */
.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3.5rem 2rem;
  text-align: center;
  margin: 2rem 0 5rem;
}

.contact-box h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.contact-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}

.actions .btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--text-main);
  color: #FFFFFF;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.actions .btn:hover {
  background: #334155;
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
  header { padding: 0 1.5rem; height: 80px; }
  .logo img { height: 50px; }
  .services, .steps-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.85rem; }
  .footer-content { flex-direction: column; gap: 0.5rem; text-align: center; }
}