@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #11272a;
  --muted: #485e5e;
  --dark: #0b1d21;
  --paper: #f4f7f5;
  --white: #fff;
  --mint: #a8e7d7;
  --green: #115449;
  --line: #cad8d4;
  --gold: #e7b76e;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
::selection { background: var(--mint); color: var(--dark); }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #ac6719; outline-offset: 4px; }
:is(.hero, .footer, .header) :focus-visible { outline-color: var(--gold); }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: 8px; left: 8px; transform: translateY(-180%); padding: 8px 14px; background: var(--white); }
.skip:focus { transform: none; }
h1, h2, h3 { margin: 0; font-family: "DM Sans", system-ui, sans-serif; line-height: 1.12; letter-spacing: -.036em; text-wrap: balance; }
h1 { max-width: 17ch; font-size: clamp(2.65rem, 5.2vw, 5.15rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.6rem); }
h3 { font-size: 1.26rem; }
p { margin: .65rem 0 0; }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.27rem); max-width: 59ch; margin-top: 1.2rem; }

.header, .hero, .footer { background: var(--dark); color: var(--white); }
.header { border-bottom: 1px solid #284148; }
.header-row { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--white); text-decoration: none; font-weight: 750; line-height: 1.15; }
.brand img { object-fit: contain; background: #eaf5ee; border-radius: 8px; padding: 4px; }
.brand small { display: block; margin-top: 5px; color: #bed4d0; font-size: .73rem; font-weight: 500; }
.header nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 32px); }
.header nav a { color: #e5f2ee; font-size: .9rem; font-weight: 650; text-decoration: none; }
.header nav a:hover, .header nav a[aria-current] { text-decoration: underline; }
.header nav a:last-child { border: 1px solid #579489; padding: 8px 17px; border-radius: 6px; color: var(--mint); }
.hero-grid { display: grid; grid-template-columns: 1.14fr 1fr; align-items: center; gap: clamp(30px, 5.8vw, 90px); padding-block: clamp(42px, 7vw, 99px); }
.hero em { color: var(--mint); }
.hero em { font-style: normal; }
.hero .lead { color: #c3d5d2; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px 24px; margin-top: 1.9rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 16px; padding: 10px 19px; border: 1px solid transparent; border-radius: 6px; background: var(--green); color: var(--white); text-decoration: none; font-weight: 720; }
.button:hover { background: #0c453c; }
.hero .button { background: var(--mint); color: var(--dark); }
.hero .button:hover { background: #d0f8ed; }
.hero .secondary, .mobile-actions .secondary { background: transparent; border-color: #5a8e83; color: var(--white); }
.hero .secondary { gap: 0; }
.hero .secondary:hover, .mobile-actions .secondary:hover { background: #213d40; }
.quiet { display: inline-block; font-weight: 650; }
.hero .quiet { color: #deefeb; }
.visual { overflow: hidden; border: 1px solid #315054; border-radius: 12px; background: #10262a; }
.visual svg { display: block; width: 100%; height: auto; }
.proof { border-bottom: 1px solid var(--line); background: #e5f0eb; }
.proof-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 22px; padding-block: 16px; font-weight: 680; font-size: .9rem; }
.proof-grid span::before { content: '✓'; margin-right: 9px; color: var(--green); }
.section { padding-block: clamp(32px, 5.5vw, 68px); }
.section > p { max-width: 72ch; }
.section + .section { padding-top: 0; }
.services, .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; margin-top: 24px; }
.service, .card { border: 1px solid var(--line); border-radius: 9px; padding: clamp(17px, 2vw, 25px); background: var(--white); }
.service { display: grid; grid-template-rows: auto auto 1fr auto; color: var(--ink); text-decoration: none; }
.service:hover { border-color: var(--green); background: #eef9f4; }
.service > span { color: var(--green); font: 700 .85rem/1.5 ui-monospace, Consolas, monospace; }
.service h3 { margin-top: 13px; }
.service p, .card p, .steps p { color: var(--muted); }
.service .service-arrow { margin-top: 14px; justify-self: end; font-size: 1.25rem; }
.band { border-block: 1px solid var(--line); background: #eaf1ed; }
.split { display: grid; grid-template-columns: .8fr 1fr; gap: 34px; }
.split a { margin-top: 12px; }
.faq { max-width: 840px; margin-top: 20px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 690; }
.faq p { color: var(--muted); padding-left: 18px; }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: clamp(20px, 4vw, 42px); margin-bottom: clamp(28px, 5vw, 64px); border: 1px solid #a9ccc1; border-radius: 10px; background: #e5f2eb; }
.callout h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
.callout .button { flex: none; }
.subhero { background: #e5f0eb; border-bottom: 1px solid var(--line); padding-block: clamp(38px, 7vw, 86px); }
.subhero h1 { font-size: clamp(2.4rem, 5.3vw, 4.5rem); max-width: 19ch; }
.steps { margin: 20px 0 0; padding-left: 2em; max-width: 740px; }
.steps li { padding: 14px 0 14px 12px; border-bottom: 1px solid var(--line); }
.steps li::marker { color: var(--green); font-weight: 760; }
.photo { width: min(860px, calc(100% - 40px)); margin: 26px auto; }
.photo img { width: 100%; max-height: 590px; object-fit: contain; border-radius: 9px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 36px 0 0; }
.metrics > div { display: flex; flex-direction: column-reverse; justify-content: start; gap: 8px; border-top: 1px solid #aac7bf; padding-top: 14px; }
.metrics dt { max-width: 31ch; color: var(--muted); }
.metrics dd { margin: 0; color: var(--green); font-family: "DM Sans", system-ui, sans-serif; font-weight: 760; font-variant-numeric: tabular-nums; letter-spacing: -.04em; font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.08; }
.projects { margin-top: 22px; border-top: 1px solid var(--line); }
.project { display: grid; gap: 12px; border-bottom: 1px solid var(--line); padding: 18px 0; }
.project .photo { width: 100%; margin: 6px 0 0; }
.project .photo img { object-fit: cover; aspect-ratio: 16 / 9; }
.project-status { color: #774816; font-size: .88rem; font-weight: 670; }
.sectors { display: flex; flex-wrap: wrap; gap: 7px 16px; list-style: none; padding: 0; margin: 0 0 14px; font-weight: 700; color: var(--green); }
.quote { margin: 18px 0 0; }
.quote blockquote { margin: 0 0 8px; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
#devis { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }
form { background: var(--white); border: 1px solid var(--line); border-radius: 9px; padding: clamp(16px, 3vw, 32px); }
.form-note { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
form > .form-note:first-of-type { margin-top: 0; }
.project-field { margin-top: 14px; }
.optional { padding-block: 10px; }
.optional summary { width: fit-content; cursor: pointer; color: var(--green); font-weight: 690; }
.optional .field-grid { margin-top: 10px; }
.field-grid, .checks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label, legend { display: block; font-size: .92rem; font-weight: 670; }
input:not([type="checkbox"]), select, textarea { display: block; width: 100%; min-height: 45px; margin-top: 4px; padding: 9px 10px; border: 1px solid #80948e; border-radius: 5px; color: var(--ink); background: var(--white); font-size: 1rem; font-weight: 450; }
textarea { resize: vertical; }
fieldset { margin: 16px 0; padding: 8px 12px 12px; border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.checks { gap: 6px 12px; }
.checks label { display: flex; align-items: center; gap: 8px; min-height: 38px; }
.checks input { width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.contact-info h2 { font-size: 1.5rem; }
.contact-info a { overflow-wrap: anywhere; }

.footer { padding-block: 32px 44px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
.footer a, .footer button { color: #c9e3dd; }
.footer nav { display: grid; align-content: start; gap: 8px; }
.footer button { justify-self: start; padding: 4px 0; border: 0; background: transparent; text-decoration: underline; text-underline-offset: .2em; }
.cookie-panel { position: fixed; bottom: 16px; left: 16px; z-index: 5; width: min(515px, calc(100% - 32px)); padding: 17px; border: 1px solid #8caea4; border-radius: 10px; background: var(--white); box-shadow: 0 8px 32px #081b2040; font-size: .88rem; }
.cookie-panel h2 { font-size: 1.15rem; }
.cookie-panel p { margin-top: .38rem; }
.cookie-actions { display: flex; gap: 9px; margin-top: 12px; }
.cookie-actions button { flex: 1; min-height: 44px; padding: 5px 8px; border: 1px solid var(--green); border-radius: 5px; background: #edf6f2; color: var(--ink); font-weight: 650; }
.cookie-actions button:hover { background: #d9ebe3; }
.mobile-actions { display: none; }

@media (max-width: 800px) {
  .wrap { width: calc(100% - 44px); }
  .hero-grid, .contact-grid, #devis { grid-template-columns: 1fr; }
  .visual { width: min(100%, 480px); }
  .visual svg { max-height: 320px; }
}

@media (max-width: 565px) {
  .wrap { width: calc(100% - 32px); }
  .header-row { align-items: start; flex-direction: column; gap: 9px; padding-block: 11px; }
  .header nav { flex-wrap: wrap; gap: 3px 12px; width: 100%; }
  .header nav a { font-size: .79rem; padding-block: 8px; }
  .header nav a:last-child { padding: 6px 10px; }
  .hero-grid { padding-block: 34px; gap: 25px; }
  .hero .actions { gap: 9px; }
  .hero .actions .button { padding-inline: 12px; }
  .hero-phone { display: none; }
  .split, .field-grid, .footer-grid, .metrics { grid-template-columns: 1fr; gap: 14px; }
  .callout { flex-wrap: wrap; }
  .proof-grid { display: grid; }
  .footer { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .footer-grid nav { margin-top: 8px; }
  .mobile-actions { display: grid; grid-template-columns: .88fr 1.12fr; position: fixed; z-index: 4; inset: auto 0 0; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid #365653; background: var(--dark); }
  .mobile-actions .button { font-size: .88rem; padding: 8px; background: var(--mint); color: var(--dark); }
  .mobile-actions .secondary { background: transparent; color: var(--white); }
  .cookie-panel { bottom: calc(72px + env(safe-area-inset-bottom)); left: 8px; width: calc(100% - 16px); max-height: calc(100dvh - 86px); overflow: auto; }
  html { scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: no-preference) {
  .trace { animation: energise 1050ms ease-out 160ms both; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .service, .button { transition: transform 160ms ease-out, background-color 160ms ease-out, border-color 160ms ease-out; }
  .service:hover, .button:hover { transform: translateY(-2px); }
  .button:active { transform: translateY(0); }
}

@keyframes energise {
  12%, 85% { opacity: 1; }
  to { stroke-dashoffset: -1; opacity: 0; }
}
