/* ── Variables ── */
:root {
  --bg:          #0a0a0f;
  --bg-2:        #111118;
  --bg-card:     #14141e;
  --border:      #1e1e2e;
  --border-2:    #2a2a3e;
  --text:        #e2e2ee;
  --text-muted:  #7070a0;
  --text-faint:  #40405a;
  --accent:      #4f7ef7;
  --accent-glow: rgba(79, 126, 247, 0.15);
  --accent-dim:  rgba(79, 126, 247, 0.08);
  --radius:      12px;
  --radius-sm:   8px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── Container ── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 500; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary.btn-large { padding: 16px 36px; font-size: 1rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid var(--border-2);
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }

/* ── Navigation ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
#nav.nav--scrolled {
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  color: var(--accent);
  border: 1px solid rgba(79, 126, 247, 0.4);
}
.nav-links .nav-cta:hover { background: var(--accent-dim); }
.nav-cta--logo { padding: 8px 12px; display: flex; align-items: center; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { padding: 12px 24px 20px; }
.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { color: var(--text); }
.mobile-menu li:last-child a { border-bottom: none; }

/* ── Section shared ── */
section {
  padding: 100px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  padding: 4px 12px;
  background: var(--accent-dim);
  border: 1px solid rgba(79, 126, 247, 0.2);
  border-radius: 20px;
}
.section-sub {
  color: var(--text-muted);
  max-width: 520px;
  margin: 14px auto 0;
  font-size: 1rem;
}

/* ── Hero ── */
#hero {
  padding-top: 160px;
  padding-bottom: 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(79, 126, 247, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-2);
  border-radius: 20px;
  padding: 6px 16px;
  margin-bottom: 28px;
}
#hero h1 {
  color: var(--text);
  margin-bottom: 24px;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 28px 40px;
  max-width: 680px;
  margin: 0 auto;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 36px;
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 120px;
  line-height: 1.4;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Services ── */
#services { background: var(--bg-2); }
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: border-color 0.2s;
}
.service-card:hover { border-color: var(--border-2); }
.service-card--accent {
  border-color: rgba(79, 126, 247, 0.3);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(79, 126, 247, 0.05) 100%);
}
.service-card--accent:hover { border-color: rgba(79, 126, 247, 0.5); }
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  border: 1px solid rgba(79, 126, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.service-card h3 {
  margin-bottom: 12px;
  color: var(--text);
}
.service-card > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.7;
}
.service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

/* ── Expertise ── */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}
.expertise-block {
  background: var(--bg-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 6px;
  padding: 4px 10px;
  transition: color 0.2s, border-color 0.2s;
}
.tag:hover { color: var(--text); border-color: var(--accent); }

/* ── Parcours ── */
#parcours { background: var(--bg-2); }
.parcours-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.parcours-intro p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 20px;
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border-2);
}
.timeline-item {
  display: flex;
  gap: 20px;
  padding-bottom: 28px;
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
  flex-shrink: 0;
  margin-top: 3px;
  position: relative;
  z-index: 1;
}
.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.timeline-period {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.timeline-content strong {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
}
.timeline-content span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Contact ── */
.contact-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.contact-inner h2 { margin-bottom: 16px; }
.contact-inner .btn-primary { margin-top: 36px; }
.contact-note {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-top: 16px;
}

/* ── Mentions légales ── */
.mentions-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 720px;
  padding-bottom: 80px;
}
.mentions-block h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 600;
}
.mentions-block p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}
.mentions-block a {
  color: var(--accent);
}
.mentions-block a:hover {
  text-decoration: underline;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--text-faint);
}
.footer-copy a {
  color: var(--text-faint);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-copy a:hover {
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  section { padding: 72px 0; }
  #hero { padding-top: 120px; }

  .nav-links { display: none; }
  .menu-toggle { display: flex; }

  .hero-stats { padding: 20px 16px; gap: 16px; flex-direction: column; }
  .stat { padding: 0; }
  .stat-divider { width: 48px; height: 1px; }

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

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

  .parcours-layout { grid-template-columns: 1fr; gap: 40px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  #hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .service-card { padding: 24px; }
}