@font-face {
  font-family: "Inter";
  src: url("fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-300-italic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
  :root {
    --dark: #1A1B20; --cream: #F7F5F0; --bronze: #B8976A; --bronze-light: #EDE3D3; --grey: #4A4A4F;
    --muted: rgba(247,245,240,.68); --line: rgba(247,245,240,.16);
    --serif: "Source Serif 4", Georgia, serif; --sans: "Inter", system-ui, -apple-system, sans-serif;
    --pad: clamp(1.25rem, 5vw, 4rem); --max: 1240px; --ease: cubic-bezier(.2,.7,.2,1); --nav-compact-height: 80px; --nav-logo-offset: 38px; --nav-logo-width: 196px; --nav-logo-shrink: .28;
  }
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-compact-height) + 8px); }
  body { margin: 0; background: var(--cream); color: var(--grey); font: 400 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
  img { max-width: 100%; display: block; }
  a { color: inherit; }
  h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--dark); margin: 0; line-height: 1.15; }
  p { margin: 0; }
  .wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
  .label { font: 500 .75rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); }
  section { padding: clamp(4rem, 10vw, 7.5rem) 0; }
  .section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
  .section-head h2.label { font: 500 .8rem/1 var(--sans); letter-spacing: .22em; color: var(--bronze); display: flex; align-items: center; gap: 1rem; }
  .section-head h2.label::after { content: ""; width: 48px; height: 1px; background: var(--bronze); }

  .logo { display: block; flex: none; text-decoration: none; line-height: 0; }
  .logo.full { display: inline-block; }
  .logo.full img { width: clamp(165px, 18vw, 210px); height: auto; margin: 0; }

  .nav {
    --p: 1;
    --nav-state: var(--p);
    position: fixed; inset: 0 0 auto; z-index: 50; color: var(--cream);
    pointer-events: none;
  }
  .nav-home { --p: 0; }
  .nav::before {
    content: ""; position: absolute; inset: 0; opacity: var(--nav-state);
    background: rgba(26,27,32,.94);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .nav::after {
    content: ""; position: absolute; inset: auto 0 0; height: 1px;
    background: var(--bronze); opacity: clamp(0, (var(--nav-state) - .85) / .15, 1);
  }
  .nav .wrap {
    display: flex; align-items: center; justify-content: space-between; height: var(--nav-compact-height);
    transform: translateY(calc((1 - var(--nav-state)) * var(--nav-logo-offset)));
  }
  .nav .logo {
    width: var(--nav-logo-width); transform-origin: left center;
    transform: scale(calc(1 - var(--nav-state) * var(--nav-logo-shrink) + (1 - var(--nav-state)) * .08));
    will-change: transform;
  }
  .nav .logo img { width: 100%; height: auto; }
  .nav a, .nav button { pointer-events: auto; }
  .nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2.25rem; }
  .nav ul a { text-decoration: none; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; padding: .4rem 0; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
  .nav ul a:hover, .nav ul a:focus-visible { border-color: var(--bronze); }
  .nav ul a.cta { padding: .75rem 1.2rem; border: 1px solid rgba(184,151,106,.7); }
  .nav ul a.cta:hover, .nav ul a.cta:focus-visible { background: var(--bronze); color: var(--dark); }
  .menu-veil { display: none; }
  .burger { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: inherit; }
  .burger span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 5px 0; transition: transform .25s, opacity .25s; }
  @media (max-width: 820px) {
    :root {
      --nav-compact-height: 64px; --nav-logo-offset: 29px;
      --nav-logo-width: clamp(118px, 35vw, 144px); --nav-logo-shrink: .16;
    }
    html.menu-locked { overflow: hidden; }
    html.menu-locked body { position: fixed; top: var(--menu-scroll-top); inset-inline: 0; width: 100%; }
    .nav {
      --expanded: calc(1 - var(--nav-state));
      --row-offset: calc(var(--expanded) * var(--nav-logo-offset));
      --logo-scale: calc(1 - var(--nav-state) * var(--nav-logo-shrink) + var(--expanded) * .08);
      --logo-half-height: calc(var(--nav-logo-width) * var(--logo-scale) * 501 / 1047 / 2);
      --menu-header-height: max(var(--nav-compact-height), calc(var(--nav-compact-height) / 2 + var(--row-offset) + var(--logo-half-height) + var(--expanded) * 8px));
      height: var(--menu-header-height);
    }
    .nav .wrap { transform: none; }
    .nav .logo { transform: translateY(var(--row-offset)) scale(var(--logo-scale)); }
    .nav.menu-open .menu-veil {
      display: block; position: absolute; inset: 100% 0 auto;
      width: 100%; height: calc(100dvh - var(--menu-header-height));
      padding: 0; border: 0; background: rgba(0,0,0,.35); cursor: pointer;
    }
    .burger { display: block; margin-left: auto; transform: translateY(var(--row-offset)); }
    .nav ul {
      position: absolute; inset: 100% 0 auto;
      max-height: calc(100dvh - var(--menu-header-height)); overflow-y: auto; overscroll-behavior: contain;
      flex-direction: column; gap: 0; padding: .5rem var(--pad) 1.25rem;
      background: var(--cream); color: var(--dark); box-shadow: 0 8px 20px rgba(26,27,32,.18);
      visibility: hidden; opacity: 0; transform: translateY(8px);
      transition: transform .25s var(--ease), opacity .25s var(--ease), visibility 0s .25s;
    }
    .nav.menu-open ul { visibility: visible; opacity: 1; transform: translateY(0); transition-delay: 0s; pointer-events: auto; }
    .nav ul a, .nav ul a.cta { display: block; padding: .9rem 0; border: 0; border-bottom: 1px solid rgba(26,27,32,.08); }
    .nav ul a.cta:hover { background: none; color: var(--bronze); }
    .nav.menu-open::before { opacity: 1; background: var(--dark); backdrop-filter: none; -webkit-backdrop-filter: none; }
    .nav.menu-open::after { opacity: 1; }
    .nav.menu-open::before, .nav.menu-open::after { transition: none; }
    .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  }

  @media (max-width: 768px) {
    .nav-home { --nav-state: 0; }
    .nav-home.is-scrolled { --nav-state: 1; }
    .nav::before { background: rgba(26,27,32,.96); backdrop-filter: none; -webkit-backdrop-filter: none; }
    .nav::before, .nav::after { transition: opacity .3s var(--ease); }
    .nav .logo, .nav .burger { transition: transform .3s var(--ease); }
    .hero { background-attachment: scroll; }
  }

  /* Hero (demo-2) */
  .hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--nav-compact-height) + 2 * var(--nav-logo-offset) + 1.75rem) 0 calc(clamp(2.5rem, 7vh, 4.5rem) + clamp(2.5rem, 6vw, 5rem)); color: var(--muted);
    background: #24252b url("img/immeubles.webp") center/cover no-repeat; isolation: isolate; }
  .nav-sentinel { position: absolute; inset: 0 auto auto 0; width: 1px; height: 24px; pointer-events: none; }
  .hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(26,27,32,.74) 0%, rgba(26,27,32,.6) 35%, rgba(26,27,32,.97) 100%); }
  .hero .wrap { width: 100%; }
  .hero-slogan { display: flex; align-items: center; gap: .75rem; font-size: .8625rem; color: #CDAE80; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
  .hero-slogan::before { content: ""; flex: 0 0 32px; height: 1px; background: currentColor; }
  .hero h1 { margin-top: 1.5rem; font-weight: 300; color: var(--cream); font-size: clamp(2rem, 5vw, 4.32rem); letter-spacing: -.02em; line-height: 1.03; max-width: 21ch; }
  .hero h1 em { font-style: italic; color: var(--bronze-light); }
  .hero .intro { margin-top: clamp(1.5rem, 3.5vh, 2.25rem); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 54ch; color: rgba(247,245,240,.8); }

  /* Services dès l'accueil */
  .svc-row { list-style: none; margin: calc(clamp(2.5rem, 6vh, 3.75rem) + clamp(1.625rem, 4.5vw, 3.125rem)) 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
  .svc-row a { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; align-items: baseline; padding: 1.15rem 0; border-bottom: 1px solid var(--line); text-decoration: none; height: 100%; }
  .svc-row a::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 1px; background: var(--bronze); transition: width .6s var(--ease); }
  .svc-row a:hover::before, .svc-row a:focus-visible::before { width: 100%; }
  .svc-row .n { font: 400 .95rem/1 var(--serif); color: var(--bronze); }
  .svc-row strong { font: 400 clamp(1.1rem, 1.5vw, 1.25rem)/1.25 var(--serif); color: var(--cream); transition: color .25s; }
  .svc-row a:hover strong, .svc-row a:focus-visible strong { color: var(--bronze-light); }
  @media (min-width: 600px) {
    .svc-row { grid-template-columns: 1fr 1fr; column-gap: 2rem; border-top: 0; }
    .svc-row a { grid-template-columns: 1fr; align-content: start; gap: .6rem 1rem; padding: 1.4rem 0 1.5rem; border-top: 1px solid var(--line); border-bottom: 0; }
  }
  @media (min-width: 1000px) { .svc-row { grid-template-columns: repeat(4, 1fr); } }

  .rule { height: 3px; background: var(--bronze); }

  /* Numbered grids (demo-1) */
  .grid-2 { display: grid; gap: 2.75rem 4rem; }
  @media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
  .item { border-top: 1px solid var(--dark); padding-top: 1.5rem; display: grid; gap: .75rem; align-content: start; }
  .item .num { font: 500 1.05rem/1 var(--serif); color: var(--bronze); letter-spacing: .05em; }
  .item h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); }
  .item p { max-width: 46ch; }
  /* Services : panneaux dépliables (survol + clic) */
  .svc-list { display: grid; gap: .75rem; }
  .svc { position: relative; overflow: hidden; border-radius: 2px; background: var(--dark); isolation: isolate; height: 22rem; }
  .svc-photo { position: absolute; inset: 0; z-index: -2; }
  .svc-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
  .svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(26,27,32,.2) 0%, rgba(26,27,32,.45) 50%, rgba(26,27,32,.9) 100%); transition: opacity .6s var(--ease); }
  .svc-body { position: absolute; inset: auto 0 0 0; padding: 1.25rem 1.25rem 1.4rem; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: .5rem 1rem; }
  .svc .num { font: 400 1rem/1 var(--serif); color: #CDAE80; letter-spacing: .05em; }
  .svc h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); color: var(--cream); }
  .svc-toggle { appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
  .svc-toggle::after { content: ""; position: absolute; inset: 0; }
  .svc-toggle:focus-visible { outline: none; }
  .svc-toggle:focus-visible::after { outline: 2px solid var(--bronze); outline-offset: -4px; }
  .svc p { grid-column: 1 / -1; color: rgba(247,245,240,.82); max-width: 38ch; overflow: hidden; }
  .js .svc { height: 5.5rem; transition: height .6s var(--ease); }
  .js .svc.is-open { height: 22rem; }
  .js .svc p { max-height: 0; opacity: 0; visibility: hidden; transition: max-height .5s var(--ease), opacity .3s, visibility 0s .5s; }
  .js .svc.is-open p { max-height: 9rem; opacity: 1; visibility: visible; transition: max-height .6s var(--ease), opacity .5s .2s var(--ease), visibility 0s; }
  .js .svc:not(.is-open)::before { opacity: .85; }
  @media (min-width: 1024px) {
    .svc-list { display: flex; gap: 1rem; height: clamp(440px, 38vw, 540px); }
    .svc, .js .svc, .js .svc.is-open { height: auto; flex: 1 1 0; min-width: 0; transition: flex-grow .7s var(--ease); }
    .js .svc.is-open { flex-grow: 2.2; }
    .svc-body { grid-template-columns: minmax(0, 1fr); padding: 1.5rem; gap: .75rem; }
    .svc h3 { font-size: clamp(1.15rem, 1.4vw, 1.4rem); }
    .svc p { width: 34ch; max-width: none; }
  }
  @media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
    .svc.is-open .svc-photo img { transform: scale(1.04); }
  }
  @media (prefers-reduced-motion: reduce) {
    .svc, .js .svc, .svc p, .js .svc p, .svc-photo img { transition: none !important; }
  }

  /* Clients */
  .clients { background: #fff; background: color-mix(in srgb, var(--cream) 55%, #fff); }
  .clients .cols { display: grid; gap: 3rem; align-items: start; }
  @media (min-width: 900px) { .clients .cols { grid-template-columns: 1.1fr 1fr; gap: 5rem; align-items: end; } .clients .photo { aspect-ratio: auto; height: 100%; min-height: 360px; } }
  .list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(26,27,32,.18); }
  .list li { display: flex; gap: 1.25rem; align-items: baseline; padding: 1.15rem 0; border-bottom: 1px solid rgba(26,27,32,.18); font: 400 clamp(1.1rem, 1.8vw, 1.3rem)/1.35 var(--serif); color: var(--dark); }
  .list li::before { content: ""; flex: none; width: 14px; height: 1px; background: var(--bronze); transform: translateY(-.3em); }
  .photo { background-color: var(--bronze-light); aspect-ratio: 4 / 3; overflow: hidden; }
  .photo img { width: 100%; height: 100%; object-fit: cover; }

  /* Engagements */
  .engagements { background: var(--dark); color: rgba(247,245,240,.75); }
  .grid-3 { display: grid; gap: 2.75rem 4rem; }
  @media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
  .engagements .item { border-color: rgba(184,151,106,.55); }
  .engagements .item h3 { color: var(--cream); }
  .statement { margin-top: clamp(3rem, 7vw, 5rem); padding-top: 2rem; border-top: 1px solid rgba(247,245,240,.14); font: 400 clamp(1.25rem, 2.4vw, 1.75rem)/1.45 var(--serif); color: var(--cream); max-width: 40ch; }

  /* Contact (demo-1) */
  .contact-grid { display: grid; gap: 0; border-top: 1px solid var(--dark); }
  .contact-grid > div { display: grid; gap: .6rem; padding: 1.6rem 0; border-bottom: 1px solid rgba(26,27,32,.18); }
  .contact-grid strong { font: 400 clamp(1.2rem, 2vw, 1.45rem)/1.3 var(--serif); color: var(--dark); overflow-wrap: anywhere; }
  .contact-grid strong a { text-decoration: none; transition: color .25s; } .contact-grid strong a:hover { color: var(--bronze); }
  .contact-layout { display: grid; gap: 3rem; }
  @media (min-width: 900px) { .contact-layout { grid-template-columns: 1fr 1.6fr; gap: 5rem; align-items: start; } }
  .form { display: grid; gap: 1.5rem 1.75rem; border-top: 1px solid var(--dark); padding-top: 2rem; }
  @media (min-width: 600px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
  .field { display: grid; gap: .55rem; align-content: start; }
  .field label { font: 500 .72rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--dark); }
  .req { color: var(--bronze); }
  .field input, .field select, .field textarea { width: 100%; font: 400 1rem/1.5 var(--sans); color: var(--dark); background: #fff; border: 1px solid rgba(26,27,32,.22); border-radius: 0; padding: .8rem .9rem; transition: border-color .2s; }
  .field select { -webkit-appearance: none; appearance: none; padding-right: 2.5rem; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23B8976A' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right .95rem center; }
  .field textarea { min-height: 150px; resize: vertical; }
  .field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(26,27,32,.45); }
  .field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--bronze); outline: 2px solid var(--bronze); outline-offset: 2px; }
  .field input:user-invalid, .field textarea:user-invalid { border-color: #a4473b; }
  .consent { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; font-size: .9rem; line-height: 1.55; }
  .consent input { width: 18px; height: 18px; margin: .15rem 0 0; accent-color: var(--bronze); cursor: pointer; }
  .consent a { color: var(--dark); text-underline-offset: 3px; }
  .form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; }
  .req-note { font-size: .8rem; }
  .submit { font: 500 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: 1.1rem 1.9rem; background: var(--dark); color: var(--cream); border: 1px solid var(--dark); border-radius: 0; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
  .submit:hover, .submit:focus-visible { background: var(--bronze); border-color: var(--bronze); color: var(--dark); }
  .form-ok { margin-top: -.5rem; padding: 1rem 1.25rem; border-left: 2px solid var(--bronze); background: var(--bronze-light); font: 400 1.1rem/1.45 var(--serif); color: var(--dark); }
  .form-ok:empty { display: none; }
  .form-ok[data-error] { border-color: #a4473b; }
  .submit:disabled { cursor: wait; opacity: .65; }
  .legal { padding: calc(var(--nav-compact-height) + 3rem) 0 clamp(4rem, 10vw, 7.5rem); }
  .legal article { max-width: 72ch; }
  .legal h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); margin-bottom: 2rem; }
  .legal h2 { font-size: 1.55rem; margin: 2rem 0 .75rem; }
  .legal p + p { margin-top: .75rem; }

  /* Footer */
  footer { background: var(--dark); color: rgba(247,245,240,.65); padding: 4rem 0 2.5rem; font-size: .92rem; }
  footer .top { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(247,245,240,.12); }
  @media (min-width: 760px) { footer .top { grid-template-columns: 1.3fr 1fr; align-items: end; } }
  footer .tag { margin-top: 1.75rem; max-width: 38ch; font: 400 1.1rem/1.5 var(--serif); color: var(--cream); }
  footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
  footer ul a { text-decoration: none; } footer ul a:hover { color: var(--bronze); }
  footer .copy { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; padding-top: 1.5rem; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
  footer .copy p:last-child { margin-left: auto; text-align: right; }
  footer .copy a { text-underline-offset: .2em; }
  :focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

  /* Animations légères du hero */
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .svc-row li.reveal:nth-child(2) { transition-delay: .08s; }
  .js .svc-row li.reveal:nth-child(3) { transition-delay: .16s; }
  .js .svc-row li.reveal:nth-child(4) { transition-delay: .24s; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .nav::before, .nav::after, .nav .wrap, .nav .logo, .nav .burger, .nav ul { transition-property: none; }
    .js .reveal { opacity: 1; transform: none; }
    *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
  }

  .not-found { background: var(--dark); color: var(--cream); }
  .not-found-main {
    padding: calc(var(--nav-compact-height) + clamp(2rem, 8vw, 5rem)) 0 clamp(3rem, 9vw, 6rem);
    text-align: center; border-bottom: 1px solid var(--line);
  }
  .not-found-code { font: 300 clamp(5rem, 18vw, 12rem)/.95 var(--serif); color: var(--bronze); }
  .not-found-main h1 { margin: 1rem 0; font-size: clamp(2rem, 5vw, 3.75rem); color: var(--cream); }
  .not-found-main h1 + p { color: var(--muted); }
  .not-found-home {
    display: inline-block; margin-top: 1.75rem; padding: .8rem 1.3rem;
    border: 1px solid var(--bronze); color: var(--cream); text-decoration: none;
  }
  .not-found-home:hover, .not-found-home:focus-visible { background: var(--bronze); color: var(--dark); }
