@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/dm-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/dm-sans-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/dm-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/dm-serif-display-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/dm-serif-display-latin-400-italic.woff2') format('woff2');
}

:root {
  --bleu: #0A3D8F;
  --bleu-mid: #3D6DB5;
  --bleu-light: #E6EEF9;
  --bleu-pale: #F2F6FC;
  --noir: #111111;
  --gris: #555555;
  --border: #E0E8F4;
  --white: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; font-size: 16px; line-height: 1.7; color: var(--noir); background: var(--white); }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Navigation */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bleu); padding: 0 40px;
  display: flex; justify-content: space-between; align-items: center;
  height: 56px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-logo { font-family: 'DM Serif Display', serif; font-size: 17px; color: var(--white); letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { font-size: 12px; color: rgba(255,255,255,0.6); transition: color 0.2s; letter-spacing: 0.02em; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }

/* Hero */
.hero {
  background: var(--bleu); padding: 56px 40px 48px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; right: -30px; top: -50px;
  width: 300px; height: 300px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06); pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; right: 60px; top: 30px;
  width: 170px; height: 170px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04); pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; position: relative; }
.hero-eyebrow { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.hero-title { font-family: 'DM Serif Display', serif; font-size: 52px; line-height: 1.05; color: var(--white); margin-bottom: 20px; }
.hero-title em { color: rgba(255,255,255,0.5); font-style: italic; }
.hero-sub { font-size: 15px; color: rgba(255,255,255,0.65); max-width: 440px; line-height: 1.7; font-weight: 300; }
.hero-stats { display: flex; flex-direction: column; gap: 20px; padding-bottom: 4px; }
.hero-stat-val { font-family: 'DM Serif Display', serif; font-size: 40px; color: var(--white); line-height: 1; text-align: right; }
.hero-stat-label { font-size: 11px; color: rgba(255,255,255,0.4); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; text-align: right; }

/* Section */
.section { padding: 48px 40px; border-bottom: 1px solid var(--border); }
.section-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bleu); font-weight: 500; margin-bottom: 28px;
}

/* Grille projets — 5 colonnes compactes */
.projets-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.projet-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s;
  background: var(--white);
  cursor: pointer;
  display: block;
}
.projet-card:hover { border-color: var(--bleu-mid); transform: translateY(-2px); }

.projet-card-bar { height: 5px; background: var(--bleu); }

.projet-card-body { padding: 16px 14px 18px; }

.projet-card-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--bleu-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.projet-card-icon svg { width: 16px; height: 16px; }

.projet-card-tag {
  font-size: 11px; color: var(--bleu-mid);
  letter-spacing: 0.05em; text-transform: uppercase;
  font-weight: 500; margin-bottom: 5px;
}
.projet-card-title {
  font-size: 13px; font-weight: 500; color: var(--noir);
  margin-bottom: 8px; line-height: 1.4;
}
.projet-card-desc { font-size: 11px; color: var(--gris); line-height: 1.55; }

.projet-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border);
}
.projet-card-date { font-size: 11px; color: var(--gris); }
.projet-card-arrow { font-size: 13px; color: var(--bleu); font-weight: 500; }

/* Compétences */
.competences-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.competence-bloc { padding: 18px; background: var(--bleu-pale); border-radius: 8px; border-left: 3px solid var(--bleu); border-radius: 0 8px 8px 0; }
.competence-titre { font-size: 13px; font-weight: 500; color: var(--bleu); margin-bottom: 10px; }
.competence-liste { list-style: none; font-size: 13px; color: var(--gris); line-height: 1.9; }

/* Timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 26px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -27px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--bleu); border: 2px solid var(--white); outline: 1px solid var(--bleu); }
.timeline-item.past .timeline-dot { background: var(--bleu-light); outline-color: var(--bleu-mid); }
.timeline-periode { font-size: 11px; color: var(--bleu-mid); font-weight: 500; letter-spacing: 0.05em; margin-bottom: 2px; }
.timeline-poste { font-size: 14px; font-weight: 500; color: var(--noir); margin-bottom: 2px; }
.timeline-entreprise { font-size: 13px; color: var(--gris); }

/* Outils */
.outils-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.outil-bloc { padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; }
.outil-categorie { font-size: 11px; font-weight: 500; color: var(--bleu); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.outil-valeurs { font-size: 12px; color: var(--gris); line-height: 1.6; }

/* Footer */
footer { background: var(--bleu); padding: 24px 40px; display: flex; justify-content: space-between; align-items: center; }
.footer-contact { font-size: 13px; color: rgba(255,255,255,0.6); }
.footer-contact a { color: rgba(255,255,255,0.9); border-bottom: 1px solid rgba(255,255,255,0.3); transition: border-color 0.2s; }
.footer-contact a:hover { border-color: rgba(255,255,255,0.8); }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.3); letter-spacing: 0.06em; }

/* Page projet */
.projet-header { background: var(--bleu); padding: 52px 40px 44px; }
.projet-back { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 24px; display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s; }
.projet-back:hover { color: var(--white); }
.projet-header-tag { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 12px; }
.projet-header-title { font-family: 'DM Serif Display', serif; font-size: 38px; line-height: 1.15; color: var(--white); margin-bottom: 16px; max-width: 600px; }
.projet-header-desc { font-size: 15px; color: rgba(255,255,255,0.65); max-width: 520px; font-weight: 300; line-height: 1.7; }
.projet-meta-bar { background: var(--bleu-pale); border-bottom: 1px solid var(--border); padding: 16px 40px; display: flex; gap: 40px; flex-wrap: wrap; }
.projet-meta-label { font-size: 11px; color: var(--gris); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; }
.projet-meta-val { font-size: 14px; font-weight: 500; color: var(--bleu); }
.projet-content { max-width: 760px; margin: 0 auto; padding: 52px 40px; }
.projet-bloc { margin-bottom: 44px; }
.projet-bloc-label { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bleu); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.projet-bloc-texte { font-size: 15px; color: var(--noir); line-height: 1.8; }
.projet-visuels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.projet-visuel { aspect-ratio: 16/9; background: var(--bleu-pale); border-radius: 8px; overflow: hidden; border: 1px solid var(--border); position: relative; }
.projet-visuel img { width: 100%; height: 100%; object-fit: cover; }
.projet-visuel-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--bleu-mid); opacity: 0.4; font-size: 12px; }
.projet-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.projet-chiffre { background: var(--bleu-pale); border-radius: 8px; padding: 20px; border-left: 3px solid var(--bleu); border-radius: 0 8px 8px 0; }
.projet-chiffre-val { font-family: 'DM Serif Display', serif; font-size: 26px; color: var(--bleu); line-height: 1; margin-bottom: 6px; }
.projet-chiffre-label { font-size: 12px; color: var(--gris); line-height: 1.5; }

/* Responsive */
@media (max-width: 700px) {
  nav { padding: 0 20px; }
  .nav-links { gap: 14px; }
  .hero { padding: 40px 20px 36px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: row; }
  .hero-stat-val, .hero-stat-label { text-align: left; }
  .hero-title { font-size: 36px; }
  .section { padding: 36px 20px; }
  .projets-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .projet-header { padding: 36px 20px 28px; }
  .projet-meta-bar { padding: 12px 20px; gap: 16px; }
  .projet-content { padding: 36px 20px; }
  .projet-visuels { grid-template-columns: 1fr; }
  .projet-chiffres { grid-template-columns: 1fr 1fr; }
  footer { padding: 20px; flex-direction: column; gap: 8px; text-align: center; }
}
