:root {
  color-scheme: dark;
  --paper: #eeeae0;
  --ink: #10130f;
  --muted: #a8ada1;
  --line: rgba(238, 234, 224, 0.18);
  --page: clamp(1.25rem, 4.2vw, 5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  background: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
.skip-link { position: fixed; z-index: 20; top: .75rem; left: .75rem; padding: .75rem 1rem; color: var(--ink); background: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.page-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem var(--page);
  border-bottom: 1px solid rgba(255,255,255,.22);
}
.brand { display: grid; text-decoration: none; line-height: .8; }
.brand strong { font-size: 1.45rem; letter-spacing: .11em; }
.brand small { margin-top: .45rem; font-size: .49rem; letter-spacing: .38em; }
.page-header nav { display: flex; justify-content: center; gap: clamp(1rem, 3vw, 3rem); }
.page-header nav a, .header-cta { font-size: .67rem; font-weight: 650; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.header-cta { padding: .85rem 1rem; border: 1px solid rgba(255,255,255,.65); }
.page-hero {
  position: relative;
  display: flex;
  min-height: min(52rem, 92svh);
  align-items: end;
  overflow: hidden;
  padding: 9rem var(--page) clamp(4rem, 8vw, 7rem);
  isolation: isolate;
}
.page-hero__picture { position: absolute; z-index: -2; inset: 0; }
.page-hero__media { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(110deg, rgba(6,9,7,.93) 0%, rgba(6,9,7,.55) 58%, rgba(6,9,7,.2) 100%), linear-gradient(0deg, rgba(6,9,7,.7), transparent 55%); }
.hero-copy { max-width: 76rem; }
.eyebrow, .section-label { margin: 0 0 1.6rem; color: #d0d3c9; font-size: .67rem; font-weight: 650; letter-spacing: .22em; text-transform: uppercase; }
.page-hero h1 { max-width: 70rem; margin: 0; font-size: clamp(3rem, 7.6vw, 8.5rem); font-weight: 430; line-height: .86; letter-spacing: -.06em; text-transform: uppercase; }
.page-hero__lead { max-width: 49rem; margin: 2.25rem 0 0; font-size: clamp(1.05rem, 1.55vw, 1.38rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.25rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1rem 1.2rem; color: var(--ink); background: var(--paper); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.button--ghost { color: var(--paper); background: transparent; border: 1px solid rgba(255,255,255,.55); }
.breadcrumbs { padding: 1rem var(--page); color: var(--muted); font-size: .72rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .55rem; max-width: 100rem; margin: auto; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: " / "; margin-left: .55rem; opacity: .55; }
.content-section { padding: clamp(5rem, 10vw, 10rem) var(--page); }
.content-section--light { color: var(--ink); background: var(--paper); }
.content-grid { display: grid; grid-template-columns: minmax(13rem,.65fr) minmax(20rem,1.5fr); gap: 2rem clamp(3rem, 9vw, 10rem); max-width: 100rem; margin: auto; }
.content-grid h2, .related h2 { margin: 0; font-size: clamp(2.15rem, 4.8vw, 5.8rem); font-weight: 430; line-height: .95; letter-spacing: -.055em; text-transform: uppercase; }
.prose { max-width: 54rem; }
.prose > p { margin: 0 0 1.35rem; color: #4e544b; font-size: clamp(1rem, 1.25vw, 1.17rem); line-height: 1.75; }
.prose h3 { margin: 3.25rem 0 1rem; font-size: clamp(1.45rem, 2.2vw, 2.35rem); font-weight: 520; letter-spacing: -.035em; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid rgba(16,19,15,.25); border-left: 1px solid rgba(16,19,15,.25); list-style: none; }
.feature-list li { min-height: 9rem; padding: 1.35rem; border-right: 1px solid rgba(16,19,15,.25); border-bottom: 1px solid rgba(16,19,15,.25); }
.feature-list strong { display: block; margin-bottom: .6rem; font-size: 1.05rem; }
.feature-list span { color: #5d6359; font-size: .9rem; line-height: 1.5; }
.process { max-width: 100rem; margin: auto; }
.process h2 { max-width: 65rem; margin: 0 0 4rem; font-size: clamp(2.2rem, 5vw, 6rem); font-weight: 430; line-height: .95; letter-spacing: -.055em; text-transform: uppercase; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); padding: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); list-style: none; }
.steps li { min-height: 14rem; padding: 1.6rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps span { color: var(--muted); font-size: .7rem; letter-spacing: .15em; }
.steps strong { display: block; margin: 4rem 0 .75rem; font-size: 1.45rem; font-weight: 500; }
.steps p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.proof { display: grid; grid-template-columns: 1fr 1fr; max-width: 100rem; margin: auto; background: #171b16; }
.proof img { width: 100%; height: 100%; min-height: 30rem; object-fit: cover; }
.proof div { align-self: center; padding: clamp(2rem, 6vw, 6rem); }
.proof h2 { margin: 0 0 1.5rem; font-size: clamp(2rem,4vw,4.5rem); font-weight: 430; line-height: .95; letter-spacing: -.05em; text-transform: uppercase; }
.proof p { color: var(--muted); line-height: 1.7; }
.project-video { display: block; width: 100%; height: auto; background: #090b09; }
.project-facts { display: grid; grid-template-columns: repeat(2, 1fr); margin: 2rem 0; border-top: 1px solid rgba(16,19,15,.25); border-left: 1px solid rgba(16,19,15,.25); }
.project-facts div { padding: 1.25rem; border-right: 1px solid rgba(16,19,15,.25); border-bottom: 1px solid rgba(16,19,15,.25); }
.project-facts dt { color: #686e64; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.project-facts dd { margin: .6rem 0 0; font-size: 1.05rem; }
.faq { max-width: 78rem; margin: auto; }
.faq h2 { margin: 0 0 3rem; font-size: clamp(2.2rem,5vw,5.8rem); font-weight: 430; line-height: .95; letter-spacing: -.055em; text-transform: uppercase; }
.faq details { border-top: 1px solid rgba(16,19,15,.25); }
.faq details:last-child { border-bottom: 1px solid rgba(16,19,15,.25); }
.faq summary { padding: 1.45rem 2rem 1.45rem 0; cursor: pointer; font-size: clamp(1.05rem,1.5vw,1.35rem); font-weight: 550; }
.faq details p { max-width: 56rem; margin: 0 0 1.75rem; color: #535950; line-height: 1.7; }
.related { max-width: 100rem; margin: auto; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 3.5rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.related-grid a { min-height: 12rem; padding: 1.5rem; text-decoration: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.related-grid small { color: var(--muted); letter-spacing: .15em; }
.related-grid strong { display: block; margin-top: 4rem; font-size: 1.35rem; font-weight: 500; }
.project-showcase { border-top: 1px solid var(--line); }
.project-showcase__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 3rem; }
.project-showcase__grid a { position: relative; min-width: 0; text-decoration: none; }
.project-showcase__grid picture { height: clamp(18rem, 26vw, 29rem); margin-bottom: 1rem; overflow: hidden; background: #1a1d18; }
.project-showcase__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.project-showcase__grid a:hover img { transform: scale(1.025); }
.project-showcase__grid small { display: block; color: var(--muted); font-size: .66rem; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; }
.project-showcase__grid strong { display: block; margin-top: .45rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 2vw, 1.8rem); font-weight: 400; line-height: 1.08; }
.project-showcase__grid span { display: inline-block; margin-top: .9rem; font-size: .67rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.page-footer { padding: 4rem var(--page) 2rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; max-width: 100rem; margin: auto; }
.page-footer h2 { margin: 0; font-size: clamp(2rem,4vw,4.5rem); font-weight: 430; letter-spacing: -.05em; }
.page-footer nav { display: grid; align-content: start; gap: .85rem; }
.page-footer nav a { color: var(--muted); font-size: .82rem; text-decoration: none; }
.page-footer address { color: var(--muted); font-size: .82rem; font-style: normal; line-height: 1.7; }
.page-footer__legal { max-width: 100rem; margin: 3rem auto 0; padding-top: 1.5rem; color: #71776d; font-size: .68rem; border-top: 1px solid var(--line); }

/* Réalisations publiées depuis l’administration */
.catalog-hero {
  min-height: min(43rem, 78svh);
  display: grid;
  align-content: end;
  padding: 10rem var(--page) clamp(4rem, 8vw, 7rem);
  background: radial-gradient(circle at 78% 22%, #293026 0, transparent 34%), #10130f;
}
.catalog-hero h1,
.project-detail__hero h1 {
  max-width: 78rem;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.3rem, 7.6vw, 8.7rem);
  font-weight: 400;
  line-height: .87;
  letter-spacing: -.065em;
}
.catalog-hero > p:last-child { max-width: 43rem; margin: 2rem 0 0; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.project-catalog { max-width: 100rem; margin: auto; padding: clamp(4rem, 8vw, 8rem) var(--page); }
.project-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(20rem, .75fr); min-height: 34rem; border-top: 1px solid var(--line); }
.project-card:last-child { border-bottom: 1px solid var(--line); }
.project-card:nth-child(even) { grid-template-columns: minmax(20rem, .75fr) minmax(0, 1.25fr); }
.project-card:nth-child(even) .project-card__media { order: 2; }
.project-card__media,
.project-card__media picture { min-height: 34rem; height: 100%; overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.project-card__media:hover img { transform: scale(1.025); }
.project-card > div { align-self: center; padding: clamp(2rem, 5vw, 5rem); }
.project-card h2 { margin: 0 0 1.25rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 4vw, 4.7rem); font-weight: 400; line-height: .98; letter-spacing: -.05em; }
.project-card h2 a,
.text-link { text-decoration: none; }
.project-card > div > p:not(.section-label) { color: var(--muted); line-height: 1.7; }
.text-link { display: inline-flex; gap: 1.25rem; margin-top: 1.2rem; padding-bottom: .35rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid currentColor; }

.project-detail__hero { position: relative; min-height: min(54rem, 92svh); display: flex; align-items: end; overflow: hidden; isolation: isolate; }
.project-detail__hero > picture { position: absolute; z-index: -2; inset: 0; }
.project-detail__hero-media { width: 100%; height: 100%; object-fit: cover; }
.project-detail__hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(8,10,8,.9), rgba(8,10,8,.25) 70%), linear-gradient(0deg, rgba(8,10,8,.7), transparent 55%); }
.project-detail__hero-copy { width: 100%; padding: 10rem var(--page) clamp(4rem, 8vw, 7rem); }
.project-detail__hero-copy > p:last-child { max-width: 44rem; margin: 2rem 0 0; font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.7; }
.project-intro .project-facts { margin-top: 2rem; }
.project-comparisons,
.project-gallery-section,
.other-projects,
.project-cta { padding: clamp(4rem, 8vw, 8rem) var(--page); }
.project-comparisons,
.other-projects { max-width: 100rem; margin: auto; }
.project-comparisons h2,
.project-gallery-section h2,
.other-projects h2,
.project-cta h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 5.5vw, 6.5rem); font-weight: 400; line-height: .92; letter-spacing: -.055em; }
.project-comparison { position: relative; aspect-ratio: 16 / 9; margin-top: 3rem; overflow: hidden; background: #232720; touch-action: pan-y; user-select: none; }
.project-comparison__image,
.project-comparison__image picture,
.project-comparison__image img { position: absolute; inset: 0; width: 100%; height: 100%; }
.project-comparison__image img { object-fit: cover; }
.project-comparison__after { clip-path: inset(0 0 0 var(--position)); }
.project-comparison input { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.project-comparison__line { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--position); width: 1px; background: rgba(255,255,255,.9); transform: translateX(-50%); pointer-events: none; }
.project-comparison__line i { position: absolute; top: 50%; left: 50%; display: grid; width: 3rem; height: 3rem; place-items: center; color: var(--ink); background: var(--paper); border-radius: 50%; font-style: normal; transform: translate(-50%,-50%); }
.project-comparison__label { position: absolute; z-index: 2; top: 1rem; padding: .55rem .7rem; font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: rgba(8,10,8,.72); }
.project-comparison__label--before { left: 1rem; }
.project-comparison__label--after { right: 1rem; }
.project-gallery-section { border-top: 1px solid var(--line); }
.project-gallery-section > header { max-width: 100rem; display: grid; grid-template-columns: 1fr auto; align-items: end; margin: 0 auto 2.5rem; }
.project-gallery-section > header .section-label { grid-column: 1 / -1; }
.project-gallery-section > header > span { color: var(--muted); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.project-gallery { max-width: 100rem; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin: auto; }
.project-gallery figure { margin: 0; background: #171b16; }
.project-gallery picture { height: clamp(18rem, 31vw, 35rem); }
.project-gallery img { width: 100%; height: 100%; object-fit: cover; }
.project-gallery figcaption { padding: .8rem 1rem; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.other-projects__heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.other-projects__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 3rem; }
.other-projects__grid a { text-decoration: none; }
.other-projects__grid picture { height: 20rem; margin-bottom: 1rem; overflow: hidden; }
.other-projects__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.other-projects__grid a:hover img { transform: scale(1.025); }
.other-projects__grid span { color: var(--muted); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.other-projects__grid strong { display: block; margin-top: .5rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 400; }
.project-cta { text-align: center; background: #e8e2d6; color: var(--ink); }
.project-cta p:not(.section-label) { max-width: 38rem; margin: 1.5rem auto; color: #555b52; line-height: 1.7; }
.project-cta .button { margin-top: 1rem; color: var(--paper); background: var(--ink); }
@media (max-width: 1050px) {
  .page-header { grid-template-columns: auto auto; justify-content: space-between; }
  .page-header nav { display: none; }
}
@media (max-width: 800px) {
  .content-grid, .proof, .footer-grid { grid-template-columns: 1fr; }
  .feature-list, .steps, .related-grid, .project-facts { grid-template-columns: 1fr; }
  .proof img { min-height: 22rem; }
  .page-hero { min-height: 46rem; }
  .catalog-hero { min-height: 37rem; }
  .project-card,
  .project-card:nth-child(even) { grid-template-columns: 1fr; min-height: 0; }
  .project-card:nth-child(even) .project-card__media { order: 0; }
  .project-card__media,
  .project-card__media picture { min-height: 23rem; height: 23rem; }
  .project-detail__hero { min-height: 43rem; }
  .project-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-gallery picture { height: 24rem; }
  .other-projects__grid { grid-template-columns: 1fr; }
  .other-projects__grid picture { height: 24rem; }
  .other-projects__heading { align-items: start; flex-direction: column; }
  .project-showcase__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .project-gallery { grid-template-columns: 1fr; }
  .project-gallery picture { height: auto; max-height: none; }
  .project-gallery img { height: auto; object-fit: contain; }
  .project-comparison { aspect-ratio: 4 / 3; }
  .project-detail__hero h1,
  .catalog-hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .project-showcase__grid { grid-template-columns: 1fr; }
  .project-showcase__grid picture { height: auto; max-height: 31rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (prefers-reduced-motion: reduce) { .project-card__media img, .other-projects__grid img { transition: none; } }
