:root {
  --accent: #ff3300;
  --accent-dark: #c22700;
  --text: #1a1a1a;
  --text-soft: #444;
  --text-muted: #555;
  --line: #e4e4e2;
  --bg-alt: #f7f7f6;
  --max: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --mono: ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
.logos img, .partner-logos img, .funder img { max-width: none; flex: none; }
h1, h2, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

section[id] { scroll-margin-top: 64px; }

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 20;
  background: var(--text);
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
}
.skip-link:focus { top: 8px; color: #fff; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* En-tête */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 22px;
  padding-bottom: 22px;
}
.logos { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.logos a { line-height: 0; }
.logos .sep { width: 1px; height: 48px; background: #d6d6d3; }
.logo-heg { height: 58px; width: auto; }
.logo-unine { height: 78px; width: auto; margin: -12px -14px; }
.tagline { font-size: 14px; color: var(--text-muted); }

/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.menu {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}
.menu a { display: block; padding: 16px 0; color: var(--text-soft); }
.menu a:hover { color: var(--accent); }
.menu .brand { color: var(--text); font-weight: 700; }
.langs {
  display: flex;
  gap: 2px;
  flex: none;
  border-left: 1px solid var(--line);
  padding-left: 16px;
  font-size: 13px;
}
.langs a { padding: 4px 7px; color: var(--text-muted); }
.langs a:hover { color: var(--accent); text-decoration: none; }
.langs a[aria-current] {
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
}

/* Éléments communs */
.photo {
  position: relative;
  background: #e9e9e7;
  overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(26, 26, 26, .78);
  color: #fff;
  font: 11px/1.3 var(--mono);
  padding: 5px 8px;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}
.section-title {
  position: relative;
  margin-top: 23px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 24px;
}
.section-title::before {
  content: "";
  position: absolute;
  top: -23px;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--accent);
}
#projet-titre { margin-bottom: 28px; }
#fiche-titre { margin-bottom: 12px; }
#documents-titre { margin-bottom: 20px; }
#equipe-titre { margin-bottom: 36px; }
.section { border-top: 1px solid #ececea; }
.section--alt { background: var(--bg-alt); }
.section > .wrap { padding-top: 80px; padding-bottom: 80px; }
.prose { font-size: 17px; line-height: 1.7; text-wrap: pretty; }
.prose p + p { margin-top: 18px; }

/* Hero */
.hero .photo { height: clamp(280px, 42vw, 520px); }
.hero .photo figcaption { left: auto; bottom: auto; right: 12px; top: 12px; }
.hero .photo img { object-position: 50% 35%; }
.hero .wrap { padding-bottom: 72px; }
.hero-card {
  position: relative;
  background: #fff;
  margin-top: -96px;
  padding: 40px clamp(24px, 4vw, 48px) 8px;
  max-width: 860px;
}
.hero h1 {
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.02em;
}
.hero .subtitle {
  margin-top: 16px;
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.35;
  color: var(--text-soft);
}
.hero .lead {
  margin-top: 24px;
  max-width: 640px;
  font-size: 18px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* Le projet */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.split--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.photo--portrait { aspect-ratio: 3 / 4; max-height: 640px; }
.photo--snow img { object-position: 50% 35%; }
.risks { margin-top: 40px; }
.risks h3 { font-size: 14px; font-weight: 700; margin: 0 0 14px; }
.risks ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.risks li {
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
}
.risks li::before {
  content: counter(risk, decimal-leading-zero);
  counter-increment: risk;
  display: block;
  font-size: 12px;
  line-height: normal;
  color: var(--accent);
  margin-bottom: 8px;
}
.risks ol { counter-reset: risk; }

/* Fiche projet */
.intro { font-size: 16px; color: var(--text-muted); max-width: 640px; margin-bottom: 36px; }
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  column-gap: 48px;
  border-top: 1px solid var(--text);
}
.facts > div {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.45;
}
.facts dt { color: #666; }
.facts .strong { font-weight: 700; }
.status::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
}

/* Enquêtes */
.waves {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}
.wave {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid #cfcfcb;
  padding: 28px;
}
.wave--current { border-top-color: var(--accent); }
.wave--muted { background: transparent; border-top: 1px solid var(--line); }
.wave header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--text-muted);
}
.wave h3 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0; color: var(--text-muted); }
.wave--current h3 { color: var(--accent); }
.wave .when { font-size: 26px; line-height: normal; font-weight: 700; margin-bottom: 10px; }
.wave p { font-size: 15px; line-height: 1.55; color: var(--text-soft); }

/* Documents */
.documents .wrap { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); align-items: flex-start; }
.documents .side { flex: 1 1 280px; max-width: 360px; }
.documents .side p { font-size: 16px; line-height: 1.65; color: var(--text-soft); text-wrap: pretty; }
.doc-list { flex: 999 1 480px; min-width: 0; border-top: 1px solid var(--text); }
.doc-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.doc-title { font-size: 16px; font-weight: 700; line-height: 1.35; }
.doc-type { font-size: 13px; color: #666; margin-top: 4px; }
.doc-status { font-size: 13px; color: #666; white-space: nowrap; }
a.doc-status { font-weight: 600; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.doc-title a:hover, a.doc-status:hover { text-decoration: underline; }

/* Équipe */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
}
.person {
  background: #fff;
  border: 1px solid var(--line);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.person .role { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #666; margin-bottom: 8px; }
.person--lead .role { color: var(--accent); }
.person h3 { font-size: 19px; font-weight: 700; margin: 0; }
.person p { font-size: 15px; color: var(--text-soft); }
.person .mail {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #ececea;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* Partenaires */
.partners { background: #fff; }
.partners .wrap { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.partner-group { display: flex; flex-direction: column; gap: 14px; }
.partner-group h2 { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #666; font-weight: 400; }
.partner-logos { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.partner-logos a { line-height: 0; }
.logo-heg-sm { height: 52px; width: auto; }
.logo-unine-sm { height: 72px; width: auto; margin: -10px 0; }
.funder { display: flex; align-items: center; gap: 18px; color: var(--text); }
.funder:hover { color: var(--text); text-decoration: none; }
.funder img { height: 48px; width: auto; }
.funder .sep { width: 1px; align-self: stretch; background: #cfcfcb; }
.funder span:last-child { font-size: 13px; line-height: 1.35; }

/* Pied de page */
.site-footer { background: #2a2a2a; color: #d8d8d6; }
.site-footer a { color: #d8d8d6; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 28px;
  font-size: 14px;
  line-height: 1.65;
}
.footer-grid h2 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.footer-grid address { font-style: normal; }
.footer-grid ul { display: flex; flex-direction: column; gap: 2px; }
.footer-grid li a { display: block; }
.footer-grid .contact a { text-decoration: underline; }
.copyright {
  border-top: 1px solid #444;
  padding-top: 18px;
  padding-bottom: 28px;
  font-size: 12px;
  line-height: 15px;
  color: #bdbdbb;
}

.sprite { position: absolute; width: 0; height: 0; }
