:root {
  --paper: #f7f4ed;
  --surface: #fffefa;
  --ink: #18211d;
  --muted: #56615b;
  --line: #d5d2c8;
  --accent: #31584f;
  --accent-hover: #24463f;
  --accent-soft: #e5ede9;
  --contact: #284a43;
  --max: 1280px;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.55; text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 18px; z-index: 500; padding: 12px 16px; background: var(--accent); color: #fff; font-weight: 700; }
.skip-link:focus { top: 18px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.site-header { position: sticky; top: 0; z-index: 50; width: 100%; min-height: 84px; padding: 0 max(28px, calc((100vw - 1212px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(24, 33, 29, .14); background: rgba(247, 244, 237, .94); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: baseline; gap: 13px; text-decoration: none; }
.brand strong { font-size: 18px; font-weight: 750; letter-spacing: -.035em; }
.brand span { color: var(--muted); font-size: 14px; }
nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 650; }
nav a { min-height: 48px; display: inline-flex; align-items: center; text-decoration: none; }
nav a:not(.nav-contact):hover { color: var(--accent); }
.nav-contact { padding: 0 18px; gap: 26px; border: 1px solid var(--accent); color: var(--accent); }
.nav-contact:hover { background: var(--accent); color: #fff; }
.menu-toggle { display: none; }

.eyebrow { margin: 0; color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.hero { width: min(100%, var(--max)); min-height: calc(100svh - 84px); margin: 0 auto; padding: clamp(76px, 9vw, 126px) 34px clamp(84px, 10vw, 140px); display: flex; flex-direction: column; justify-content: space-between; }
.hero-grid { margin-top: clamp(68px, 9vw, 118px); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); gap: clamp(60px, 10vw, 145px); align-items: end; }
.hero h1 { max-width: 810px; margin: 0; font-size: clamp(62px, 7.7vw, 104px); font-weight: 650; letter-spacing: -.072em; line-height: .94; }
.hero h1 span { color: var(--accent); }
.hero-intro { padding-bottom: 7px; }
.hero-intro > p:first-child { max-width: 480px; margin: 0; font-size: clamp(19px, 1.65vw, 23px); line-height: 1.52; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 13px; }
.hero-response { margin: 20px 0 0; color: var(--muted); font-size: 13px; font-weight: 650; }
.button { min-height: 54px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 30px; border: 1px solid transparent; font-size: 15px; font-weight: 700; text-decoration: none; transition: transform .18s ease, background .18s ease, color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-hover); }
.text-link { min-height: 54px; padding: 0 8px; display: inline-flex; align-items: center; gap: 19px; border-bottom: 1px solid var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.location { margin: 32px 0 0; color: var(--muted); font-size: 14px; }

.section { padding: clamp(94px, 11vw, 150px) max(34px, calc((100vw - 1212px) / 2)); }
.section-heading { margin-bottom: clamp(52px, 6vw, 78px); display: grid; grid-template-columns: minmax(130px, .25fr) minmax(0, 1fr); gap: 34px; align-items: baseline; }
.section-heading h2 { margin: 0; font-size: clamp(40px, 4.6vw, 62px); font-weight: 650; letter-spacing: -.055em; line-height: 1.02; }

.projects { border-top: 1px solid var(--line); background: var(--surface); }
.project { min-height: 610px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr); border: 1px solid var(--line); background: var(--paper); }
.project + .project { margin-top: 36px; }
.project-image { min-height: 610px; overflow: hidden; background: var(--accent-soft); }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2, .7, .2, 1); }
.project-image:hover img { transform: scale(1.018); }
.project-copy { position: relative; padding: clamp(42px, 5vw, 68px); display: flex; flex-direction: column; align-items: flex-start; }
.project-status { margin: 0; display: flex; align-items: center; gap: 9px; color: var(--accent); font-size: 13px; font-weight: 750; }
.project-status > span { width: 8px; height: 8px; border-radius: 50%; background: #2d8a5a; }
.project-status-progress { color: var(--muted); }
.project-status-progress > span { background: var(--accent); opacity: .55; }
.project-copy h3 { margin: auto 0 26px; font-size: clamp(43px, 5vw, 68px); font-weight: 640; letter-spacing: -.06em; line-height: .96; }
.project-copy > p:not(.project-status) { max-width: 480px; margin: 0; font-size: 18px; line-height: 1.58; }
.project-link { margin-top: auto; display: inline-flex; align-items: center; gap: 28px; padding-bottom: 7px; border-bottom: 1px solid var(--ink); font-size: 15px; font-weight: 750; text-decoration: none; }
.project-link:hover { color: var(--accent); border-color: var(--accent); }
.project-coty { min-height: 460px; grid-template-columns: minmax(420px, .8fr) minmax(0, 1.2fr); }
.project-coty .project-image { order: 2; }
.project-coty .project-copy { order: 1; }
.project-coty .project-image { min-height: 460px; }
.project-coty .project-image img { object-position: center 49%; }
.projects-contact { margin-top: clamp(42px, 5vw, 64px); display: flex; align-items: center; justify-content: flex-end; gap: 26px; }
.projects-contact p { margin: 0; color: var(--muted); font-size: 15px; }

.services { border-top: 1px solid var(--line); background: var(--paper); }
.service-list { border-top: 1px solid var(--ink); }
.service-list article { min-height: 150px; padding: 30px 0; display: grid; grid-template-columns: 60px minmax(230px, .75fr) minmax(0, 1.25fr); gap: 28px; align-items: center; border-bottom: 1px solid var(--line); }
.service-list article > span { color: var(--accent); font-size: 13px; font-weight: 700; }
.service-list h3 { margin: 0; font-size: clamp(29px, 3vw, 42px); font-weight: 630; letter-spacing: -.045em; }
.service-list p { max-width: 610px; margin: 0; color: var(--muted); font-size: 17px; }

.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr); gap: clamp(64px, 10vw, 140px); background: var(--contact); color: #fff; }
.contact .eyebrow { color: #cfe1da; }
.contact h2 { max-width: 650px; margin: 24px 0 26px; font-size: clamp(48px, 6vw, 78px); font-weight: 620; letter-spacing: -.062em; line-height: .98; }
.contact-copy > p:last-child { max-width: 560px; margin: 0; color: #e5efeb; font-size: 18px; }
.contact-options { align-self: center; }
.contact-form { display: grid; gap: 19px; }
.contact-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-field { display: grid; gap: 8px; }
.contact-field label { color: #e5efeb; font-size: 13px; font-weight: 700; }
.contact-field label span { margin-left: 5px; color: #b9cec6; font-size: 11px; font-weight: 550; }
.contact-field :is(input, textarea) { width: 100%; padding: 15px 16px; border: 1px solid rgba(255,255,255,.42); border-radius: 0; background: rgba(255,255,255,.055); color: #fff; font: inherit; font-size: 16px; transition: border-color .18s ease, background .18s ease; }
.contact-field textarea { min-height: 138px; resize: vertical; }
.contact-field :is(input, textarea)::placeholder { color: #b9c8c3; opacity: 1; }
.contact-field :is(input, textarea):focus { border-color: #fff; background: rgba(255,255,255,.09); outline: 0; }
.contact-submit, .contact-copy-message { position: relative; width: 100%; min-height: 66px; padding: 16px 62px 16px 18px; display: flex; align-items: center; border: 1px solid #fff; border-radius: 0; background: #fff; color: var(--contact); font: inherit; text-align: left; cursor: pointer; }
.contact-submit strong, .contact-copy-message strong { font-size: 18px; font-weight: 750; }
.contact-submit i, .contact-copy-message i { position: absolute; right: 20px; top: 50%; font-size: 21px; font-style: normal; transform: translateY(-50%); transition: transform .18s ease; }
.contact-submit:hover i, .contact-copy-message:hover i { transform: translate(4px, calc(-50% - 3px)); }
.contact-submit:disabled { cursor: wait; opacity: .68; }
.contact-copy-message { background: transparent; color: #fff; }
.contact-copy-message[hidden] { display: none; }
.contact-options button:focus-visible { outline-color: #fff; }
.contact-help, .contact-status { margin: -7px 0 0; color: #cfe1da; font-size: 12px; }
.contact-status { min-height: 18px; }
.contact-status a { color: #fff; font-weight: 750; text-underline-offset: 3px; }
.contact-status[data-state="error"] { margin-top: 2px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.62); background: rgba(255,255,255,.08); color: #fff; font-size: 14px; line-height: 1.5; }
.contact-status[data-state="success"] { margin-top: 2px; padding: 15px 16px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid #fff; background: #fff; color: var(--contact); font-size: 14px; font-weight: 700; line-height: 1.5; }
.contact-status[data-state="success"]::before { content: "✓"; flex: 0 0 auto; font-size: 17px; line-height: 1.25; }
.contact-fallback { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.35); }
.contact-fallback > p { min-height: 18px; margin: 0; color: #cfe1da; font-size: 12px; }
.contact-fallback > div { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.contact-fallback a { color: #fff; font-size: 15px; font-weight: 650; text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact-fallback button { min-height: 40px; padding: 0 14px; border: 1px solid rgba(255,255,255,.65); background: transparent; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.contact-fallback [data-copy-status] { margin-top: 8px; }

footer { padding: 32px max(34px, calc((100vw - 1212px) / 2)); display: grid; grid-template-columns: 1fr auto auto auto; gap: 28px; align-items: center; border-top: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: 13px; }
.footer-brand { color: var(--ink); font-size: 16px; font-weight: 750; text-decoration: none; }
footer p, footer small { margin: 0; }
footer a { text-underline-offset: 4px; }

#projets, #services, #contact { scroll-margin-top: 84px; }
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .75, .25, 1); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-intro { max-width: 690px; }
  .project { min-height: 0; grid-template-columns: 1fr; }
  .project-image { min-height: 0; aspect-ratio: 16 / 10; }
  .project-coty { min-height: 0; grid-template-columns: 1fr; }
  .project-coty .project-image { min-height: 0; }
  .project-copy { min-height: 470px; }
  .project-coty .project-image { order: 1; }
  .project-coty .project-copy { order: 2; }
  .service-list article { grid-template-columns: 50px minmax(220px, .75fr) minmax(0, 1.25fr); }
  .contact { grid-template-columns: 1fr; }
  .contact-copy { max-width: 800px; }
  footer { grid-template-columns: 1fr auto; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header { min-height: 74px; padding: 0 20px; }
  .brand { align-items: flex-start; flex-direction: column; gap: 0; }
  .brand strong { font-size: 16px; }
  .brand span { font-size: 12px; }
  .menu-toggle { position: relative; z-index: 202; width: 46px; height: 46px; padding: 0; display: grid; place-content: center; gap: 7px; border: 1px solid var(--accent); background: var(--paper); color: var(--accent); }
  .menu-toggle > span:not(.sr-only) { width: 19px; height: 1px; background: currentColor; transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] > span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  nav { position: fixed; inset: 0; z-index: 201; padding: 106px 22px 34px; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 0; background: var(--paper); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, visibility .2s ease, transform .2s ease; }
  nav.open { opacity: 1; visibility: visible; transform: none; }
  nav a { min-height: 67px; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 22px; }
  .nav-contact { margin-top: 22px; padding: 0 17px; border: 1px solid var(--accent); }
  .hero { min-height: calc(100svh - 74px); padding: 62px 20px 70px; }
  .hero-grid { margin-top: 56px; gap: 42px; }
  .hero h1 { font-size: clamp(47px, 14vw, 64px); line-height: .97; }
  .hero-intro > p:first-child { font-size: 18px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; justify-content: space-between; }
  .text-link { align-self: flex-start; }
  .section { padding: 80px 20px; }
  .section-heading { margin-bottom: 42px; grid-template-columns: 1fr; gap: 13px; }
  .section-heading h2 { font-size: 38px; }
  .project + .project { margin-top: 22px; }
  .project-image { aspect-ratio: 4 / 3; }
  .project-copy { min-height: 430px; padding: 28px; }
  .project-copy h3 { font-size: 45px; }
  .project-copy > p:not(.project-status) { font-size: 16px; }
  .projects-contact { align-items: flex-start; flex-direction: column; gap: 8px; }
  .service-list article { min-height: 0; padding: 28px 0; grid-template-columns: 40px 1fr; gap: 12px; }
  .service-list h3 { font-size: 29px; }
  .service-list p { grid-column: 2; font-size: 16px; }
  .contact { gap: 55px; }
  .contact h2 { font-size: 46px; }
  .contact-copy > p:last-child { font-size: 16px; }
  .contact-options { width: 100%; }
  .contact-fallback > div { align-items: flex-start; flex-direction: column; }
  footer { padding: 28px 20px; grid-template-columns: 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
