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

:root {
  --bg: #faf7f2;
  --bg-alt: #f2ede4;
  --surface: #ffffff;
  --ink: #1a1f2c;
  --ink-soft: #3a4252;
  --muted: #6b7280;
  --muted-soft: #9aa1ad;
  --border: #e6e0d3;
  --border-strong: #d4ccbb;
  --accent: #1f3a5f;       /* bleu marine consulting */
  --accent-2: #2d5a3d;     /* vert sapin */
  --accent-soft: #e8eef4;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(26, 31, 44, 0.04), 0 1px 2px rgba(26, 31, 44, 0.02);
  --shadow: 0 4px 20px rgba(26, 31, 44, 0.06), 0 2px 6px rgba(26, 31, 44, 0.03);
  --shadow-lg: 0 20px 60px rgba(26, 31, 44, 0.1), 0 8px 20px rgba(26, 31, 44, 0.05);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', Menlo, monospace;
  --container: 1180px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: italic; color: var(--accent); font-family: var(--font-serif); }

/* ================== NAV ================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(212, 204, 187, 0.4);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.nav-brand-mark {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 22px;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.nav-brand-name { font-size: 13px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--ink-soft); font-weight: 500; transition: color 0.15s; position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent); transition: width 0.2s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 10px 20px;
  background: var(--ink);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }
.nav-burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ================== BUTTONS ================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer; border: none;
  font-family: inherit;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #16294a; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(31, 58, 95, 0.25); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ================== HERO ================== */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(31,58,95,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 20px;
  font-size: 12px; font-weight: 600;
  margin-bottom: 24px;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: -0.005em;
}
.hero-desc {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  max-width: 520px;
}
.stat-value {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-value span { color: var(--accent); }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.4; }

/* Hero visual - terminal */
.hero-visual { display: flex; justify-content: center; }
.hero-card {
  width: 100%;
  max-width: 420px;
  background: #14171f;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(1deg);
  transition: transform 0.3s ease;
}
.hero-card:hover { transform: rotate(0deg) scale(1.02); }
.hero-card-dots {
  display: flex; gap: 6px;
  padding: 14px 16px;
  background: #1a1f2c;
  border-bottom: 1px solid #252b3b;
}
.hero-card-dots span {
  width: 12px; height: 12px; border-radius: 50%; background: #3a4252;
}
.hero-card-dots span:nth-child(1) { background: #f87171; }
.hero-card-dots span:nth-child(2) { background: #fbbf24; }
.hero-card-dots span:nth-child(3) { background: #4ade80; }
.hero-card-body {
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #d4d4d8;
  line-height: 1.9;
}
.code-line { white-space: nowrap; }
.code-prompt { color: #4ade80; margin-right: 8px; }
.code-cmd { color: #93c5fd; }
.code-out { color: #9ca3af; padding-left: 16px; }
.cursor { animation: blink 1s step-end infinite; color: #4ade80; }
@keyframes blink { 50% { opacity: 0; } }

/* ================== SECTIONS ================== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* ================== ABOUT ================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text p {
  color: var(--ink-soft);
  margin-bottom: 18px;
  line-height: 1.75;
}
.about-list {
  margin-top: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.about-list li {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink-soft);
  font-size: 15px;
}
.about-list svg {
  width: 20px; height: 20px;
  color: var(--accent-2);
  background: rgba(45, 90, 61, 0.1);
  border-radius: 50%;
  padding: 3px;
  flex-shrink: 0;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  position: sticky; top: 100px;
}
.about-card-avatar {
  width: 120px; height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #2d5a3d);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 36px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 4px solid #fff;
  outline: 2px solid var(--border);
}
.about-card-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.about-card-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.about-card-role {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}
.about-card-location {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.about-card-location svg { width: 14px; height: 14px; }
.about-card-sep { height: 1px; background: var(--border); margin: 24px 0; }
.about-card-meta {
  display: flex; flex-direction: column; gap: 12px;
  text-align: left;
}
.about-card-meta > div {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}
.about-card-meta span { color: var(--muted); }
.about-card-meta strong { color: var(--ink); font-weight: 600; }

/* ================== EXPERTISE ================== */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.expertise-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.25s ease;
  cursor: default;
}
.expertise-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.expertise-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.expertise-icon svg { width: 22px; height: 22px; }
.expertise-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.expertise-card p {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 18px;
  line-height: 1.65;
}
.expertise-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.expertise-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--ink-soft);
}

/* ================== TIMELINE ================== */
.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 48px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -28px; top: 8px;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.timeline-content:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.timeline-role {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.timeline-company {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 12px;
}
.timeline-content p {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 14px;
  line-height: 1.7;
}
.timeline-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.timeline-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--ink-soft);
}

/* ================== ARTICLES ================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.25s;
  cursor: pointer;
}
.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.article-cat {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-weight: 600;
}
.article-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 10px;
}
.article-card p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 18px;
}
.article-meta {
  display: flex; gap: 8px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* ================== CONTACT ================== */
.contact-box {
  background: linear-gradient(135deg, #1a1f2c 0%, #1f3a5f 100%);
  border-radius: var(--radius);
  padding: 80px 60px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact-box::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(45,90,61,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.contact-left { position: relative; max-width: 620px; }
.contact-box .section-tag { color: #7da9e6; }
.contact-box .section-title { color: #fff; margin-bottom: 20px; }
.contact-box em { color: #7fd4a8; }
.contact-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.contact-method {
  display: flex; align-items: center; gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.contact-method:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.contact-method svg {
  width: 24px; height: 24px;
  color: #7da9e6;
  flex-shrink: 0;
}
.contact-method span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2px;
}
.contact-method strong {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}
.contact-box .btn-primary {
  background: #fff;
  color: var(--ink);
}
.contact-box .btn-primary:hover {
  background: #7fd4a8;
  color: var(--ink);
}

/* ================== FOOTER ================== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.footer-links {
  display: flex; gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent); }

/* ================== RESPONSIVE ================== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; max-width: 380px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-card { position: static; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: 1fr; }
  .contact-methods { grid-template-columns: 1fr; }
  .contact-box { padding: 60px 32px; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .section { padding: 70px 0; }
  .hero { padding: 50px 0 70px; }
  .hero-title { font-size: 40px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero-stats .stat:last-child { grid-column: 1 / -1; }
  .expertise-grid { grid-template-columns: 1fr; }
  .contact-box { padding: 48px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
