:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --cream: #ffeed1;
  --blue: #79a3c4;
  --orange: #d98d18;
  --muted: #646464;
  --line: rgba(10, 10, 10, 0.16);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.section { padding: 112px 0; }
.section--tight { padding: 72px 0; }
.section--cream { background: var(--cream); }
.section--blue { background: var(--blue); }
.section--dark { color: var(--paper); background: var(--ink); }
.eyebrow { margin: 0 0 18px; color: var(--orange); font-size: .72rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.03; letter-spacing: -.045em; }
h1 { max-width: 940px; margin-bottom: 28px; font-size: clamp(3rem, 7vw, 7.2rem); font-weight: 560; }
h2 { max-width: 820px; margin-bottom: 40px; font-size: clamp(2.35rem, 4.5vw, 4.8rem); font-weight: 560; }
h3 { margin-bottom: 14px; font-size: clamp(1.35rem, 2vw, 2rem); font-weight: 600; }
.lead { max-width: 760px; font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.5; }
.measure { max-width: 720px; }
.muted { color: var(--muted); }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--paper); }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.16); color: var(--paper); background: rgba(10,10,10,.92); backdrop-filter: blur(14px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 750; letter-spacing: .08em; }
.brand-logo { width: auto; height: 54px; object-fit: contain; filter: invert(1); }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; color: var(--ink); background: var(--orange); font-size: 1.25rem; }
.brand small { display: block; color: rgba(255,255,255,.64); font-size: .56rem; letter-spacing: .17em; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); font-size: .77rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.nav a { padding: 8px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--orange); }
.nav .nav-cta { padding: 12px 16px; border: 1px solid rgba(255,255,255,.48); }
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { color: var(--ink); border-color: var(--orange); background: var(--orange); }
.menu-toggle { display: none; padding: 9px 0; color: var(--paper); border: 0; background: none; font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }

.hero { position: relative; min-height: min(880px, calc(100svh - 78px)); display: grid; align-items: end; color: var(--paper); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.18) 100%), linear-gradient(0deg, rgba(0,0,0,.48), transparent 55%); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; z-index: 1; padding: 150px 0 84px; }
.hero .eyebrow { color: var(--cream); }
.hero .lead { margin-bottom: 34px; color: rgba(255,255,255,.88); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 13px 22px; border: 1px solid var(--ink); color: var(--paper); background: var(--ink); font-size: .78rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; transition: background .2s, color .2s, border-color .2s; }
.button:hover { color: var(--ink); background: var(--orange); border-color: var(--orange); }
.button--light { color: var(--ink); border-color: var(--paper); background: var(--paper); }
.button--outline-light { color: var(--paper); border-color: rgba(255,255,255,.72); background: transparent; }
.button--outline { color: var(--ink); background: transparent; }
.button--orange { color: var(--ink); border-color: var(--orange); background: var(--orange); }
.text-link { display: inline-block; padding-bottom: 5px; border-bottom: 1px solid currentColor; font-weight: 700; }

.intro-grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 80px; align-items: start; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.service-card { min-height: 370px; display: flex; flex-direction: column; padding: 32px 28px 28px 0; border-right: 1px solid var(--line); }
.service-card + .service-card { padding-left: 28px; }
.service-card:last-child { border-right: 0; }
.service-number { margin-bottom: 70px; color: var(--orange); font-size: .75rem; font-weight: 750; }
.service-card p { color: var(--muted); text-align: justify; text-align-last: left; hyphens: auto; }
.service-card .text-link { margin-top: auto; align-self: flex-start; }
.project-type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.project-type { min-height: 250px; padding: 32px; background: var(--paper); }
.project-type span { display: block; margin-bottom: 80px; color: var(--orange); font-size: .72rem; font-weight: 750; }
.section-action { display: flex; justify-content: center; margin-top: 38px; }
.trust-projects { background: var(--cream); }
.trust-projects .project-card-info { background: var(--cream); }
.project-type-showcase { height: 570px; display: flex; gap: 10px; overflow: hidden; }
.project-type-card { position: relative; min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; color: var(--paper); background-color: var(--ink); background-position: center; background-size: cover; overflow: hidden; transition: flex .5s ease; }
.project-type-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.83)); transition: background .3s ease; }
.project-type-card:hover, .project-type-card:focus-visible { flex: 1.65; }
.project-type-card:hover::before, .project-type-card:focus-visible::before { background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.88)); }
.project-type-card > * { position: relative; z-index: 1; }
.project-type-card > span { color: var(--cream); font-size: .78rem; font-weight: 750; letter-spacing: .08em; }
.project-type-card h3 { max-width: 250px; margin: 0; font-size: clamp(1.45rem, 2.3vw, 2.25rem); }
.project-type-card p { max-height: 0; margin: 0; padding-top: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .35s ease, padding .35s ease; }
.project-type-card:hover p, .project-type-card:focus-visible p { max-height: 170px; padding-top: 18px; opacity: 1; }
.project-type-card--haussmann { background-image: url('/assets/val-de-grace-sejour-1.webp'); }
.project-type-card--heavy { background-image: url('/assets/chantier-renovation-lourde.webp'); }
.project-type-card--professional { background-image: url('/assets/raynouard-menuiserie.webp'); }
.project-type-card--copro { background-image: url('/assets/chantier-isolation.webp'); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 76px; }
.steps::before { content: ""; position: absolute; top: 27px; left: 12.5%; width: 75%; height: 3px; background: var(--orange); }
.step { position: relative; min-height: 230px; padding: 36px 26px 28px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 18px 46px rgba(10,10,10,.055); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.step + .step { padding-left: 26px; }
.step::after { content: ""; position: absolute; top: 0; left: 26px; width: 54px; height: 4px; background: var(--blue); }
.step:nth-child(even)::after { background: var(--orange); }
.step:hover { transform: translateY(-6px); border-color: rgba(10,10,10,.34); box-shadow: 0 24px 60px rgba(10,10,10,.09); }
.step-number { position: absolute; top: -76px; left: 50%; z-index: 1; display: grid; width: 56px; height: 56px; margin: 0; place-items: center; border: 6px solid var(--paper); border-radius: 50%; color: var(--paper); background: var(--ink); box-shadow: 0 0 0 1px var(--ink); font-size: .78rem; font-weight: 750; letter-spacing: .04em; transform: translateX(-50%); }
.step p { color: var(--muted); }

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.project-card { position: relative; overflow: hidden; background: var(--ink); }
.project-card img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform .55s ease; }
.project-card:hover img { transform: scale(1.025); }
.project-card-info { display: flex; justify-content: space-between; gap: 24px; padding: 22px 2px 0; background: var(--paper); }
.project-card h3 { margin: 0; font-size: 1.35rem; }
.project-card p { margin: 2px 0 0; color: var(--muted); font-size: .86rem; text-align: right; }
.feature-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 660px; }
.feature-split img { height: 100%; object-fit: cover; }
.feature-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 7vw, 110px); }
.feature-content h2 { font-size: clamp(2.2rem, 4vw, 4.2rem); }
.feature-content p { max-width: 590px; }
.feature-content .button { align-self: flex-start; margin-top: 22px; }

.page-hero { padding: 128px 0 82px; background: var(--cream); }
.page-hero h1 { max-width: 1030px; font-size: clamp(3rem, 6vw, 6.2rem); }
.page-hero .lead { margin-bottom: 32px; }
.page-hero--image { position: relative; min-height: 710px; display: grid; align-items: end; color: var(--paper); background: var(--ink); }
.page-hero--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.74), rgba(0,0,0,.08) 72%); }
.page-hero--image img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.page-hero--image .container { position: relative; z-index: 1; padding-bottom: 72px; }
.page-hero--image h1 { margin-bottom: 12px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 12px 28px; color: rgba(255,255,255,.82); }
.content-grid { display: grid; grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr); gap: 90px; }
.content-grid h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); }
.content-photo { width: 100%; aspect-ratio: 4 / 3; margin-top: 38px; object-fit: cover; }
.sticky-label { position: sticky; top: 120px; align-self: start; }
.capability-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.capability { min-height: 245px; padding: 30px; background: var(--paper); }
.capability span { display: block; margin-bottom: 64px; color: var(--orange); font-size: .72rem; font-weight: 750; }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.gallery figure { margin: 0; }
.gallery figure:nth-child(4n+1), .gallery figure:nth-child(4n+4) { grid-column: span 7; }
.gallery figure:nth-child(4n+2), .gallery figure:nth-child(4n+3) { grid-column: span 5; }
.gallery img { height: clamp(300px, 46vw, 650px); object-fit: cover; }
.project-story { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; }
.project-story article { padding-top: 20px; border-top: 1px solid var(--line); }
.project-story p { color: var(--muted); }
.next-project { display: flex; align-items: end; justify-content: space-between; gap: 32px; }

.cta-band { display: flex; align-items: end; justify-content: space-between; gap: 48px; }
.cta-band h2 { margin: 0; }
.local-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: end; }
.local-grid h2 { margin-bottom: 0; }

.contact-layout { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); gap: 80px; }
.contact-note { padding: 30px; background: var(--cream); }
.contact-note p:last-child { margin-bottom: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .75rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: transparent; outline: none; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--orange); }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: .82rem; color: var(--muted); }
.consent input { margin-top: 4px; }
.form-status { min-height: 26px; margin: 18px 0; font-weight: 650; }
.contact-honeypot { position: absolute; left: -9999px; }

.contact-modal { width: min(920px, calc(100% - 32px)); max-height: min(900px, calc(100dvh - 32px)); margin: auto; padding: 0; border: 0; color: var(--ink); background: var(--paper); overflow: auto; }
.contact-modal::backdrop { background: rgba(10, 10, 10, .78); backdrop-filter: blur(5px); }
.contact-modal__panel { position: relative; display: grid; grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr); gap: 54px; padding: clamp(32px, 6vw, 70px); }
.contact-modal__intro { padding-right: 10px; }
.contact-modal__intro h2 { margin-bottom: 24px; font-size: clamp(2.2rem, 4vw, 3.8rem); }
.contact-modal__intro p:last-child { color: var(--muted); }
.contact-modal__close { position: absolute; top: 18px; right: 22px; padding: 7px 0; border: 0; border-bottom: 1px solid currentColor; color: var(--ink); background: transparent; font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.contact-modal__close:hover { color: var(--orange); }
.contact-modal .field textarea { min-height: 120px; }
.contact-modal .button[disabled] { cursor: wait; opacity: .58; }

.site-footer { padding: 64px 0 30px; color: var(--paper); background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(2, .7fr); gap: 60px; }
.footer-grid h3 { font-size: 1.05rem; letter-spacing: 0; }
.footer-grid a { display: block; margin: 0 0 9px; color: rgba(255,255,255,.72); }
.footer-grid a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 58px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.5); font-size: .78rem; }

@media (max-width: 980px) {
  .container { width: min(calc(100% - 36px), var(--max)); }
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; z-index: 60; width: 100%; height: calc(100dvh - 78px); display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 30px 18px; overflow-y: auto; color: var(--paper); background: #0a0a0a; border-top: 1px solid rgba(255,255,255,.16); box-shadow: 0 28px 60px rgba(0,0,0,.48); }
  .nav.is-open { display: flex; }
  .nav a { padding: 18px 6px; border-bottom: 1px solid rgba(255,255,255,.15); }
  .nav .nav-cta { margin-top: 16px; text-align: center; }
  .intro-grid, .content-grid, .contact-layout { grid-template-columns: 1fr; gap: 42px; }
  .sticky-label { position: static; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card, .service-card + .service-card { min-height: auto; padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .service-card:last-child { border-bottom: 0; }
  .service-number { margin-bottom: 34px; }
  .steps { grid-template-columns: 1fr; gap: 18px; padding: 0 0 0 86px; }
  .steps::before { top: 28px; bottom: 28px; left: 27px; width: 3px; height: auto; }
  .step, .step + .step { min-height: 0; padding: 28px 30px; text-align: left; }
  .step-number { top: 50%; left: -86px; transform: translateY(-50%); }
  .step:hover { transform: translateX(5px); }
  .feature-split { grid-template-columns: 1fr; }
  .feature-split img { min-height: 520px; }
  .feature-content { min-height: 520px; }
  .project-type-showcase { height: auto; display: grid; grid-template-columns: repeat(2, 1fr); }
  .project-type-card { min-height: 430px; }
  .project-type-card p { max-height: 170px; padding-top: 18px; opacity: 1; }
  .project-story { grid-template-columns: 1fr; gap: 24px; }
  .local-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 76px 0; }
  .section--tight { padding: 52px 0; }
  .header-inner { min-height: 68px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-logo { height: 46px; }
  .nav { height: calc(100dvh - 68px); }
  .hero { min-height: 720px; }
  .hero-content { padding: 120px 0 54px; }
  h1 { font-size: clamp(3.1rem, 15vw, 5rem); }
  h2 { font-size: clamp(2.25rem, 11vw, 3.45rem); }
  .actions { align-items: stretch; flex-direction: column; }
  .actions .button, .actions .text-link { width: 100%; text-align: center; }
  .project-type-grid, .projects-grid, .capability-grid { grid-template-columns: 1fr; }
  .project-type-showcase { grid-template-columns: 1fr; }
  .project-type-card { min-height: 380px; }
  .section-action { justify-content: stretch; }
  .section-action .button { width: 100%; }
  .project-type { min-height: 210px; }
  .steps { padding-left: 68px; }
  .steps::before { left: 22px; }
  .step, .step + .step { padding: 24px 22px; }
  .step-number { left: -68px; width: 48px; height: 48px; border-width: 5px; }
  .project-card-info { flex-direction: column; gap: 4px; }
  .project-card p { text-align: left; }
  .feature-split img { min-height: 430px; }
  .page-hero { padding: 90px 0 62px; }
  .page-hero--image { min-height: 630px; }
  .gallery { gap: 10px; }
  .gallery figure, .gallery figure:nth-child(n) { grid-column: 1 / -1; }
  .gallery img { height: auto; aspect-ratio: 4 / 3; }
  .cta-band, .next-project { align-items: stretch; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .contact-modal { width: calc(100% - 18px); max-height: calc(100dvh - 18px); }
  .contact-modal__panel { grid-template-columns: 1fr; gap: 24px; padding: 54px 22px 28px; }
  .contact-modal__intro h2 { margin-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}


/* Consentement et mesure d’audience */
.cookie-banner[hidden] { display: none; }
.cookie-banner {
  position: fixed;
  z-index: 1200;
  right: 22px;
  bottom: 22px;
  left: 22px;
  max-width: 860px;
  margin: 0 auto;
  padding: 24px;
  color: #151515;
  background: #f6f1e8;
  border: 1px solid rgba(21, 21, 21, .28);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .2);
}
.cookie-banner__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}
.cookie-banner .eyebrow { margin-bottom: 8px; color: #a44d2c; }
.cookie-banner h2 { margin: 0 0 10px; font-size: clamp(1.45rem, 3vw, 2rem); }
.cookie-banner p { max-width: 620px; margin: 0; line-height: 1.55; }
.cookie-banner__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(135px, 1fr));
  gap: 10px;
}
.cookie-choice,
.cookie-settings {
  font: inherit;
  cursor: pointer;
}
.cookie-choice {
  min-height: 48px;
  padding: 11px 16px;
  color: #151515;
  background: transparent;
  border: 1px solid #151515;
  transition: color .2s ease, background .2s ease;
}
.cookie-choice:hover,
.cookie-choice:focus-visible {
  color: #fff;
  background: #151515;
}
.cookie-settings {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 720px) {
  .cookie-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 20px;
  }
  .cookie-banner__content { grid-template-columns: 1fr; gap: 20px; }
  .cookie-banner__actions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .cookie-banner__actions { grid-template-columns: 1fr; }
}
