/* MILIM — base commune. Les réglages de la page se concentrent ici. */
:root {
  --color-paper: #fff;
  --color-ink: #78866b;
  --color-heading: #596d48;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --text-size: .875rem;
  --title-size: 1.25rem;
  --content-width: 71%;
  --content-max: 1750px;
  --gutter: clamp(16px, 1.4vw, 32px);
  --section-space: clamp(48px, 4.2vw, 96px);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-size); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
.site-header { min-height: 124px; padding: 42px 5.1% 30px 2.4%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.header-logo { width: 52px; flex: 0 0 auto; }
.navigation { list-style: none; display: flex; flex-wrap: wrap; gap: 28px; margin: 0; padding: 0; font-size: 11px; font-weight: 300; letter-spacing: 1px; line-height: 1.5; }
.navigation span { cursor: default; }
.project { width: var(--content-width); max-width: var(--content-max); margin-inline: auto; }
.project-heading { text-align: center; padding-top: 33px; }
h1, h2 { color: var(--color-heading); font-family: var(--font-heading); font-weight: 700; letter-spacing: 2px; line-height: 1.4; }
h1 { margin: 0; font-size: var(--title-size); }
.project-location { font-size: 12px; letter-spacing: 4px; margin: 24px 0 0; line-height: 1.5; }
.project-intro { max-width: 90%; margin: 68px auto 54px; line-height: 1.3; letter-spacing: .55px; }
.project-images > * + * { margin-top: var(--section-space); }
.hero { width: 100%; }
.image-grid { display: grid; gap: var(--gutter); }
.image-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.image-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.image-grid img { width: 100%; }
.project-story { display: grid; grid-template-columns: minmax(0, 29%) minmax(0, 1fr); gap: var(--gutter); align-items: start; }
.project-story > img { width: 100%; }
h2 { margin: -4px 0 26px; font-size: 1.125rem; }
.story-copy { max-width: 850px; }
.story-copy p { margin: 0 0 24px; line-height: 1.5; letter-spacing: .5px; }
.site-footer { position: relative; min-height: 156px; display: flex; align-items: center; padding: 48px 4.5%; gap: 32px; }
.site-footer .navigation { gap: 22px; font-size: 11px; letter-spacing: 0; }
.footer-logo { width: 65px; position: absolute; left: 50%; transform: translateX(-50%); }
@media (min-width: 1800px) { :root { --text-size: .9375rem; } .site-header { min-height: 150px; } .project-heading { padding-top: 40px; } }
@media (max-width: 1024px) {
  :root { --content-width: 86%; }
  .site-header { padding: 30px 7%; min-height: 100px; }
  .header-logo { width: 36px; }
  .project-heading { padding-top: 28px; }
  .project-intro { max-width: 100%; margin-block: 48px 40px; }
  .project-story { grid-template-columns: minmax(0, 33%) minmax(0, 1fr); }
  .site-footer { padding-inline: 7%; justify-content: space-between; }
  .footer-logo { position: static; transform: none; width: 55px; }
}
@media (max-width: 600px) {
  :root { --content-width: calc(100% - 40px); --gutter: 14px; --section-space: 40px; --title-size: 1.2rem; }
  .site-header { padding: 24px 20px; min-height: 108px; flex-direction: column; gap: 24px; }
  .header-logo { width: 46px; }
  .navigation { justify-content: center; gap: 18px; font-size: 10px; letter-spacing: .7px; }
  .project-heading { padding-top: 34px; }
  .project-location { margin-top: 18px; }
  .project-intro { margin-block: 38px 34px; line-height: 1.55; letter-spacing: .2px; }
  .image-grid--three, .image-grid--two, .project-story { grid-template-columns: minmax(0, 1fr); }
  .image-grid { gap: 24px; }
  .project-story { gap: 32px; }
  h2 { font-size: 1rem; margin: 0 0 24px; }
  .story-copy p { letter-spacing: .2px; }
  .story-copy p:last-child { margin-bottom: 0; }
  .site-footer { flex-direction: column; padding: 40px 20px 32px; gap: 32px; }
  .site-footer .navigation { font-size: 10px; gap: 18px; }
  .footer-logo { width: 55px; }
}

/* Retour vers la homepage locale. */
.navigation a { color: inherit; text-decoration: none; }
.navigation a:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }

/* Texte courant : mêmes corps et graisse légère que la homepage. */
.project-intro, .story-copy p { font-weight: 300; }
.header-home { display: block; flex: 0 0 auto; }
.header-home:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }
@media (max-width: 600px) { :root { --text-size: .9375rem; } }

/* Micro-ajustement cohérent avec la homepage : corps -3 %. */
.project-intro, .story-copy p { font-size: calc(var(--text-size) * .97); }
.project-intro { letter-spacing: calc(.55px + .005em); }
.story-copy p { letter-spacing: calc(.5px + .005em); }
.navigation { font-size: 10.67px; letter-spacing: calc(1px + .005em); }
.site-footer .navigation { font-size: 10.67px; letter-spacing: .005em; }
@media (max-width: 600px) {
  .project-intro, .story-copy p { letter-spacing: calc(.2px + .005em); }
  .navigation, .site-footer .navigation { font-size: 9.7px; }
  .navigation { letter-spacing: calc(.7px + .005em); }
}

/* Navigation à 75 %, sans changement d’interlettrage ni de gouttières. */
.navigation { font-size: 8.0025px; letter-spacing: 1.05335px; }
.site-footer .navigation { font-size: 8.0025px; letter-spacing: .05335px; }
@media (max-width: 600px) {
  .navigation, .site-footer .navigation { font-size: 7.275px; }
  .navigation { letter-spacing: .7485px; }
  .site-footer .navigation { letter-spacing: .0485px; }
}

/* Pages projets : état compact permanent, sans transition de géométrie.
   L’espace initial réservé par le script conserve la position des contenus. */
body > .site-header.is-scroll-ready,
body > .site-header.is-scroll-ready img { transition: none; }

/* Bandeau projet : 60 % de la hauteur compacte précédente. */
body > .site-header.is-scroll-ready {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  height: calc((24px + clamp(78px, 6vw, 110px) * 109 / 230) * .6);
  min-height: 0;
  padding-block: 3px;
}
body > .site-header.is-scroll-ready img { width: 39px; transform: none; }
@media (min-width: 601px) and (max-width: 1024px) {
  body > .site-header.is-scroll-ready img { width: 27px; }
}
@media (max-width: 600px) {
  body > .site-header.is-scroll-ready { height: 49.82px; padding-block: 3px; gap: 0; }
  body > .site-header.is-scroll-ready img { width: 34.5px; }
}
