/* AéroTherm — feuille de style unique */

@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --petrol-950: #082126;
  --petrol-900: #0B2B31;
  --petrol-800: #0F3B43;
  --petrol-700: #175059;
  --petrol-200: #BFD0D0;
  --petrol-100: #DFE8E7;
  --paper: #F5F2EC;
  --paper-2: #ECE8E0;
  --white: #FBFAF7;
  --mineral-600: #5E6A6C;
  --mineral-400: #949D9E;
  --mineral-300: #C3C8C6;
  --line: #D9D6CE;
  --field-border: #848D8F;
  --ink: #142225;
  --ink-soft: #46555A;
  --copper: #94522F;
  --copper-soft: #D39A74;
  --danger: #A3332B;
  --success: #24604A;

  --font: "Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --step--1: clamp(.8125rem, .79rem + .1vw, .875rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.07rem + .3vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.24rem + .6vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  --step-4: clamp(2.125rem, 1.7rem + 2.1vw, 3.5rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1240px;
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --header-h: 76px;
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--petrol-800); color: var(--paper); padding: .75rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Étiquettes techniques ------------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--petrol-700);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--petrol-200); }
.mono { font-family: var(--mono); }
.demo-tag {
  display: inline-block; font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .55rem; border: 1px solid currentColor; border-radius: 2px; line-height: 1.2;
}

/* Boutons --------------------------------------------------------------- */
.btn {
  --bg: var(--petrol-800); --fg: var(--paper); --bd: var(--petrol-800);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.35rem;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd); border-radius: var(--radius);
  font-weight: 500; font-size: .975rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { --bg: var(--petrol-950); --bd: var(--petrol-950); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { --bg: transparent; --fg: var(--petrol-800); --bd: var(--mineral-300); }
.btn--ghost:hover { --bg: transparent; --fg: var(--petrol-950); --bd: var(--petrol-800); }
.btn--light { --bg: var(--paper); --fg: var(--petrol-900); --bd: var(--paper); }
.btn--light:hover { --bg: var(--white); --bd: var(--white); --fg: var(--petrol-950); }
.btn--outline-light { --bg: transparent; --fg: var(--paper); --bd: rgba(245, 242, 236, .35); }
.btn--outline-light:hover { --bg: transparent; --bd: var(--paper); --fg: var(--white); }
.btn[disabled] { cursor: progress; opacity: .85; transform: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 500; color: var(--petrol-800); text-decoration: none;
  border-bottom: 1px solid var(--mineral-300); padding-bottom: .2rem;
  transition: border-color .25s var(--ease), gap .25s var(--ease);
}
.link-arrow:hover { border-color: var(--copper); gap: .75rem; }
.link-arrow svg { width: 14px; height: 14px; }

/* Header ---------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(245, 242, 236, .94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-compact { border-color: var(--line); background: rgba(245, 242, 236, .98); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  height: var(--header-h); transition: height .3s var(--ease);
}
.site-header.is-compact .header-inner { height: 64px; }

.logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--petrol-800); flex: none; }
.logo svg { width: 34px; height: 34px; }
.logo-word { font-size: 1.28rem; font-weight: 600; letter-spacing: -.025em; line-height: 1; }
.logo-word span { font-weight: 400; color: var(--petrol-700); }

.main-nav { display: flex; align-items: center; gap: 2.25rem; }
.main-nav ul { display: flex; gap: 1.75rem; list-style: none; }
.main-nav a:not(.btn) {
  position: relative; text-decoration: none; font-size: .95rem; color: var(--ink-soft);
  padding: .5rem 0; transition: color .2s var(--ease);
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 1px;
  background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav a:not(.btn):hover, .main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a:not(.btn):hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav .btn { min-height: 44px; padding: .65rem 1.1rem; font-size: .925rem; }

.menu-toggle {
  display: none; align-items: center; gap: .6rem;
  min-height: 44px; padding: .5rem .25rem .5rem .75rem; margin-right: -.25rem;
  background: none; border: 0; cursor: pointer; font-size: .9rem; font-weight: 500; color: var(--petrol-800);
}
.menu-toggle-lines { position: relative; width: 22px; height: 12px; }
.menu-toggle-lines::before, .menu-toggle-lines::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-toggle-lines::before { top: 0; }
.menu-toggle-lines::after { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after { top: 5px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  html:not(.js) .main-nav, html:not(.js) .menu-toggle { display: none; } /* sans JS : la navigation du pied de page prend le relais */
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1.5rem;
    padding: 1rem var(--gutter) 2rem;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(8, 33, 38, .25);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .site-header.is-compact .main-nav { top: 64px; }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a:not(.btn) { display: flex; justify-content: space-between; padding: 1rem 0; font-size: 1.125rem; color: var(--ink); }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav a[aria-current="page"] { color: var(--petrol-700); }
  .main-nav .btn { min-height: 52px; font-size: 1rem; }
}

main { display: block; }
.section { padding-block: var(--section); }
.section-head { display: grid; gap: 1.25rem; max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: var(--step-4); }
.section-head p:not(.eyebrow) { color: var(--ink-soft); font-size: var(--step-1); max-width: 60ch; }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 4rem; }
  .section-head--split > :last-child { padding-bottom: .4rem; }
}

/* Hero ------------------------------------------------------------------ */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 4.5rem)); padding-bottom: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-grid { position: relative; display: grid; gap: 2.5rem; }
.hero-text { position: relative; z-index: 2; display: grid; gap: 1.75rem; align-content: center; }
.hero h1 { font-size: clamp(2.25rem, 1.55rem + 2.6vw, 3.75rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.04; }
.hero h1 .h1-sub { display: block; color: var(--petrol-700); font-weight: 400; }
.hero-lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-note { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; font-family: var(--mono); font-size: .8rem; color: var(--mineral-600); list-style: none; }
.hero-note li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-note li::before { content: ""; width: 6px; height: 6px; border: 1px solid var(--copper); border-radius: 50%; }

.hero-media { position: relative; }
.hero-media figure { margin: 0; position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 58% 35%; border-radius: var(--radius); background: var(--paper-2); }
.hero-media figcaption {
  position: absolute; left: 0; bottom: 0;
  display: flex; gap: .75rem; align-items: center;
  background: var(--paper); padding: .7rem 1rem .7rem 0;
  font-family: var(--mono); font-size: .75rem; color: var(--ink-soft); letter-spacing: .02em;
}
.hero-media figcaption b { color: var(--petrol-800); font-weight: 500; }

/* Tracé technique discret façon plan */
.blueprint { position: absolute; pointer-events: none; color: var(--mineral-400); }
.blueprint path, .blueprint line { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.blueprint .bp-dash { stroke-dasharray: 3 4; }
.blueprint circle { fill: var(--paper); stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.blueprint .bp-copper { stroke: var(--copper-soft); }
.blueprint circle.bp-copper { fill: var(--paper); }
.blueprint text { font-family: var(--mono); font-size: 10px; fill: var(--mineral-600); letter-spacing: .04em; }
.hero .blueprint { display: none; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 6.2fr) minmax(0, 5fr); column-gap: clamp(2.5rem, 5vw, 5rem); min-height: min(720px, calc(100vh - var(--header-h) - 6rem)); }
  .hero-media img { aspect-ratio: 4 / 5; height: 100%; max-height: 680px; object-position: 58% 50%; }
  .hero .blueprint { display: block; left: 0; right: 0; bottom: -1px; height: 120px; }
}

/* Index des métiers ------------------------------------------------------ */
.trades { border-block: 1px solid var(--line); background: var(--paper); }
.trades ol { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trades li { border-bottom: 1px solid var(--line); }
.trades li:nth-child(odd) { border-right: 1px solid var(--line); }
.trades li:nth-last-child(-n+2) { border-bottom: 0; }
.trades a {
  display: flex; flex-direction: column; gap: .3rem; height: 100%;
  padding: 1.1rem 1rem; text-decoration: none; font-size: .95rem; font-weight: 500; line-height: 1.3;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.trades a span { font-family: var(--mono); font-size: .72rem; font-weight: 400; color: var(--copper); }
.trades a:hover { background: var(--paper-2); color: var(--petrol-800); }
@media (min-width: 700px) {
  .trades ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trades li, .trades li:nth-child(odd) { border-right: 1px solid var(--line); }
  .trades li:nth-child(3n) { border-right: 0; }
  .trades li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .trades li:nth-last-child(-n+3) { border-bottom: 0; }
}
@media (min-width: 1100px) {
  .trades ol { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .trades li, .trades li:nth-child(3n) { border-right: 1px solid var(--line); border-bottom: 0; }
  .trades li:last-child { border-right: 0; }
  .trades a { padding: 1.4rem 1.25rem; }
}

/* Prestations : deux mises en avant + liste ------------------------------ */
.feature-pair { display: grid; gap: clamp(3rem, 6vw, 5rem); margin-bottom: clamp(4rem, 8vw, 7rem); }
.feature { display: grid; gap: 1.5rem; align-items: end; }
.feature-media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.feature-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.feature:hover .feature-media img { transform: scale(1.02); }
.feature-body { display: grid; gap: 1rem; align-content: start; }
.feature-num { font-family: var(--mono); font-size: .78rem; color: var(--copper); letter-spacing: .06em; }
.feature h3 { font-size: var(--step-3); }
.feature p { color: var(--ink-soft); max-width: 46ch; }
.feature .tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin-top: .25rem; }
.feature .tags li { font-size: .82rem; padding: .3rem .65rem; background: var(--paper-2); border-radius: 2px; color: var(--ink-soft); }
.feature .link-arrow { justify-self: start; margin-top: .5rem; }

@media (min-width: 900px) {
  .feature-pair { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; }
  .feature--a { grid-column: 1 / span 7; grid-template-columns: minmax(0, 1fr); }
  .feature--a .feature-media img { aspect-ratio: 5 / 4; }
  .feature--b { grid-column: 9 / span 4; padding-top: clamp(6rem, 14vw, 12rem); }
  .feature--b .feature-media img { aspect-ratio: 4 / 5; }
}

.service-list { list-style: none; border-top: 1px solid var(--ink); }
.service-row { border-bottom: 1px solid var(--line); }
.service-row a {
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) 92px; gap: 1rem 1.25rem; align-items: center;
  padding: 1.5rem 0; text-decoration: none;
}
.service-row .num { font-family: var(--mono); font-size: .78rem; color: var(--copper); align-self: start; padding-top: .35rem; }
.service-row h3 { font-size: var(--step-2); transition: color .25s var(--ease); }
.service-row p { color: var(--ink-soft); font-size: .975rem; margin-top: .35rem; max-width: 52ch; }
.service-row .thumb { overflow: hidden; border-radius: 2px; background: var(--paper-2); }
.service-row .thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s var(--ease); }
.service-row .go { display: none; }
.service-row a:hover h3 { color: var(--petrol-700); }
.service-row a:hover .thumb img { transform: scale(1.05); }
@media (min-width: 900px) {
  .service-row a { grid-template-columns: 3rem minmax(0, 4fr) minmax(0, 5fr) 150px 48px; gap: 2rem; padding: 1.75rem 0; }
  .service-row .num { align-self: center; padding-top: 0; }
  .service-row .text { display: contents; }
  .service-row p { margin: 0; }
  .service-row .thumb img { aspect-ratio: 3 / 2; }
  .service-row .go {
    display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
    color: var(--petrol-800); transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  }
  .service-row .go svg { width: 16px; height: 16px; }
  .service-row a:hover .go { background: var(--petrol-800); border-color: var(--petrol-800); color: var(--paper); }
}
.services-more { margin-top: 2.5rem; }

/* Approche --------------------------------------------------------------- */
.process-section { background: var(--paper-2); }
.process { list-style: none; position: relative; display: grid; gap: 0; counter-reset: step; }
.process li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1.25rem; padding-bottom: 2.5rem; }
.process li:last-child { padding-bottom: 0; }
.process li::before {
  content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px;
  background: var(--petrol-200);
}
.process li:last-child::before { display: none; }
.process .node {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--petrol-700);
  font-family: var(--mono); font-size: .82rem; font-weight: 500; color: var(--petrol-800);
}
.process li:last-child .node { background: var(--petrol-800); color: var(--paper); border-color: var(--petrol-800); }
.process h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -.01em; margin: .55rem 0 .5rem; }
.process p { color: var(--ink-soft); font-size: .975rem; }
@media (min-width: 900px) {
  .process { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .process li { grid-template-columns: 1fr; gap: 1.5rem; padding: 0; }
  .process li::before { left: 44px; right: -2rem; top: 21px; bottom: auto; width: auto; height: 2px; }
  .process h3 { margin-top: 0; }
}
.process-note { margin-top: 3rem; font-family: var(--mono); font-size: .8rem; color: var(--mineral-600); }

/* Réalisations ----------------------------------------------------------- */
.projects { display: grid; gap: 1.5rem; }
.project {
  position: relative; isolation: isolate; display: grid; align-content: end;
  min-height: 360px; border-radius: var(--radius); overflow: hidden;
  background: var(--petrol-900); color: var(--paper);
}
.project-media { position: absolute; inset: 0; z-index: -1; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 33, 38, .92) 0%, rgba(8, 33, 38, .5) 42%, rgba(8, 33, 38, 0) 72%); }
.project-body { display: grid; gap: .6rem; padding: clamp(1.25rem, 3vw, 2rem); }
.project .demo-tag { justify-self: start; color: var(--petrol-100); background: rgba(8, 33, 38, .55); }
.project h3 { font-size: var(--step-2); color: var(--white); }
.project .meta { font-size: .9rem; color: var(--petrol-100); }
.project .open {
  justify-self: start; display: inline-flex; align-items: center; gap: .5rem; margin-top: .4rem; padding: 0;
  background: none; border: 0; cursor: pointer; font-weight: 500; font-size: .925rem; color: var(--white);
}
.project .open::before { content: ""; position: absolute; inset: 0; }
.project .open svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.project--2 .project-media img { object-position: 50% 30%; }
.project:hover .project-media img { transform: scale(1.03); }
.project:hover .open svg { transform: translateX(4px); }
.project .open:focus-visible { outline: none; }
.project:has(.open:focus-visible) { outline: 2px solid var(--copper); outline-offset: 4px; }
@media (min-width: 900px) {
  .projects { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(300px, auto)); }
  .project--1 { grid-column: 1 / span 7; grid-row: 1 / span 2; min-height: 660px; }
  .project--2 { grid-column: 8 / span 5; }
  .project--3 { grid-column: 8 / span 5; }
}
.projects-note { margin-top: 1.5rem; font-size: .9rem; color: var(--mineral-600); }

/* Fenêtre de détail d'un projet */
.project-dialog {
  width: min(1040px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem);
  padding: 0; border: 0; border-radius: var(--radius);
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(8, 33, 38, .5);
  opacity: 0; transform: translateY(16px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), overlay .45s allow-discrete, display .45s allow-discrete;
}
html:has(.project-dialog[open]) { overflow: hidden; } /* la page de fond ne défile plus */
.project-dialog[open] { opacity: 1; transform: none; }
.project-dialog:focus-visible { outline: none; }
@starting-style { .project-dialog[open] { opacity: 0; transform: translateY(16px); } }
.project-dialog::backdrop { background: rgba(8, 33, 38, 0); transition: background-color .45s var(--ease), overlay .45s allow-discrete, display .45s allow-discrete; }
.project-dialog[open]::backdrop { background: rgba(8, 33, 38, .72); }
@starting-style { .project-dialog[open]::backdrop { background: rgba(8, 33, 38, 0); } }
/* Barre de hauteur nulle collée en haut : le bouton Fermer reste visible pendant le défilement */
.dialog-bar { position: sticky; top: 0; z-index: 2; height: 0; }
.dialog-inner { display: grid; }
.dialog-media { display: grid; gap: 4px; align-content: start; background: var(--paper-2); }
.dialog-media img { width: 100%; height: auto; }
.dialog-content { display: grid; gap: 1.5rem; align-content: start; padding: clamp(1.5rem, 4vw, 2.75rem); }
.dialog-content h2 { font-size: var(--step-3); padding-right: 3rem; }
.dialog-close {
  position: absolute; top: 1rem; right: 1rem; box-shadow: 0 4px 14px -6px rgba(8, 33, 38, .35);
  display: grid; place-items: center; width: 44px; height: 44px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.dialog-close:hover { border-color: var(--petrol-800); background: var(--white); }
.dialog-close svg { width: 16px; height: 16px; }
.dialog-content .demo-tag { justify-self: start; color: var(--copper); }
.spec { display: grid; gap: 1.25rem; margin: 0; }
.spec div { display: grid; gap: .35rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.spec dt { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mineral-600); }
.spec dd { margin: 0; color: var(--ink); }
.spec ul { list-style: none; display: grid; gap: .45rem; }
.spec li { position: relative; padding-left: 1.25rem; }
.spec li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--copper); }
@media (min-width: 900px) {
  .dialog-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
}
}

/* Entreprise ------------------------------------------------------------- */
.about-grid { display: grid; gap: 3rem; }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 60%; border-radius: var(--radius); }
.about-media .blueprint { display: none; }
.about-text { display: grid; gap: 1.5rem; align-content: start; }
.about-text h2 { font-size: var(--step-4); }
.about-text > p { font-size: var(--step-1); color: var(--ink-soft); }
.principles { display: grid; gap: 0; margin: 1rem 0 0; }
.principles div { display: grid; gap: .4rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.principles div:last-child { border-bottom: 1px solid var(--line); }
.principles dt { font-weight: 600; font-size: 1.05rem; display: flex; gap: 1rem; align-items: baseline; }
.principles dt span { font-family: var(--mono); font-size: .75rem; font-weight: 400; color: var(--copper); }
.principles dd { margin: 0; color: var(--ink-soft); }
@media (min-width: 900px) {
  .principles dd { padding-left: 2.15rem; }
}
@media (min-width: 960px) {
  .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(3rem, 7vw, 7rem); align-items: start; }
  .about-media { position: sticky; top: calc(var(--header-h) + 2rem); }
  .about-media img { aspect-ratio: 4 / 5; }
  .about-media .blueprint { display: block; left: -2.5rem; top: -2.5rem; width: 120px; height: 120px; }
}

/* Zone d'intervention ---------------------------------------------------- */
.zone-section { background: var(--petrol-900); color: var(--paper); }
.zone-section .section-head p:not(.eyebrow) { color: var(--petrol-200); }
.zone-grid { display: grid; gap: 2.5rem; }
.zone-map { position: relative; margin: 0; border: 1px solid rgba(191, 208, 208, .18); border-radius: var(--radius); background: var(--petrol-950); }
.zone-map svg { display: block; width: 100%; height: auto; }
.zone-map figcaption a { color: inherit; }
.zone-map figcaption { padding: .9rem 1.1rem; border-top: 1px solid rgba(191, 208, 208, .18); font-family: var(--mono); font-size: .75rem; color: var(--petrol-200); }
.map-sea { fill: #1A5560; }
.map-land { fill: #0B2B31; }
.map-island { stroke: var(--petrol-200); stroke-width: .4; stroke-opacity: .6; }
.map-coast { fill: none; stroke: var(--petrol-200); stroke-width: .6; stroke-linejoin: round; opacity: .75; }
.map-grid line { stroke: rgba(191, 208, 208, .08); stroke-width: .4; }
.map-area { fill: rgba(211, 154, 116, .07); stroke: var(--copper-soft); stroke-width: .6; stroke-dasharray: 2 2.5; }
.map-town circle { fill: var(--petrol-950); stroke: var(--petrol-100); stroke-width: .8; }
.map-town.is-main circle { fill: var(--copper-soft); stroke: var(--copper-soft); }
.map-town text { font-family: var(--font); font-size: 7.4px; fill: var(--petrol-100); }
.map-town.is-main text { font-size: 9px; font-weight: 600; fill: var(--white); }
.map-label { font-family: var(--mono); font-size: 6px; fill: var(--petrol-200); letter-spacing: .12em; opacity: .7; }
.map-label--sea { fill: var(--petrol-100); opacity: .85; font-style: italic; }
@media (max-width: 600px) {
  .map-town text { font-size: 9px; }
  .map-town.is-main text { font-size: 11px; }
}
.zone-info { display: grid; gap: 1.75rem; align-content: start; }
.zone-info h3 { font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--petrol-200); margin-bottom: 1rem; }
.zone-info h3 { margin-bottom: .75rem; }
.towns { list-style: none; border-top: 1px solid rgba(191, 208, 208, .2); }
.towns li { display: flex; align-items: center; gap: .85rem; padding: .7rem 0; border-bottom: 1px solid rgba(191, 208, 208, .2); font-size: .975rem; }
.towns li.is-main { font-weight: 600; font-size: 1.05rem; }
.town-mark { flex: none; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--petrol-100); }
.towns li.is-main .town-mark { width: 11px; height: 11px; border: 0; background: var(--copper-soft); }
.towns .dept { margin-left: auto; font-family: var(--mono); font-size: .75rem; font-weight: 400; color: var(--petrol-200); }
.towns abbr { text-decoration: none; }
.towns-more { margin-top: .75rem; font-size: .875rem; color: var(--petrol-200); }
.zone-info .zone-note { color: var(--petrol-200); font-size: .95rem; padding-left: 1rem; border-left: 1px solid var(--copper-soft); }
@media (min-width: 960px) {
  .zone-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: start; }
}

/* Appel à l'action final -------------------------------------------------- */
.cta { position: relative; overflow: hidden; background: var(--petrol-800); color: var(--paper); }
.cta-grid { position: relative; z-index: 1; display: grid; gap: 3rem; }
.cta h2 { font-size: clamp(2.2rem, 1.5rem + 3vw, 4rem); letter-spacing: -.035em; color: var(--white); }
.cta-lead { font-size: var(--step-1); color: var(--petrol-100); max-width: 38rem; margin-top: 1.5rem; }
.cta .hero-actions { margin-top: 2.25rem; }
.contact-card { display: grid; gap: 1.25rem; align-content: start; padding: 1.75rem; border: 1px solid rgba(223, 232, 231, .22); border-radius: var(--radius); }
.contact-card .demo-tag { justify-self: start; color: var(--copper-soft); }
.contact-card dl { display: grid; gap: 1rem; margin: 0; }
.contact-card dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--petrol-200); }
.contact-card dd { margin: .2rem 0 0; font-size: 1.05rem; color: var(--white); }
.contact-card dd a { text-decoration: none; border-bottom: 1px solid rgba(223, 232, 231, .35); }
.contact-card dd a:hover { border-color: var(--copper-soft); }
.contact-card dd small { display: block; font-size: .82rem; color: var(--petrol-200); }
.cta .blueprint { color: rgba(191, 208, 208, .25); right: -40px; top: 0; width: 520px; height: 100%; display: none; }
.cta .blueprint circle { fill: var(--petrol-800); }
.cta .blueprint text { fill: rgba(191, 208, 208, .5); }
@media (min-width: 960px) {
  .cta-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: 5rem; align-items: end; }
  .cta .blueprint { display: block; }
}

/* Footer ---------------------------------------------------------------- */
.site-footer { background: var(--petrol-950); color: var(--petrol-100); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand .logo { color: var(--paper); }
.footer-brand .logo-word span { color: var(--petrol-200); }
.footer-brand p { margin-top: 1rem; color: var(--petrol-200); max-width: 32ch; }
.footer-col h2 { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--petrol-200); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: .55rem; }
.footer-col a { text-decoration: none; color: var(--petrol-100); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-col address { font-style: normal; display: grid; gap: .55rem; }
.footer-col small { display: block; color: var(--mineral-400); font-size: .8rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(191, 208, 208, .15);
  font-size: .85rem; color: var(--mineral-400);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; }
.footer-bottom a { color: var(--petrol-100); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }
.demo-banner { color: var(--petrol-200); max-width: 60ch; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.5fr)); column-gap: 3rem; } }

/* Pages intérieures ------------------------------------------------------ */
.page-hero { padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)); padding-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: var(--step-4); letter-spacing: -.03em; margin-top: 1.25rem; max-width: 20ch; }
.page-hero p { margin-top: 1.25rem; font-size: var(--step-1); color: var(--ink-soft); max-width: 58ch; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; font-family: var(--mono); font-size: .78rem; color: var(--mineral-600); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--mineral-400); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--petrol-800); text-decoration: underline; }

.services-layout { display: grid; gap: 3rem; }
.services-toc { display: none; }
@media (min-width: 1000px) {
  .services-layout { grid-template-columns: 220px minmax(0, 1fr); column-gap: 5rem; }
  .services-toc { display: block; position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
  .services-toc ol { list-style: none; display: grid; gap: .1rem; border-left: 1px solid var(--line); }
  .services-toc a { display: block; padding: .5rem 0 .5rem 1rem; margin-left: -1px; border-left: 1px solid transparent; text-decoration: none; font-size: .925rem; color: var(--ink-soft); transition: color .2s var(--ease), border-color .2s var(--ease); }
  .services-toc a:hover, .services-toc a.is-active { color: var(--petrol-800); border-left-color: var(--copper); }
}
.service-detail { display: grid; gap: 2rem; padding-bottom: clamp(3.5rem, 7vw, 6rem); margin-bottom: clamp(3.5rem, 7vw, 6rem); border-bottom: 1px solid var(--line); }
.service-detail:last-child { border-bottom: 0; margin-bottom: 0; }
.service-detail header { display: grid; gap: .75rem; }
.service-detail h2 { font-size: var(--step-3); }
.service-detail .intro { font-size: var(--step-1); color: var(--ink-soft); max-width: 60ch; }
.service-detail img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.service-cols { display: grid; gap: 2rem; }
.service-cols h3 { font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--mineral-600); margin-bottom: 1rem; }
.check-list { list-style: none; display: grid; gap: .6rem; }
.check-list li { position: relative; padding-left: 1.5rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 1px; background: var(--copper); }
.aside-note { padding: 1.25rem 1.4rem; background: var(--paper-2); border-radius: var(--radius); color: var(--ink-soft); font-size: .95rem; }
.aside-note strong { color: var(--ink); font-weight: 600; }
@media (min-width: 760px) { .service-cols { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); column-gap: 3rem; } }

/* Formulaire de devis ----------------------------------------------------- */
.quote-layout { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .quote-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: 5rem; align-items: start; } }
.quote-form { display: grid; gap: 1.5rem; }
.form-row { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: .45rem; align-content: start; }
.field label, .field legend { font-weight: 500; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--mineral-600); font-size: .875rem; }
.field .hint { font-size: .85rem; color: var(--mineral-600); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem .9rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--field-border); border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; padding-right: 2.5rem;
  background-image: 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 1.5l5 5 5-5' fill='none' stroke='%230F3B43' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--petrol-700); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--petrol-700); box-shadow: 0 0 0 3px rgba(23, 80, 89, .18); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(163, 51, 43, .15); }
.field-error { display: none; align-items: flex-start; gap: .4rem; font-size: .875rem; color: var(--danger); }
.field-error.is-visible { display: flex; }
.field-error::before { content: "!"; flex: none; display: grid; place-items: center; width: 16px; height: 16px; margin-top: .15rem; border-radius: 50%; background: var(--danger); color: var(--white); font-size: .7rem; font-weight: 600; }
.char-count { justify-self: end; font-family: var(--mono); font-size: .75rem; color: var(--mineral-600); }
.consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: .85rem; align-items: start; }
.consent input { width: 22px; height: 22px; margin: .1rem 0 0; accent-color: var(--petrol-800); cursor: pointer; }
.consent label { font-weight: 400; font-size: .925rem; color: var(--ink-soft); cursor: pointer; }
.consent .field-error { grid-column: 2; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding-top: .5rem; }
.form-footer .btn { min-width: 220px; }
.form-footer p { font-size: .85rem; color: var(--mineral-600); }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(245, 242, 236, .35); border-top-color: var(--paper); border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-alert { display: none; gap: .5rem; padding: 1rem 1.2rem; border-radius: var(--radius); font-size: .95rem; }
.form-alert.is-visible { display: grid; }
.form-alert--error { background: #F6E4E1; color: #6E211B; border: 1px solid #E6BDB7; }
.form-alert--error a { color: inherit; }
.form-alert ul { padding-left: 1.2rem; }
.form-success { display: grid; gap: 1.25rem; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--success); border-radius: var(--radius); }
.form-success h2 { font-size: var(--step-3); }
.form-success p { color: var(--ink-soft); }
.form-success .demo-tag { justify-self: start; color: var(--copper); }
.form-success .recap { margin: 0; display: grid; gap: .5rem; padding: 1rem 1.2rem; background: var(--paper); border-radius: var(--radius); font-size: .925rem; }
.form-success .recap div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; }
.form-success .recap dt { color: var(--mineral-600); }
.form-success .recap dd { margin: 0; overflow-wrap: anywhere; }
.quote-aside { display: grid; gap: 1.5rem; }
.quote-aside .aside-block { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: .9rem; }
.quote-aside h2 { font-size: var(--step-1); font-weight: 600; letter-spacing: -.01em; }
.quote-aside p, .quote-aside li { color: var(--ink-soft); font-size: .95rem; }
.quote-aside ol { padding-left: 1.2rem; display: grid; gap: .4rem; }
.quote-aside dl { margin: 0; display: grid; gap: .75rem; }
.quote-aside dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mineral-600); }
.quote-aside dd { margin: .15rem 0 0; }
@media (min-width: 1000px) { .quote-aside { position: sticky; top: calc(var(--header-h) + 2rem); } }

/* Textes légaux ---------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin: 2.75rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-bottom: 1rem; color: var(--ink-soft); }
.prose ul { padding-left: 1.25rem; }
.prose a { color: var(--petrol-700); text-underline-offset: 3px; }
.placeholder { font-family: var(--mono); font-size: .9em; background: #F3E6DC; color: #6B3A1F; padding: .05em .35em; border-radius: 2px; }
.notice { padding: 1.25rem 1.5rem; margin-bottom: 2.5rem; border-left: 3px solid var(--copper); background: var(--paper-2); color: var(--ink-soft); }

/* Apparitions au défilement --------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .spinner { animation: spin 1.6s linear infinite !important; }
}
