/* Thomas Viguié — Paysagiste
   Direction: Thomas at work, real job photos, the valley around Pontcharra.
   Large photos, calm type, deep conifer green, broom-yellow actions. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2-variations"),
       url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --sapin: #173226;
  --sapin-deep: #10261c;
  --blanc: #ffffff;
  --brume: #f1f3ef;
  --graphite: #1f2622;
  --lichen: #5f6b64;
  --genet: #f2c94c;
  --genet-2: #e5b92c;
  --ligne: #dde3dc;
  --champ: #8f9a93;
  --erreur: #a3261b;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.1rem, 1.02rem + 0.35vw, 1.3rem);
  --fs-h3: clamp(1.2rem, 1.1rem + 0.4vw, 1.45rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.3vw, 3.25rem);
  --fs-h1: clamp(2.1rem, 1.4rem + 3.5vw, 4.3rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 80rem;
  --inset: clamp(8px, 0.9vw, 14px);
  --r-lg: clamp(20px, 2vw, 28px);
  --r: 18px;
  --bar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--blanc);
  color: var(--graphite);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  padding-bottom: var(--bar-h);
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--sapin); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 {
  color: var(--graphite);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.03em; }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0 0 1em; max-width: 66ch; text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--sapin); outline-offset: 3px; }
.on-dark :focus-visible, .thomas :focus-visible, .site-footer :focus-visible,
.callbar :focus-visible, .hero :focus-visible { outline-color: var(--genet); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--genet); color: var(--sapin-deep); padding: 0.6rem 1rem; font-weight: 600; border-radius: 999px;
}
.skip-link:focus { top: 1rem; }

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

/* Placeholder marker: visible on purpose until the client fills it in */
.todo { background: #fff3b0; color: #5c4300; outline: 1px dashed #b38600; padding: 0 0.2em; font-weight: 600; letter-spacing: 0; }
h1 .todo, h2 .todo { font-size: 0.42em; vertical-align: middle; line-height: 1.3; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 3.25rem; padding: 0.8rem 1.6rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--genet); color: var(--sapin-deep); }
.btn-primary:hover { background: var(--genet-2); }
.btn-ghost { border-color: rgba(31, 38, 34, 0.3); color: var(--graphite); background: transparent; }
.btn-ghost:hover { background: var(--graphite); border-color: var(--graphite); color: var(--blanc); }
.btn-light,
.on-dark .btn-ghost, .thomas .btn-ghost, .callbar .btn-ghost {
  border-color: rgba(255, 255, 255, 0.6); color: var(--blanc); background: rgba(255, 255, 255, 0.08);
}
.btn-light:hover,
.on-dark .btn-ghost:hover, .thomas .btn-ghost:hover, .callbar .btn-ghost:hover {
  background: var(--blanc); border-color: var(--blanc); color: var(--sapin-deep);
}
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.btn-sm { min-height: 2.75rem; padding: 0.55rem 1.1rem; font-size: 0.95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--ligne);
  color: var(--graphite);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 4.5rem; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: inherit; line-height: 1; margin-right: auto; }
.brand-name { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand-job { font-size: var(--fs-small); color: var(--lichen); margin-top: 0.25rem; }
.nav ul { display: flex; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 0.55rem 0.85rem; border-radius: 999px;
  text-decoration: none; color: inherit; font-weight: 500;
}
.nav a:hover { background: rgba(23, 50, 38, 0.07); }
.nav a[aria-current="page"] { background: rgba(23, 50, 38, 0.1); }
.header-call { white-space: nowrap; }
.nav-toggle { display: none; }

/* Home: the header floats over the hero photo, then turns solid */
.has-hero .site-header {
  position: fixed; left: 0; right: 0; top: 0;
  background: transparent; border-bottom-color: transparent; color: var(--blanc);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.has-hero .site-header .wrap { padding-top: var(--inset); }
.has-hero .site-header:not(.is-solid):not(.menu-open) .brand-job { color: rgba(255, 255, 255, 0.85); }
.has-hero .site-header:not(.is-solid):not(.menu-open) .brand,
.has-hero .site-header:not(.is-solid):not(.menu-open) .nav a { text-shadow: 0 1px 14px rgba(10, 24, 17, 0.55); }
.has-hero .site-header:not(.is-solid):not(.menu-open) .nav a:hover { background: rgba(255, 255, 255, 0.14); }
.has-hero .site-header.is-solid, .has-hero .site-header.menu-open {
  background: rgba(255, 255, 255, 0.97); border-bottom-color: var(--ligne); color: var(--graphite);
}
.has-hero .site-header.is-solid .wrap, .has-hero .site-header.menu-open .wrap { padding-top: 0; }

@media (max-width: 900px) {
  .header-call { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.1rem;
    background: transparent; border: 1.5px solid currentColor; border-radius: 999px;
    color: inherit; font: inherit; font-weight: 600; cursor: pointer;
  }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--blanc); color: var(--graphite); border-bottom: 1px solid var(--ligne);
  }
  .nav:not(.is-open) { display: none; }
  .nav ul { flex-direction: column; gap: 0; padding: 0.5rem var(--gutter) 1.25rem; }
  .nav a { padding: 0.9rem 0; border-radius: 0; border-bottom: 1px solid var(--ligne); }
  .nav a:hover, .nav a[aria-current="page"] { background: none; color: var(--sapin); }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate;
  margin: var(--inset); border-radius: var(--r-lg); overflow: hidden;
  min-height: min(94svh, 62rem);
  display: flex; align-items: flex-end;
  background: var(--sapin); color: var(--blanc);
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; }
.hero-media img { object-fit: cover; object-position: 50% 24%; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(270deg, rgba(16, 38, 28, 0.9) 0%, rgba(16, 38, 28, 0.74) 30%, rgba(16, 38, 28, 0.2) 56%, rgba(16, 38, 28, 0) 66%),
    linear-gradient(0deg, rgba(16, 38, 28, 0.5) 0%, rgba(16, 38, 28, 0) 38%),
    linear-gradient(180deg, rgba(16, 38, 28, 0.7) 0%, rgba(16, 38, 28, 0.25) 14%, rgba(16, 38, 28, 0) 24%);
}
.hero-content {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding: 9rem var(--gutter) clamp(2.5rem, 5.5vw, 5rem);
  display: flex; justify-content: flex-end;
}
.hero-text { max-width: 40rem; }
.hero h1 { color: var(--blanc); margin-bottom: 0.5em; }
.hero .h1-sub { display: block; margin-top: 0.35em; font-size: 0.5em; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; color: rgba(255, 255, 255, 0.88); }
.hero-lead { font-size: var(--fs-lead); line-height: 1.5; color: rgba(255, 255, 255, 0.9); max-width: 33rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

@media (max-width: 900px) {
  .hero { min-height: calc(100svh - 2 * var(--inset) - var(--bar-h)); }
  .hero-media img { object-position: 50% 12%; }
  .hero-shade {
    background:
      linear-gradient(0deg, rgba(16, 38, 28, 0.95) 0%, rgba(16, 38, 28, 0.84) 34%, rgba(16, 38, 28, 0.35) 58%, rgba(16, 38, 28, 0) 72%),
      linear-gradient(180deg, rgba(16, 38, 28, 0.55) 0%, rgba(16, 38, 28, 0) 20%);
  }
  .hero-content { justify-content: flex-start; padding-top: 7rem; padding-bottom: 1.75rem; }
  .hero-lead { font-size: 1.02rem; }
  .hero-actions { margin-top: 1.4rem; flex-wrap: nowrap; }
  .hero-actions .btn-primary { flex: 1 1 auto; }
  .hero-actions .btn-call { flex: none; width: 3.25rem; padding: 0; }
  .hero-actions .btn-call .btn-label { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.panel { margin: var(--inset); border-radius: var(--r-lg); }
.bg-brume { background: var(--brume); }
.bg-white { background: var(--blanc); }
.section-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 1.5rem 3rem; margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-top > div { max-width: 42rem; }
.section-top h2 { margin-bottom: 0.45em; }
.section-top p { color: var(--lichen); font-size: var(--fs-lead); line-height: 1.5; margin: 0; }
.on-dark { background: var(--sapin); color: rgba(255, 255, 255, 0.86); }
.section.on-dark { margin: var(--inset); border-radius: var(--r-lg); }
.on-dark h2, .on-dark h3 { color: var(--blanc); }
.on-dark a:not(.btn) { color: var(--genet); }

/* ---------- Services: photo tiles ---------- */
.tiles {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: start;
}
.tile:nth-child(even) { margin-top: 3.5rem; }
.tile a {
  position: relative; display: block; aspect-ratio: 3 / 4.2; border-radius: var(--r); overflow: hidden;
  color: var(--blanc); text-decoration: none; background: var(--sapin);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.tile a::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(16, 38, 28, 0.9) 0%, rgba(16, 38, 28, 0.45) 38%, rgba(16, 38, 28, 0) 62%);
}
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.3rem 1.3rem 1.4rem; }
.tile h3 { color: var(--blanc); margin: 0 0 0.4rem; }
.tile p { margin: 0; color: rgba(255, 255, 255, 0.86); font-size: 0.95rem; line-height: 1.45; }
.tile-arrow {
  position: absolute; top: 1rem; right: 1rem; z-index: 1;
  width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.92); color: var(--sapin-deep); transition: background-color .18s ease;
}
.tile-arrow svg { width: 1.05rem; height: 1.05rem; }
.tile a:hover img { transform: scale(1.04); }
.tile a:hover .tile-arrow { background: var(--genet); }
.tile a:focus-visible { outline: 3px solid var(--genet); outline-offset: 3px; }

@media (max-width: 1024px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:nth-child(even) { margin-top: 2.5rem; }
}
@media (max-width: 560px) {
  .tiles { gap: 0.65rem; }
  .tile:nth-child(even) { margin-top: 1.75rem; }
  .tile a { aspect-ratio: 3 / 4; }
  .tile-body { padding: 0.9rem; }
  .tile h3 { font-size: 1.05rem; margin: 0; }
  .tile p { display: none; }
  .tile-arrow { width: 2.1rem; height: 2.1rem; top: 0.6rem; right: 0.6rem; }
}

/* ---------- Réalisations: editorial grid ---------- */
.works {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: clamp(16rem, 31vw, 28rem) clamp(14rem, 24vw, 22rem);
  gap: 1rem;
}
.work a { position: relative; display: block; height: 100%; border-radius: var(--r); overflow: hidden; background: var(--sapin); }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.work a:hover img { transform: scale(1.03); }
.work a:focus-visible { outline-offset: 3px; }
.work-tag {
  position: absolute; left: 1rem; bottom: 1rem;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.94); color: var(--graphite);
  font-size: var(--fs-small); font-weight: 600; line-height: 1.2;
}
.work-1 { grid-column: 1 / span 8; grid-row: 1; }
.work-2 { grid-column: 9 / span 4; grid-row: 1 / span 2; }
.work-3 { grid-column: 1 / span 4; grid-row: 2; }
.work-4 { grid-column: 5 / span 4; grid-row: 2; }
.work-3 img { object-position: 50% 62%; }
.work-4 img { object-position: 50% 55%; }
.works-foot { margin-top: 2rem; display: flex; justify-content: flex-end; }

@media (max-width: 860px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 0.65rem; }
  .work-1, .work-4 { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }
  .work-2, .work-3 { grid-column: auto; grid-row: auto; aspect-ratio: 3 / 4.3; }
  .work-tag { left: 0.65rem; bottom: 0.65rem; font-size: 0.8rem; padding: 0.35rem 0.7rem; }
  .works-foot { justify-content: stretch; }
  .works-foot .btn { width: 100%; }
}

/* ---------- Thomas (about) ---------- */
.thomas { background: var(--sapin); color: rgba(255, 255, 255, 0.86); }
.thomas h2, .thomas h3 { color: var(--blanc); }
.thomas-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.thomas-photo { margin: 0; }
.thomas-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border-radius: var(--r); }
.thomas-intro { font-size: var(--fs-lead); line-height: 1.55; color: rgba(255, 255, 255, 0.9); }
.steps { list-style: none; margin: 2.25rem 0 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  display: grid; grid-template-columns: 2.75rem 1fr; gap: 0.2rem 1rem;
  padding: 1.1rem 0; border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.steps li::before {
  content: counter(step); grid-row: 1 / span 2;
  width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--genet); color: var(--genet); font-weight: 600; font-size: 0.95rem;
}
.steps h3 { font-size: 1.1rem; margin: 0.35rem 0 0; }
.steps p { margin: 0; color: rgba(255, 255, 255, 0.78); }
@media (max-width: 860px) {
  .thomas-grid { grid-template-columns: 1fr; }
  .thomas-photo img { aspect-ratio: 4 / 3; object-position: 50% 30%; }
}

/* ---------- Zone ---------- */
.zone-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.zone-intro { font-size: var(--fs-lead); line-height: 1.5; color: var(--lichen); }
.sectors { margin: 2rem 0 1.5rem; display: grid; gap: 0; }
.sector { padding: 1rem 0; border-top: 1px solid var(--ligne); }
.sector:last-child { border-bottom: 1px solid var(--ligne); }
.sector h3 { font-size: 1.05rem; margin: 0 0 0.3rem; color: var(--sapin); letter-spacing: -0.01em; }
.sector p { margin: 0; color: var(--graphite); }
.zone-note { color: var(--lichen); margin: 0; }
.zone-map { margin: 0; }
.zone-map svg { display: block; width: 100%; height: auto; border-radius: var(--r-lg); background: var(--brume); }
.zone-map .ring { fill: none; stroke: var(--sapin); stroke-opacity: 0.18; stroke-dasharray: 4 6; }
.zone-map .ring-label { fill: var(--lichen); font-size: 13px; font-family: var(--font); }
.zone-map .area { fill: var(--lichen); fill-opacity: 0.85; font-family: var(--font); font-size: 16px; font-style: italic; font-weight: 500; }
.zone-map .dot { fill: var(--sapin); }
.zone-map .town { fill: var(--graphite); font-size: 14px; font-family: var(--font); font-weight: 500; }
.zone-map .home-dot { fill: var(--genet); stroke: var(--sapin-deep); stroke-width: 3; }
.zone-map .home-label { fill: var(--sapin-deep); font-size: 19px; font-weight: 700; font-family: var(--font); }
@media (max-width: 860px) { .zone-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .zone-map .minor { display: none; }
  .zone-map .town { font-size: 22px; }
  .zone-map .home-label { font-size: 26px; }
  .zone-map .ring-label, .zone-map .area { font-size: 20px; }
}

/* ---------- Reviews (shown only when data/avis.json has entries) ---------- */
.reviews { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; }
.reviews li { background: var(--blanc); border-radius: var(--r); padding: 1.5rem; }
.reviews blockquote { margin: 0 0 1rem; }
.reviews .stars { color: var(--sapin); letter-spacing: 0.12em; margin-bottom: 0.5rem; }
.reviews .who { font-size: var(--fs-small); color: var(--lichen); margin: 0; }
.review-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Contact / quote ---------- */
.devis { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.devis-aside h2 { margin-bottom: 0.4em; }
.devis-aside .lead-small { color: var(--lichen); font-size: var(--fs-lead); line-height: 1.5; }
.big-phone {
  display: inline-block; margin: 0.5rem 0 1.25rem;
  font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1;
  color: var(--sapin); text-decoration: none; white-space: nowrap;
}
.big-phone:hover { text-decoration: underline; text-decoration-color: var(--genet); text-decoration-thickness: 5px; text-underline-offset: 0.12em; }
.contact-facts { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.contact-facts li { padding: 0.85rem 0; border-top: 1px solid var(--ligne); }
.contact-facts li:last-child { border-bottom: 1px solid var(--ligne); }
.contact-facts strong { display: block; font-weight: 600; }
.contact-facts span { color: var(--lichen); }

.form { background: var(--blanc); padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: var(--r); }
.form.form-light { background: var(--blanc); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field.full, fieldset.field, .consent-wrap { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; color: var(--graphite); padding: 0; }
.field .opt { font-weight: 400; color: var(--lichen); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 3.1rem; padding: 0.75rem 0.95rem;
  font: inherit; color: var(--graphite); background: var(--blanc);
  border: 1.5px solid var(--champ); border-radius: 12px;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--lichen); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--genet); outline-offset: 0; border-color: var(--sapin); }
.field [aria-invalid="true"] { border-color: var(--erreur) !important; }
.field .hint { font-size: var(--fs-small); color: var(--lichen); margin: 0; }
.field .err { font-size: var(--fs-small); color: var(--erreur); font-weight: 600; margin: 0; }
.field .err:empty { display: none; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.check-pill { position: relative; display: inline-flex; }
.check-pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.check-pill span {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.45rem 1rem;
  border: 1.5px solid var(--champ); border-radius: 999px; font-weight: 500; user-select: none; pointer-events: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.check-pill span::before { content: ""; width: 0.95rem; height: 0.95rem; border: 1.5px solid currentColor; border-radius: 4px; flex: none; }
.check-pill input:hover + span { border-color: var(--sapin); }
.check-pill input:checked + span { background: var(--sapin); border-color: var(--sapin); color: var(--blanc); }
.check-pill input:checked + span::before { background: var(--genet); border-color: var(--genet); box-shadow: inset 0 0 0 2px var(--sapin); }
.check-pill input:focus-visible + span { outline: 3px solid var(--genet); outline-offset: 2px; }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--fs-small); }
.consent label { font-weight: 400; color: var(--graphite); }
.consent input { width: 1.35rem; height: 1.35rem; margin: 0.1rem 0 0; accent-color: var(--sapin); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.form-status { grid-column: 1 / -1; padding: 1rem 1.1rem; border-radius: 12px; font-weight: 600; margin: 0; }
.form-status:empty { display: none; }
.form-status[data-state="success"] { background: #e3f0d8; color: #1d4312; }
.form-status[data-state="error"] { background: #fbe4e1; color: var(--erreur); }
@media (max-width: 560px) {
  .check-pill span { padding: 0.4rem 0.8rem; font-size: 0.95rem; }
}
@media (max-width: 860px) {
  .devis { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
}

/* ---------- Inner pages: intro ---------- */
.page-intro { padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem); }
.page-intro-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.page-intro h1 { font-size: clamp(2.3rem, 1.45rem + 3.4vw, 4.1rem); }
.h1-sub { display: block; margin-top: 0.35em; font-size: 0.5em; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; color: var(--lichen); }
.page-intro .lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--lichen); max-width: 36rem; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.intro-photo { margin: 0; }
.intro-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); background: var(--brume); }
.page-intro.simple { padding-bottom: clamp(2rem, 4vw, 3rem); }
.page-intro.simple .lead { max-width: 40rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.5rem; padding: 0; font-size: var(--fs-small); color: var(--lichen); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--champ); }
.breadcrumb a { color: var(--lichen); }
@media (max-width: 860px) {
  .page-intro-grid { grid-template-columns: 1fr; }
  .intro-photo img { aspect-ratio: 4 / 3; }
  .intro-actions { flex-wrap: nowrap; }
  .intro-actions .btn-primary { flex: 1 1 auto; }
  .intro-actions .btn-call { flex: none; width: 3.25rem; padding: 0; }
  .intro-actions .btn-call .btn-label { display: none; }
}

/* ---------- Service pages: editorial content ---------- */
.service-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.55rem, 1.25rem + 1.2vw, 2.2rem); margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--graphite); }
.prose ul { padding-left: 1.2rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--sapin); }
.service-aside { display: grid; gap: 1rem; position: sticky; top: 6.5rem; }
.service-aside img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--brume); }
.service-aside img.wide { aspect-ratio: 4 / 3; }
@media (max-width: 860px) {
  .service-layout { grid-template-columns: 1fr; }
  .service-aside { position: static; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
  .service-aside img, .service-aside img.wide { aspect-ratio: 3 / 4; }
}

/* ---------- Call to action panel ---------- */
.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1.5rem 3rem; }
.cta-band h2 { margin: 0 0 0.4em; }
.cta-band p { margin: 0; font-size: var(--fs-lead); line-height: 1.5; }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 860px) {
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btns, .cta-band .btns .btn { width: 100%; }
}

/* ---------- Other services (3 photo tiles) ---------- */
.tiles.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles-3 .tile:nth-child(even) { margin-top: 2.5rem; }
.tiles-3 .tile a { aspect-ratio: 4 / 4.6; }
@media (max-width: 560px) {
  .tiles.tiles-3 { grid-template-columns: 1fr; gap: 0.65rem; }
  .tiles-3 .tile:nth-child(even) { margin-top: 0; }
  .tiles-3 .tile a { aspect-ratio: 16 / 7; }
}

/* Gallery page */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.filters button {
  min-height: 2.75rem; padding: 0.45rem 1.1rem; font: inherit; font-weight: 500; cursor: pointer;
  background: transparent; color: var(--graphite); border: 1.5px solid var(--champ); border-radius: 999px;
}
.filters button:hover { border-color: var(--sapin); }
.filters button[aria-pressed="true"] { background: var(--sapin); border-color: var(--sapin); color: var(--blanc); }
.gallery-count { color: var(--lichen); font-size: var(--fs-small); margin: 0 0 1rem; }
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(11rem, 21vw, 19rem); grid-auto-flow: dense; gap: 1rem;
}
.gallery li { min-width: 0; }
.gallery li.tall { grid-row: span 2; }
.gallery li.wide { grid-column: span 2; }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; } }
.gallery li[hidden] { display: none; }
.gallery a { display: block; height: 100%; position: relative; border-radius: var(--r); overflow: hidden; color: var(--blanc); text-decoration: none; background: var(--sapin); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.gallery a:hover img { transform: scale(1.03); }
.gallery .cap {
  position: absolute; left: 0.85rem; bottom: 0.85rem;
  padding: 0.35rem 0.8rem; border-radius: 999px; background: rgba(255, 255, 255, 0.94);
  color: var(--graphite); font-size: var(--fs-small); font-weight: 600; line-height: 1.2;
}
.gallery a:focus-visible { outline-offset: 3px; }

.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(12, 22, 16, 0.97); color: var(--blanc);
}
.lightbox::backdrop { background: rgba(12, 22, 16, 0.97); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem var(--gutter); }
.lb-count { margin: 0; font-size: var(--fs-small); }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); margin: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.lb-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem var(--gutter) 1.25rem; }
.lb-caption { margin: 0; flex: 1; text-align: center; font-weight: 500; }
.lb-btn {
  min-width: 3rem; min-height: 3rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  background: transparent; color: var(--blanc); border: 1.5px solid rgba(255, 255, 255, 0.55); border-radius: 999px;
  cursor: pointer; font: inherit; font-weight: 600; padding: 0 1rem;
}
.lb-btn:hover { border-color: var(--genet); color: var(--genet); }
.lb-btn svg { width: 1.2rem; height: 1.2rem; }
.lightbox :focus-visible { outline-color: var(--genet); }

/* Before / after (section stays hidden until data/avant-apres.json has a pair) */
.pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; }
.compare { margin: 0; }
.compare-stage { position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 3; background: var(--brume); --pos: 50%; }
.compare-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-stage .after { clip-path: inset(0 0 0 var(--pos)); }
.compare-stage .divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: var(--genet); transform: translateX(-50%); pointer-events: none; }
.compare-stage input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare-stage:has(input:focus-visible) { outline: 3px solid var(--sapin); outline-offset: 3px; }
.compare .tag { position: absolute; top: 0.75rem; padding: 0.2rem 0.7rem; background: rgba(255, 255, 255, 0.94); color: var(--graphite); font-size: var(--fs-small); font-weight: 600; border-radius: 999px; pointer-events: none; }
.compare .tag-before { left: 0.75rem; }
.compare .tag-after { right: 0.75rem; }
.compare figcaption { margin-top: 0.5rem; font-size: var(--fs-small); color: var(--lichen); }

/* Legal pages */
.legal { max-width: 46rem; }
.legal h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); margin-top: 2.2rem; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.45rem 1.25rem; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; gap: 0.1rem; } .legal dd { margin-bottom: 0.7rem; } }

.notfound { min-height: 60vh; display: grid; align-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  margin: var(--inset); border-radius: var(--r-lg);
  background: var(--sapin); color: rgba(255, 255, 255, 0.78);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.site-footer a { color: var(--blanc); text-decoration: none; }
.site-footer a:hover { color: var(--genet); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h2 { font-size: 1rem; color: var(--blanc); letter-spacing: 0; margin-bottom: 0.9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-name { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.025em; color: var(--blanc); line-height: 1; margin-bottom: 0.9rem; }
.footer-phone { font-size: 1.35rem; font-weight: 600; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: var(--fs-small); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.45); text-underline-offset: 0.22em; }
.footer-bottom a:hover { text-decoration-color: var(--genet); }
.site-footer .todo { color: #5c4300; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 900px) {
  :root { --bar-h: calc(4.4rem + env(safe-area-inset-bottom)); }
  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: grid; grid-template-columns: 1.35fr 1fr; gap: 0.5rem;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    background: var(--sapin-deep);
  }
  .callbar .btn { min-height: 3.1rem; padding-inline: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .tile a:hover img, .work a:hover img, .gallery a:hover img { transform: none; }
}

/* ---------- Spacing helpers ---------- */
.section.flush-top { padding-top: 0; }
.notfound .lead { font-size: var(--fs-lead); color: var(--lichen); }
.gallery-section { padding-bottom: clamp(3rem, 7vw, 6rem); }
@media (max-width: 700px) { .gallery .cap { left: 0.5rem; bottom: 0.5rem; font-size: 0.75rem; padding: 0.3rem 0.6rem; } }
