:root {
  --ink: #101318;
  --navy: #0c1016;
  --paper: #f4f1ea;
  --card: #fffdf8;
  --muted: #5a6270;
  --line: #d8d2c6;
  --yellow: #e6b800;
  --yellow-hot: #ffd000;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
address { font-style: normal; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--yellow);
  color: #111;
  padding: 0.6rem 1rem;
  z-index: 20;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.55rem 6vw;
  background: rgba(12, 16, 22, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230, 184, 0, 0.35);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #f4f1ea;
}
.brand img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
}
.brand strong {
  display: block;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
}
.brand em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  color: #b8b3a8;
  max-width: 14rem;
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-size: 0.88rem;
}
.top nav a {
  text-decoration: none;
  color: #ece7dc;
}
.top nav a:hover { color: var(--yellow-hot); }

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  color: #f7f4ee;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 45%;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.25) 0%, rgba(8, 10, 14, 0.82) 72%),
    linear-gradient(90deg, rgba(8, 10, 14, 0.55), transparent 55%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 8rem 6vw 4.5rem;
  max-width: 44rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--yellow);
  margin: 0 0 0.7rem;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.8rem; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.2rem; }
.lead, .intro {
  color: #d5d0c6;
  font-size: 1.08rem;
  max-width: 40rem;
}
.intro { color: var(--muted); margin: 0 0 1.8rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }

.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 0.75rem 1.15rem;
  border-radius: 2px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.btn-yellow { background: var(--yellow-hot); color: #111; }
.btn-yellow:hover { background: #ffe36a; }
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-ghost:hover { border-color: var(--yellow-hot); color: var(--yellow-hot); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.6rem 6vw;
  background: var(--navy);
  color: #f4f1ea;
  border-top: 3px solid var(--yellow);
}
.stats div { text-align: center; }
.stats strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--yellow-hot);
}
.stats span { color: #c9c3b7; font-size: 0.92rem; }

.block { padding: 4.2rem 6vw; }
.block.alt { background: #ece7dc; }
.block h2 { max-width: 22ch; }

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.4rem;
  align-items: center;
  margin-bottom: 2.4rem;
}
.frame {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(16, 19, 24, 0.18);
}
.frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.mosaic {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.mosaic img, .mosaic-cards img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}
.mosaic p, figcaption {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 1rem;
}
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards article {
  background: var(--card);
  padding: 1.35rem 1.3rem 1.5rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--yellow);
}

.logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  align-items: center;
}
.logos li {
  background: #fff;
  border: 1px solid var(--line);
  min-height: 88px;
  display: grid;
  place-items: center;
  padding: 0.7rem 0.9rem;
}
.logos img {
  max-height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.82;
}
.logos img:hover { filter: none; opacity: 1; }

.tool {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  background: var(--navy);
  color: #f4f1ea;
  padding: 1.3rem 1.4rem;
  border-left: 4px solid var(--yellow);
}
.tool em { display: block; font-style: normal; color: #c9c3b7; font-size: 0.92rem; margin-top: 0.25rem; }
.tool-go { color: var(--yellow-hot); font-weight: 700; white-space: nowrap; }

.contact a { color: var(--ink); font-weight: 600; }
.contact address p { margin: 0.35rem 0; }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.3rem 6vw;
  background: var(--navy);
  color: #b8b3a8;
  font-size: 0.88rem;
}
.foot a { color: var(--yellow-hot); text-decoration: none; }

@media (max-width: 900px) {
  .top { flex-direction: column; align-items: flex-start; padding: 0.7rem 5vw; }
  .split, .cards.three, .mosaic, .stats { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
  .hero-copy { padding: 6.5rem 5vw 3rem; }
  .block { padding: 3rem 5vw; }
}

/* --- Sous-titres de section --- */
.sub {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 2.6rem 0 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.block .sub:first-of-type { margin-top: 2rem; }

/* --- Titres et affiliations (bloc expert) --- */
.creds {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.creds li {
  padding-left: 1rem;
  border-left: 3px solid var(--yellow);
  font-size: 0.96rem;
  color: var(--muted);
}
.creds strong { color: var(--ink); font-weight: 600; }

/* --- Listes de references (missions, formations, publications) --- */
.refs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.refs li {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow);
  padding: 1.2rem 1.3rem 1.3rem;
  display: flex;
  flex-direction: column;
}
.ref-meta {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.ref-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.55rem;
}
.ref-body { margin: 0 0 0.9rem; font-size: 0.95rem; }
.ref-client {
  margin: auto 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

/* --- Listes d'institutions --- */
.orgs {
  max-width: 78ch;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .refs { grid-template-columns: 1fr; }
}
