:root {
  --paper: #f4f2ed;
  --paper-2: #e9e5dc;
  --ink: #1e2124;
  --graphite: #4f5459;
  --muted: #6d7177;
  --line: #d4cfc4;
  --board: #18305c;
  --chalk: #eef5fc;
  --blue: #24508f;
  --sky: #b8daf5;
  --max: 1080px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── Navigation ── */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
}
.brand { font-family: Georgia, serif; font-weight: 700; letter-spacing: 0.18em; color: var(--chalk); text-decoration: none; font-size: 15px; }
.nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.nav a.l { color: var(--chalk); text-decoration: none; font-size: 15px; opacity: .85; }
.nav a.l:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ── Hero : l'image de fond, montrée en entier, reste l'identité du site ── */
.hero { position: relative; background: var(--board); }
.hero img { width: 100%; height: auto; max-height: 100vh; object-fit: cover; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 90px; background: linear-gradient(180deg, rgba(24,48,92,.7), rgba(24,48,92,0)); pointer-events: none; }
.hero-text { background: var(--board); color: var(--chalk); padding: 52px 0 64px; }
.kicker { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); margin: 0 0 14px; }
.hero-text h1 { font-size: clamp(28px, 4.4vw, 50px); max-width: 18em; }
.hero-text p.lead { font-size: clamp(17px, 2vw, 20px); max-width: 38em; margin: 18px 0 30px; color: #c3d3e6; }
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 3px;
  background: var(--chalk); color: var(--board); text-decoration: none; font-weight: 600;
  border: 1px solid var(--chalk); transition: background .15s, color .15s;
}
.btn:hover { background: transparent; color: var(--chalk); }
.btn.ghost { background: transparent; color: var(--chalk); margin-left: 10px; }
.btn.ghost:hover { background: var(--chalk); color: var(--board); }

/* ── Sections ── */
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--line); }
.eyebrow { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); font-weight: 600; margin-bottom: 10px; }
h2 { font-size: clamp(26px, 3.4vw, 38px); max-width: 20em; }
.intro { color: var(--graphite); max-width: 40em; margin: 14px 0 0; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 44px; border-top: 2px solid var(--ink); }
.card { padding: 26px 26px 6px 0; }
.card + .card { padding-left: 26px; border-left: 1px solid var(--line); }
.card .num { font-family: Georgia, serif; color: var(--blue); font-size: 15px; margin-bottom: 14px; display: block; }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--graphite); margin: 0 0 14px; }
.card ul { margin: 0; padding: 0; list-style: none; color: var(--graphite); font-size: 15.5px; }
.card li { padding: 5px 0; border-top: 1px dashed var(--line); }

/* Méthode : tableau noir */
.board { background: var(--board); color: var(--chalk); border-top: 0 !important; }
.board .eyebrow { color: var(--sky); }
.board .intro { color: #c3d3e6; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 48px; counter-reset: s; }
.step { border-top: 1px solid rgba(236,234,228,.35); padding-top: 18px; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: Georgia, serif; font-size: 34px; color: rgba(236,234,228,.35); display: block; line-height: 1; margin-bottom: 14px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { margin: 0; color: #c3d3e6; font-size: 15.5px; }

/* Laboratoire */
.lab { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.lab a { display: block; padding: 26px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.lab a:hover { border-color: var(--blue); transform: translateY(-2px); }
.lab h3 { font-size: 21px; margin-bottom: 6px; }
.lab p { margin: 0; color: var(--graphite); font-size: 15.5px; }
.lab .go { display: inline-block; margin-top: 14px; color: var(--blue); font-weight: 600; font-size: 15px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.contact dl { margin: 0; }
.contact dt { font-size: 13px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-top: 18px; }
.contact dt:first-child { margin-top: 0; }
.contact dd { margin: 4px 0 0; font-size: 19px; }
.contact dd a { color: var(--ink); text-decoration-color: var(--blue); text-underline-offset: 4px; }
.contact .btn { background: var(--ink); color: var(--paper); border-color: var(--ink); margin-top: 26px; }
.contact .btn:hover { background: transparent; color: var(--ink); }

footer { background: var(--paper-2); padding: 26px 0; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* Pages simples */
.page { padding: 120px 0 80px; }
.page .nav { position: static; background: var(--board); }
.page-top { background: var(--board); }
.legal h2 { font-size: 22px; margin: 36px 0 8px; }
.legal p { color: var(--graphite); margin: 0 0 8px; max-width: 46em; }

@media (max-width: 860px) {
  .grid3, .steps, .lab, .contact { grid-template-columns: 1fr; }
  .card, .card + .card { padding: 24px 0 8px; border-left: 0; }
  .card + .card { border-top: 1px solid var(--line); }
  .steps { gap: 24px; }
  section { padding: 64px 0; }
  .contact { gap: 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { padding: 14px 16px; }
  .nav ul { gap: 14px; }
  .nav li.hide-sm { display: none; }
  .hero-text { padding: 36px 0 44px; }
  .btn.ghost { margin: 10px 0 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Parcours */
.timeline { list-style: none; margin: 40px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.timeline .when { font-family: Georgia, serif; color: var(--blue); font-size: 17px; padding-top: 2px; }
.timeline h3 { font-size: 20px; margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--graphite); }
.intro.small { font-size: 15px; margin-top: 22px; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }

/* 4 expertises : 2 x 2 */
.grid4 { grid-template-columns: repeat(2, 1fr); }
.grid4 .card { padding: 26px 26px 18px 0; }
.grid4 .card:nth-child(even) { padding-left: 26px; border-left: 1px solid var(--line); }
.grid4 .card:nth-child(odd) { border-left: 0; padding-left: 0; }
.grid4 .card:nth-child(n+3) { border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .grid4 { grid-template-columns: 1fr; }
  .grid4 .card, .grid4 .card:nth-child(even) { padding: 24px 0 8px; border-left: 0; }
}

/* Logo */
.brand img { height: 26px; width: auto; display: block; }
.foot-logo { height: 18px; width: auto; display: inline-block; vertical-align: -3px; margin-right: 8px; opacity: .9; }
.btn { color: var(--board); }
@media (max-width: 560px) { .brand img { height: 20px; } }
