:root {
  --stone: #EEEFEA;
  --paper: #F8F8F5;
  --slate: #1E272C;
  --lake: #3F5F6C;
  --molasse: #8C8A6A;
  --line: #C9CBC2;
  --muted: #5B6468;
  --trait: #C8452F;
  --gutter: clamp(1rem, 4vw, 3rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --stone: #192125;
    --paper: #141B1E;
    --slate: #E9EBE5;
    --lake: #8FB0BD;
    --molasse: #B4B28F;
    --line: #34403F;
    --muted: #A3ADB0;
    --trait: #E0654F;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-variation-settings: "wdth" 100;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}
a { color: var(--lake); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
figure { margin: 0; min-width: 0; }
img { display: block; max-width: 100%; }
.wrap { max-width: 88rem; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- En-tête ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  padding: .6rem var(--gutter);
  color: var(--slate);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: background .3s, color .3s, border-color .3s;
}
.top.on-dark { color: #fff; background: transparent; border-color: transparent; }
.mark { display: inline-grid; justify-items: start; color: inherit; text-decoration: none; line-height: 1; font-size: 3rem; }
.mark-name { font-weight: 750; font-variation-settings: "wdth" 100; line-height: .86; white-space: nowrap; }
.mark svg { width: auto; height: .8em; vertical-align: -.11em; margin-right: .065em; }
.top.on-dark .mark rect { fill: #EF6A52; }
.mark-sub { margin: .6em 0 0 -.06em; font-weight: 500; font-size: .2032em; white-space: nowrap; }
.top-nav { display: flex; align-items: center; gap: 1.75rem; }
.top-nav a { color: inherit; text-decoration: none; font-size: .95rem; font-weight: 500; }
.top-nav a:not(.nav-cta):hover { text-decoration: underline; }
.top-nav .nav-cta { padding: .4rem 1rem; border: 1px solid currentColor; }
.top-nav .nav-cta:hover { background: var(--slate); color: var(--paper); border-color: var(--slate); }
.top.on-dark .nav-cta:hover { background: #fff; color: #1E272C; border-color: #fff; }
.menu-btn {
  appearance: none; background: none; border: 0; color: inherit; cursor: pointer;
  padding: .5rem; margin-right: -.5rem; display: none; place-items: center;
}
.menu-btn svg { width: 28px; height: 28px; }
.menu-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.menu {
  position: fixed; inset: 0; z-index: 30; display: none; flex-direction: column;
  background: var(--paper); color: var(--slate); padding: 1rem var(--gutter) 2rem;
}
.menu.open { display: flex; }
.menu .menu-btn { display: grid; }
.menu-head { display: flex; justify-content: space-between; align-items: center; }
.menu nav { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2rem; }
.menu nav a {
  color: var(--slate); text-decoration: none; line-height: 1.15;
  font-weight: 650; font-size: clamp(1.5rem, 6vw, 2.2rem);
}
.menu nav a:hover, .menu nav a.accent { color: var(--lake); }

@media (max-width: 1040px) {
  .top-nav { display: none; }
  .top > .menu-btn { display: grid; }
}

/* ---------- Séquences au défilement ---------- */
.scrub { position: relative; background: #1E272C; }
.scrub-hero { height: 520vh; }
.scrub-rise { height: 460vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: #fff; }
.scrub-hero .stage { background: #1E272C url("images/poster-hero.jpg") center / cover no-repeat; }
.scrub-rise .stage { background: #1E272C url("images/poster-chantier.jpg") center / cover no-repeat; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,28,32,.42) 0, rgba(20,28,32,0) 22%, rgba(20,28,32,0) 45%, rgba(20,28,32,.72) 100%);
}
.copy {
  position: absolute; inset: auto 0 clamp(4.5rem, 11vh, 7rem) 0;
  display: grid; padding: 0 var(--gutter);
}
.reveal-line { grid-area: 1 / 1; align-self: end; margin: 0; opacity: 0; will-change: opacity, transform; }
.copy h1 {
  margin: 0; font-weight: 750; font-variation-settings: "wdth" 62;
  font-size: clamp(3.1rem, 10.5vw, 10rem); line-height: .9; letter-spacing: -.01em;
}
.copy h1 span { display: block; font-weight: 300; }
.statement {
  max-width: 44rem; text-wrap: balance; font-weight: 500; font-variation-settings: "wdth" 80;
  font-size: clamp(1.7rem, 4vw, 3.4rem); line-height: 1.08;
}
.statement.big {
  max-width: none; font-weight: 750; font-variation-settings: "wdth" 62;
  font-size: clamp(3rem, 9.5vw, 9rem); line-height: .92;
}
.scroll-hint {
  position: absolute; left: var(--gutter); bottom: 1.5rem;
  display: flex; align-items: center; gap: .6rem; font-size: .85rem; transition: opacity .4s;
}
.scroll-hint i { display: block; width: 2.5rem; height: 1px; background: currentColor; transform-origin: left; animation: hint 2s ease-in-out infinite; }
@keyframes hint { 0%, 100% { transform: scaleX(.35); } 50% { transform: scaleX(1); } }
.progress { position: absolute; inset: auto 0 0; height: 2px; background: rgba(255,255,255,.18); }
.progress i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }

/* ---------- Bande de repères ---------- */
.strip { background: #1E272C; color: #F8F8F5; border-top: 1px solid rgba(248,248,245,.14); }
.strip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip-grid div { padding: 1.6rem 1.5rem; border-left: 1px solid rgba(248,248,245,.16); }
.strip-grid div:first-child { border-left: 0; padding-left: 0; }
.strip-grid span { display: block; font-size: .85rem; color: #B9C0BE; }
.strip-grid strong { display: block; margin-top: .25rem; font-weight: 500; font-variation-settings: "wdth" 80; font-size: clamp(1.25rem, 2.2vw, 1.8rem); line-height: 1.15; }

/* ---------- Sections ---------- */
.band { padding: clamp(4.5rem, 8vw, 7rem) 0; }
.band-tight { padding-top: clamp(2.5rem, 4vw, 3.5rem); }
.band-stone { background: var(--stone); }
.eyebrow {
  display: flex; align-items: center; gap: .75rem; margin: 0 0 1.25rem;
  font-size: .95rem; font-weight: 500; color: var(--muted);
}
.eyebrow b { color: var(--trait); font-weight: 600; }
.eyebrow b::after { content: ""; display: inline-block; width: 2.25rem; height: 1px; margin-left: .75rem; vertical-align: middle; background: currentColor; }
h2 {
  margin: 0; font-weight: 700; font-variation-settings: "wdth" 70; line-height: 1.02; text-wrap: balance;
  font-size: clamp(2.2rem, 4.6vw, 4rem); letter-spacing: -.005em;
}
.lead { margin: 1.75rem 0 0; font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.45; }
.section-head { margin-bottom: clamp(2.25rem, 4vw, 3.5rem); max-width: 56rem; }

/* La société */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--line); }
.about-img img { width: 100%; height: 112%; object-fit: cover; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: clamp(2rem, 4vw, 3rem) 0 0; }
.facts div { border-top: 1px solid var(--slate); padding-top: .9rem; }
.facts dt { font-weight: 300; font-variation-settings: "wdth" 62; font-size: clamp(3rem, 6vw, 5.25rem); line-height: 1; }
.facts dd { margin: .5rem 0 0; color: var(--muted); }

/* Feuille de dessin */
.sheet {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  background-color: var(--stone);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 25%, 8.333% 100%;
  background-blend-mode: normal;
  border: 1px solid var(--slate);
}
.sheet svg { display: block; width: 100%; height: auto; padding: clamp(.75rem, 2vw, 1.5rem) clamp(.5rem, 2vw, 1.5rem) 0; }
.sheet path { fill: none; stroke: var(--slate); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.sheet .ground { stroke-width: 2.2; }
.sheet .dim path { stroke: var(--trait); stroke-width: 1; }
.cartouche {
  display: grid; grid-template-columns: 2fr 1.5fr 1fr; background: var(--paper);
  border-top: 1px solid var(--slate); font-size: .9rem;
}
.cartouche span { padding: .7rem 1rem; border-left: 1px solid var(--slate); }
.cartouche span:first-child { border-left: 0; }
.cartouche b { font-weight: 600; }

/* Activités */
.activities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.card {
  display: flex; flex-direction: column; background: var(--paper); color: var(--slate);
  text-decoration: none; padding-bottom: 1.5rem; transition: background .3s, color .3s;
}
.card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-img img { transform: scale(1.05); }
.card-img-logo { display: grid; place-items: center; background: #F8F8F5; border-bottom: 1px solid var(--line); }
.card-img-logo img { width: 52%; height: auto; object-fit: contain; }
.card-num { margin: 1.25rem 1.5rem 0; color: var(--trait); font-weight: 600; font-size: .95rem; }
.card h3 { margin: 1.25rem 1.5rem .6rem; font-weight: 600; font-variation-settings: "wdth" 85; font-size: clamp(1.4rem, 2.1vw, 1.8rem); line-height: 1.12; }
.card p { margin: 0 1.5rem; color: var(--muted); flex: 1; }
.card-more { margin: 1.25rem 1.5rem 0; font-weight: 600; font-size: .95rem; color: var(--lake); }
.card-more::after { content: " →"; }

/* Architecture */
.steps {
  list-style: none; margin: 0 0 clamp(2.5rem, 5vw, 4rem); padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 1.5vw, 1.25rem);
}
.steps li { display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; align-items: baseline; padding-top: .8rem; border-top: 1px solid var(--line); }
.steps b { color: var(--trait); font-weight: 600; }
.steps span { font-weight: 500; line-height: 1.25; }
.about-img, .card-img { position: relative; }
.mosaic {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.2vw, 2rem); align-items: stretch;
}
.mosaic figure { display: flex; flex-direction: column; }
.mosaic img { width: 100%; flex: 1; min-height: 0; object-fit: cover; background: var(--line); }
.mosaic figcaption, .duo figcaption { margin-top: .6rem; font-size: .92rem; color: var(--muted); }
.m-a { grid-column: 1 / span 8; grid-row: 1; }
.m-a img { aspect-ratio: 1063 / 421; flex: none; height: auto; }
.m-b { grid-column: 9 / span 4; grid-row: 1 / span 2; }
.m-c { grid-column: 1 / span 4; grid-row: 2; }
.m-d { grid-column: 5 / span 4; grid-row: 2; }

/* Investissement immobilier */
.banner { position: relative; min-height: min(86vh, 52rem); display: flex; align-items: flex-end; overflow: hidden; background: #1E272C; color: #fff; }
.banner > img { position: absolute; inset: -8% 0 auto; width: 100%; height: 116%; max-width: none; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,28,32,.12) 20%, rgba(20,28,32,.82) 100%); }
.banner-copy { position: relative; z-index: 1; width: 100%; padding-top: 8rem; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.banner h2 { max-width: 52rem; }
.banner .eyebrow { color: #E6E8E1; }
.banner .eyebrow b { color: #fff; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--slate); }
.pillars div { display: flex; align-items: baseline; gap: 1rem; padding: 1rem 1.5rem 1.5rem; border-left: 1px solid var(--slate); }
.pillars div:first-child { border-left: 0; padding-left: 0; }
.pillars span { color: var(--trait); font-weight: 600; font-size: .95rem; }
.pillars h3 { margin: 0; font-weight: 300; font-variation-settings: "wdth" 70; font-size: clamp(1.8rem, 3.6vw, 3.2rem); line-height: 1.05; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 2.2vw, 2rem); }
.duo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--line); }

/* Projet numérique */
.project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; background: var(--stone); }
.project-logo {
  display: grid; place-items: center; min-height: clamp(16rem, 32vw, 28rem); padding: 2rem;
  background-color: #F8F8F5;
  background-image: linear-gradient(#DADBD3 1px, transparent 1px), linear-gradient(90deg, #DADBD3 1px, transparent 1px);
  background-size: 3rem 3rem;
  border: 1px solid var(--line); border-right: 0;
}
.project-logo img { width: min(62%, 22rem); height: auto; }
.project-text { padding: clamp(2rem, 5vw, 4.5rem); align-self: center; }
.button {
  display: inline-block; margin-top: 1.75rem; padding: .85rem 1.6rem; font-weight: 600; text-decoration: none;
  background: var(--slate); color: var(--paper); border: 1px solid var(--slate); transition: background .25s, color .25s, border-color .25s;
}
.button:hover { background: var(--lake); border-color: var(--lake); color: #fff; }
.button-light { background: #F8F8F5; color: #1E272C; border-color: #F8F8F5; margin-top: 0; }
.button-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); margin-top: 0; }
.button-light:hover, .button-ghost:hover { background: var(--trait); border-color: var(--trait); color: #fff; }

/* Contact */
.contact-band { position: relative; overflow: hidden; background: #1E272C; color: #F8F8F5; }
.contact-band > img { position: absolute; inset: -8% 0 auto; width: 100%; height: 116%; max-width: none; object-fit: cover; }
.contact-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,28,32,.86) 0, rgba(20,28,32,.62) 60%, rgba(20,28,32,.5) 100%); }
.contact {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2.5rem clamp(2rem, 5vw, 5rem); align-items: end;
  padding-top: clamp(5rem, 11vw, 9rem); padding-bottom: clamp(4rem, 8vw, 6rem);
}
.contact-band .eyebrow { color: #E6E8E1; }
.contact-band .eyebrow b { color: #fff; }
.contact h2 { font-size: clamp(2.6rem, 6.5vw, 6rem); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.contact-card { margin: 0; background: rgba(20,28,32,.62); border: 1px solid rgba(248,248,245,.24); backdrop-filter: blur(6px); }
.contact-card div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 1rem 1.25rem; border-top: 1px solid rgba(248,248,245,.2); }
.contact-card div:first-child { border-top: 0; }
.contact-card dt { color: #B9C0BE; }
.contact-card dd { margin: 0; min-width: 0; }

footer { padding: 1.5rem 0 1.75rem; font-size: .9rem; background: #141B1E; color: #B9C0BE; overflow: hidden; }
footer a { color: #E6E8E1; }
.footer-top {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 2rem clamp(1.5rem, 4vw, 4rem); align-items: end; padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}
/* Same logo as the header: its sizes are in em, so it scales from font-size alone. */
.footer-logo { font-size: clamp(4.5rem, 14.75vw, 14rem); color: #F8F8F5; }
.footer-logo rect { fill: #EF6A52; }
.footer-nav { display: flex; flex-direction: column; gap: .35rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-address { font-style: normal; line-height: 1.5; }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid rgba(248,248,245,.18); }

/* ---------- Apparition ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(0 0 12% 0); opacity: 0; transition: clip-path 1.1s cubic-bezier(.2,.7,.2,1), opacity .6s ease; }
.reveal-img.in { clip-path: inset(0); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-img { opacity: 1; transform: none; clip-path: none; transition: none; }
  .scroll-hint i { animation: none; }
  .card-img img { transition: none; }
}

@media (max-width: 900px) {
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-grid div { padding: 1.1rem 1rem; }
  .strip-grid div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .strip-grid div:nth-child(n+3) { border-top: 1px solid rgba(248,248,245,.16); }
  .about, .activities, .project, .contact, .duo { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .footer-logo { grid-column: 1 / -1; font-size: 25vw; }
  .project-logo { border-right: 1px solid var(--line); border-bottom: 0; }
  .about-img { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 1.5rem; }
  .m-a, .m-b, .m-c, .m-d { grid-column: 1 / -1; grid-row: auto; }
  .m-b img { aspect-ratio: 4 / 5; flex: none; height: auto; }
  .pillars { grid-template-columns: minmax(0, 1fr); border-bottom: 0; }
  .pillars div { padding: .9rem 0; border-left: 0; border-bottom: 1px solid var(--slate); }
}
@media (max-width: 760px) {
  .cartouche { grid-template-columns: minmax(0, 1fr); }
  .cartouche span { border-left: 0; border-top: 1px solid var(--slate); padding: .5rem .8rem; }
  .cartouche span:first-child { border-top: 0; }
}
