:root {
  color-scheme: light;
  --paper: #f6f2ea;
  --white: #fffdf9;
  --ink: #192b29;
  --muted: #4e605a;
  --surface: #ede8dc;
  --line: #d6d0c3;
  --accent: #9e4228;
  --accent-hover: #853521;
  --footer: #1b302c;
  --footer-text: #e5eee8;
  --radius: 1rem;
  font-family: "Instrument Sans", "Inter", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
button, select, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .62; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; }
h1 { max-width: 14ch; font-size: clamp(2.5rem, 5.2vw, 5rem); font-weight: 720; }
h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); }
h3 { font-size: 1.15rem; }
:focus-visible { outline: .19rem solid #357c70; outline-offset: .21rem; }
.wrap { width: min(73rem, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; z-index: 50; top: .5rem; left: .5rem; padding: .6rem 1rem; background: var(--white); translate: 0 -160%; }
.skip:focus { translate: 0; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.8rem; gap: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-size: 1.03rem; letter-spacing: -.025em; font-weight: 520; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: .5rem; background: var(--accent); color: #fff; font-weight: 750; font-size: .85rem; letter-spacing: .02em; }
.navigation { display: flex; align-items: center; gap: clamp(.65rem, 3vw, 1.95rem); }
.navigation > a:not(.button), .nav-services > summary { text-decoration: none; font-weight: 620; }
.navigation > a:not(.button):hover { text-decoration: underline; }
.nav-services { position: relative; }
.nav-services summary { list-style: none; display: flex; align-items: center; gap: .45rem; cursor: pointer; }
.nav-services summary::-webkit-details-marker { display: none; }
.nav-services summary::after { content: ''; width: .42rem; height: .42rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; rotate: 45deg; margin-bottom: .2rem; }
.nav-services[open] summary::after { rotate: 225deg; margin-bottom: -.2rem; }
.nav-services ul { position: absolute; margin: .85rem 0 0; right: -4rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(30rem, 84vw); max-height: 68vh; overflow: auto; padding: .55rem; list-style: none; background: var(--white); border: 1px solid var(--line); box-shadow: 0 .65rem 1.8rem #192b2918; border-radius: .75rem; }
.nav-services li a { display: block; padding: .55rem .7rem; border-radius: .35rem; text-decoration: none; }
.nav-services li a:hover { background: var(--surface); }

.button { display: inline-flex; justify-content: center; align-items: center; width: fit-content; min-height: 2.9rem; padding: .64rem 1.08rem; border: 1px solid transparent; border-radius: .5rem; background: var(--accent); color: #fff; text-decoration: none; font-weight: 690; line-height: 1.25; text-align: center; }
.button:hover { background: var(--accent-hover); }
.button-small { min-height: 2.55rem; font-size: .88rem; }
.button-light { background: var(--white); color: var(--ink); }
.button-light:hover { background: #e9e2d6; }
.text-link { display: inline-flex; align-items: center; gap: .32rem; font-weight: 680; }
.text-link:hover { color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.2rem; margin-top: 1.8rem; }
.locality { margin-bottom: .9rem; color: var(--accent); font-size: .94rem; font-weight: 690; }
.lead { margin-top: 1.25rem; max-width: 44ch; color: var(--muted); font-size: clamp(1.04rem, 1.6vw, 1.21rem); }
.hero { display: grid; grid-template-columns: .87fr 1.13fr; align-items: center; gap: clamp(1.7rem, 5.2vw, 4.8rem); padding-block: clamp(2rem, 6vw, 5.7rem); }
.home-hero { min-height: 34rem; }
.service-hero { min-height: 26rem; padding-top: clamp(1.15rem, 3vw, 2.5rem); }
.service-hero h1 { max-width: 19ch; font-size: clamp(2.25rem, 4.6vw, 4.05rem); }
.photo { min-width: 0; }
.photo img { width: 100%; object-fit: cover; background: #ddded2; border-radius: var(--radius); }
.hero-photo img { aspect-ratio: 3 / 2; }
.photo figcaption { color: var(--muted); font-size: .82rem; margin-top: .55rem; max-width: 74ch; }
.photo figcaption a { font-weight: 570; }
.local-photo img { aspect-ratio: 3 / 2; }
.locality-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); align-items: center; gap: 2rem; padding-block: clamp(2.8rem, 6vw, 4.9rem); }
.locality-section p { margin-top: .75rem; color: var(--muted); }
.locality-section .local-photo img { aspect-ratio: 2 / 1; }

.services-section { background: var(--surface); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 5rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem; margin-bottom: 1.7rem; }
.section-heading p { color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.service-card { background: var(--white); padding: 1.2rem; border: 1px solid var(--line); border-radius: .7rem; position: relative; }
.service-card:hover { border-color: var(--accent); }
.service-card h3 a { display: flex; justify-content: space-between; align-items: start; gap: .5rem; text-decoration: none; }
.service-card h3 a::after { position: absolute; inset: 0; content: ''; border-radius: .7rem; }
.service-card h3 a span { color: var(--accent); flex: 0 0 auto; }
.service-card p { margin-top: .55rem; font-size: .94rem; color: var(--muted); }
.crumb { display: flex; flex-wrap: wrap; gap: .55rem; color: var(--muted); font-size: .87rem; padding-block: 1.2rem 0; }
.crumb [aria-current] { color: var(--ink); }
.content-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr); gap: clamp(2rem, 6.5vw, 5rem); align-items: start; }
.article-content, .legal-content { max-width: 69ch; }
.prose-section + .prose-section, .faq { margin-top: 2rem; }
.prose-section h2, .faq h2 { font-size: clamp(1.4rem, 2.7vw, 2rem); margin-bottom: .61rem; }
.prose-section p { color: var(--muted); }
.prose-section p + p { margin-top: .7rem; }
.service-aside { display: grid; gap: 1.25rem; }
.aside-devis, .quote-note { padding: 1.2rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--white); }
.aside-title { font-size: 1.09rem; font-weight: 700; }
.aside-devis ul { margin: .65rem 0 .85rem; padding-left: 1.25rem; color: var(--muted); }
.aside-devis li + li { margin-top: .35rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; font-weight: 650; padding: .8rem .1rem; }
.faq-item p { margin: -.15rem 0 .8rem 1.05rem; color: var(--muted); }

.quote-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4.25rem); padding-block: clamp(2.1rem, 5vw, 4.4rem); }
.quote-intro h1 { max-width: 11ch; }
.quote-note { margin-top: 1.5rem; }
.quote-note p + p { margin-top: .36rem; color: var(--muted); }
.quote-form { background: var(--white); padding: clamp(1.1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); align-self: start; }
.quote-form label { display: block; margin-block: .95rem .28rem; font-weight: 640; }
.quote-form input, .quote-form select, .quote-form textarea { display: block; width: 100%; padding: .58rem .68rem; min-height: 2.65rem; border: 1px solid #a49f93; border-radius: .38rem; background: #fff; color: var(--ink); }
.quote-form textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .85rem; }
.form-note { color: var(--muted); font-size: .88rem; }
.form-grid + [hidden] + .form-note { margin: 1.05rem 0 .8rem; }
.form-status:not(:empty) { margin-top: .8rem; font-weight: 620; }
.form-status[data-state="error"] { color: #a13a2b; }
.form-status[data-state="success"] { color: #23604a; }
.legal-content { padding-block: 2.5rem 4.5rem; }
.legal-content h1 { margin-bottom: 2rem; font-size: clamp(1.95rem, 4.5vw, 3.35rem); max-width: 24ch; }

.site-footer { background: var(--footer); color: var(--footer-text); padding-top: clamp(2.3rem, 5vw, 3.7rem); }
.footer-grid { display: grid; grid-template-columns: minmax(14rem, .72fr) minmax(0, 1.3fr); gap: clamp(1.7rem, 4.5vw, 4.7rem); }
.footer-contact { display: flex; flex-direction: column; gap: .52rem; align-items: start; }
.footer-brand { white-space: normal; }
.footer-brand .brand-mark { flex: none; }
.footer-email { overflow-wrap: anywhere; }
.footer-contact .button { margin-top: .52rem; }
.footer-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: .6rem; }
.footer-services ul { list-style: none; margin: 0; padding: 0; }
.footer-services li + li { margin-top: .36rem; }
.footer-services a { text-decoration: none; }
.footer-services a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 2.2rem; padding-block: .85rem 1rem; border-top: 1px solid #ffffff38; font-size: .87rem; color: #c5d3ca; }
.site-footer :focus-visible { outline-color: #ffb798; }

@media (max-width: 810px) {
  .hero, .quote-grid, .locality-section { grid-template-columns: 1fr; }
  .nav-services { position: static; }
  .nav-services ul { top: 100%; right: 1.5rem; width: min(30rem, calc(100% - 3rem)); }
  .home-hero, .service-hero { min-height: 0; }
  .hero h1 { max-width: 18ch; }
  .hero-photo img { max-height: 30rem; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: 1fr; }
  .service-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 510px) {
  .wrap { width: calc(100% - 1.6rem); }
  .header-inner { min-height: 4rem; gap: .5rem; }
  .brand { font-size: .96rem; gap: .4rem; }
  .brand-mark { height: 1.95rem; width: 1.95rem; font-size: .72rem; }
  .navigation { gap: .6rem; font-size: .88rem; }
  .navigation > .nav-home { display: none; }
  .nav-services ul { right: .8rem; width: calc(100% - 1.6rem); font-size: .95rem; }
  .button-small { min-height: 2.35rem; padding: .35rem .56rem; font-size: .8rem; }
  .service-grid, .form-grid, .service-aside { grid-template-columns: 1fr; }
  .footer-services { gap: .75rem; font-size: .94rem; }
}

@media (max-width: 350px) {
  .header-inner .brand-mark { display: none; }
}
