/*
Theme Name: Julien Guedon — version A (« Le jardinier du quai d'Allier »)
Description: Proposition A : un artisan de proximité qui parle à la première personne. Fond blanc, aplats sable, brun et or de la feuille du logo, vert jardin pour l'action, titres en Bree Serif (la police du logo), texte en Source Sans 3 (celle du site actuel), « Au fil des saisons » à l'accueil.
Author: Axo-Lab
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.3
Text Domain: guedon
*/

:root {
  --bg: #ffffff;
  --surface: #f4eee2;
  --surface-2: #e9dfca;
  --ink: #33251c;
  --soft: #46362b;
  --muted: #66564a;
  --olive: #2f5d3a;
  --olive-dark: #244a2d;
  --olive-ink: #fbf7ee;
  --brown: #3a2a20;
  --accent: #7a6322;
  --gold: #8d7429;
  --line: rgb(58 42 32 / 0.16);
  --map-accent: #2f5d3a;

  --display: "Bree Serif", Georgia, serif;
  --text: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --step-small: 0.9375rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);
  --step-head: clamp(2.125rem, 1.5rem + 2.4vw, 3.5rem);
  --step-display: clamp(2.75rem, 1.6rem + 4.2vw, 5.25rem);

  --wrap: 1440px;
  --margin: clamp(1.25rem, 3.5vw, 3rem);
  --section: clamp(4.5rem, 8vw, 8rem);
  --bar: 84px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: var(--step-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.08; text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--olive); }
img { display: block; max-width: 100%; height: auto; }
figure.wp-block-image { margin: 0; }
a { color: inherit; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
::selection { background: var(--surface-2); }
:target { scroll-margin-top: calc(var(--bar) + 1rem); }
a[href^="tel:"] { white-space: nowrap; }

.label { font-size: var(--step-small); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }

.h-hero, .h-facts, .h-services, .h-works, .h-steps, .faq, .h-zone,
.page-hero, .split, .text-block, .cards-wrap, .steps-wrap, .works-wrap, .tax, .facts, .example, .zone-wrap, .contact-grid, .contact-map, .prose, .band, .ticks, .note {
  width: min(100% - 2 * var(--margin), var(--wrap)); margin-inline: auto;
}

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 1.75rem; border: 1px solid var(--olive); border-radius: 999px; cursor: pointer;
  background: var(--olive); color: var(--olive-ink);
  font: 600 1rem / 1 var(--text); text-decoration: none;
  transition: background-color 220ms var(--ease-out), color 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
.button:hover { background: var(--olive-dark); border-color: var(--olive-dark); }
.button.is-ghost { background: transparent; color: var(--ink); border-color: rgb(58 42 32 / 0.4); }
.button.is-ghost:hover { border-color: var(--olive); background: var(--olive); color: var(--olive-ink); }
.text-link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
.text-link::after { content: "→"; transition: transform 300ms var(--ease-out); }
.text-link:hover::after { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.875rem 1.5rem; }
.actions.is-centered { justify-content: center; }

/* ---------- barre ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 2rem; height: var(--bar); width: min(100% - 2 * var(--margin), var(--wrap)); margin-inline: auto; }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; margin-right: auto; white-space: nowrap; }
.wordmark-leaf { width: 40px; height: auto; }
.wordmark-text { display: grid; line-height: 1.05; }
.wordmark-text b { font: 400 1.375rem / 1.05 var(--display); color: var(--brown); }
.wordmark-text small { font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.02em; }
.bar-nav { display: flex; gap: 1.6rem; font-size: 0.9375rem; font-weight: 500; }
.bar-nav a { white-space: nowrap; text-decoration: none; padding: 0.4rem 0; color: var(--soft); text-underline-offset: 0.4em; text-decoration-thickness: 1px; }
.bar-nav a:hover, .bar-nav a[aria-current="page"] { text-decoration: underline; color: var(--ink); }
.bar-book { min-height: 44px; padding: 0 1.25rem; font-size: 0.9375rem; }
.bar-nav-tel, .bar-nav-devis, .bar-toggle { display: none; }

/* ---------- accueil : grand titre, puis la photo pleine largeur ---------- */
.h-hero { display: grid; grid-template-columns: 7fr 4fr; gap: 2rem clamp(2rem, 5vw, 5rem); align-items: end; padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 4vw, 3.5rem); }
.h-hero h1 { grid-column: 1 / -1; font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.04em; }
.h-hero-side { grid-column: 2; }
.h-lead { font-size: 1.125rem; line-height: 1.6; color: var(--soft); max-width: 30rem; }
.h-hero .actions { margin-top: 1.75rem; }
.h-hero-pic { width: min(100%, 1920px); margin-inline: auto; aspect-ratio: 21 / 9; overflow: hidden; }
.h-hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }

.h-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding-top: clamp(3rem, 6vw, 5rem); }
.h-fact { font: 400 clamp(2.25rem, 1.7rem + 1.8vw, 3.25rem) / 1 var(--display); color: var(--olive); }
.h-facts p:not(.h-fact) { margin-top: 0.75rem; color: var(--muted); font-size: 1rem; max-width: 16rem; }

.h-title { font-size: var(--step-head); }
.h-title.is-small { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); }
.h-services, .h-works, .h-steps { padding-top: var(--section); }
.h-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2rem, 4vw, 3.5rem); }
.h-tile .h-pic { aspect-ratio: 4 / 3; overflow: hidden; }
.h-tile .h-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-soft); }
.h-tile:hover .h-pic img { transform: scale(1.03); }
.h-tile .label { margin-top: 1.5rem; }
.h-tile h3 { margin-top: 0.5rem; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); }
.h-tile h3 a { text-decoration: none; }
.h-tile h3 a:hover { color: var(--accent); }
.h-links { list-style: none; padding: 0; margin-top: 1.5rem; }
.h-links li { border-top: 1px solid var(--line); }
.h-links li:last-child { border-bottom: 1px solid var(--line); }
.h-links a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.95rem 0; font-weight: 500; text-decoration: none; transition: padding 300ms var(--ease-out), color 200ms var(--ease-out); }
.h-links a::after { content: "→"; color: var(--accent); }
.h-links a:hover { padding-left: 0.5rem; color: var(--olive); }

.h-tax { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; margin-top: var(--section); padding: clamp(3.5rem, 7vw, 6rem) max(var(--margin), calc((100vw - var(--wrap)) / 2)); background: var(--olive); color: var(--olive-ink); }
.h-tax-figure { font: 400 clamp(4.5rem, 2.5rem + 7vw, 9rem) / 0.9 var(--display); color: #e9d9a6; }
.h-tax h2 { font-size: var(--step-head); }
.h-tax p:not(.actions):not(.h-tax-figure) { margin-top: 1.25rem; max-width: 40rem; color: rgb(251 247 238 / 0.88); }
.h-tax .actions { margin-top: 1.75rem; }
.h-tax .text-link { color: var(--olive-ink); }

.h-row { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; flex-wrap: wrap; }
.h-works .works { margin-top: clamp(2rem, 4vw, 3rem); }

/* ---------- réalisations ---------- */
.works { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem 1.5rem; }
.work-pic { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.work-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-soft); }
.work:hover .work-pic img { transform: scale(1.03); }
.work-meta { margin-top: 1rem; font-size: var(--step-small); color: var(--muted); }
.work-title { margin-top: 0.3rem; font-size: 1.375rem; letter-spacing: -0.015em; }
.work-text { margin-top: 0.5rem; color: var(--muted); font-size: 1rem; }
.works-wrap { padding-top: var(--section); }
.works-wrap > h2 { font-size: var(--step-head); }
.works-wrap .works { margin-top: 2.5rem; }
.works-wrap .actions { margin-top: 2.5rem; }
.works-wrap.is-page { padding-top: 3.5rem; }

/* ---------- étapes, sur un aplat sauge ---------- */
.steps { list-style: none; padding: clamp(2rem, 4vw, 3rem); margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; background: var(--surface); counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 400 1.75rem / 1 var(--display); color: var(--gold); }
.steps h3 { margin-top: 1rem; font-size: 1.375rem; }
.steps p { margin-top: 0.5rem; color: var(--muted); font-size: 1rem; }
.steps-wrap { padding-top: var(--section); }
.steps-wrap > h2 { font-size: var(--step-head); margin-top: 0.75rem; }

/* ---------- questions fréquentes ---------- */
.faq { padding-top: var(--section); }
.faq-acc { display: grid; grid-template-columns: 4fr 7fr; gap: 2rem clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-acc-title { font-size: var(--step-head); }
.faq-acc-list { border-top: 1px solid var(--line); }
.faq-acc details { border-bottom: 1px solid var(--line); }
.faq-acc summary { position: relative; display: flex; align-items: center; min-height: 68px; padding: 1rem 3rem 1rem 0; font-size: 1.125rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq-acc summary::-webkit-details-marker { display: none; }
.faq-acc summary::before, .faq-acc summary::after { content: ""; position: absolute; right: 0.5rem; top: 50%; width: 14px; height: 1.5px; background: var(--olive); transition: transform 300ms var(--ease-out); }
.faq-acc summary::after { transform: rotate(90deg); }
.faq-acc details[open] summary::after { transform: rotate(0deg); }
.faq-acc details p { padding: 0 3rem 1.5rem 0; max-width: 62ch; color: var(--muted); }

/* ---------- zone et carte ---------- */
.h-zone, .zone-wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-top: var(--section); }
.zone-col h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
.h-zone-text > p { margin-top: 1.25rem; color: var(--muted); }
.zone { margin-top: 2rem; }
.zone label { display: block; font-size: var(--step-small); font-weight: 600; }
.zone-row { display: flex; gap: 0.6rem; margin-top: 0.5rem; }
.zone input { flex: 1; min-width: 0; min-height: 54px; padding: 0 1rem; border: 1px solid rgb(58 42 32 / 0.35); border-radius: 999px; background: #ffffff; color: var(--ink); font: inherit; }
.zone input:focus { outline: 2px solid var(--olive); outline-offset: 0; }
.zone-answer { margin-top: 0.9rem; color: var(--muted); font-size: 0.9375rem; min-height: 3em; }
.zone-answer.is-yes { color: var(--olive); font-weight: 600; }
.towns { list-style: none; padding: 0; margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 1.5rem; }
.towns a { text-underline-offset: 0.25em; text-decoration-color: var(--line); }
.towns a:hover { color: var(--olive); text-decoration-color: currentColor; }
.plan-map { position: relative; z-index: 0; width: 100%; aspect-ratio: 4 / 3; background: var(--surface); }
.plan-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.plan .leaflet-container { background: var(--surface); font-family: var(--text); }
.plan .leaflet-tile-pane { filter: grayscale(0.85) sepia(0.25) brightness(1.02) contrast(0.92); }
.plan .leaflet-bar { border: 0; box-shadow: none; }
.plan .leaflet-bar a { background: var(--bg); color: var(--ink); border-bottom-color: var(--surface); font: 600 1.25rem / 30px var(--text); }
.plan-pin span { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--olive); outline: 5px solid rgb(47 93 58 / 0.25); }
.plan-pin b { position: absolute; left: 22px; top: -5px; padding: 0.15rem 0.55rem; background: var(--olive); color: var(--olive-ink); font: 600 0.875rem / 1.5 var(--text); white-space: nowrap; }
.plan figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; margin-top: 0.75rem; font-size: var(--step-small); color: var(--muted); }
.plan-legend { display: inline-flex; align-items: center; gap: 0.5rem; }
.plan-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.plan-legend i.is-care { background: rgb(47 93 58 / 0.35); }
.plan-legend i.is-build { margin-left: 0.75rem; border: 1.5px dashed var(--olive); }

/* ---------- pages intérieures ---------- */
.crumbs { font-size: var(--step-small); color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; padding-top: clamp(3rem, 6vw, 5rem); }
.page-hero .label { margin-bottom: 1rem; }
.page-hero h1 { font-size: clamp(2.5rem, 1.5rem + 3.4vw, 5rem); line-height: 0.98; letter-spacing: -0.035em; }
.page-hero .lead { margin-top: 1.5rem; max-width: 34rem; font-size: 1.125rem; line-height: 1.6; color: var(--soft); }
.page-hero .actions { margin-top: 2rem; }
.page-hero .actions:empty { display: none; }
.page-hero-pic { aspect-ratio: 4 / 5; overflow: hidden; }
.page-hero-pic img, .split-pic img { width: 100%; height: 100%; object-fit: cover; }
.page-hero.is-short { display: block; padding-top: clamp(3.5rem, 7vw, 6rem); }
.page-hero.is-short .lead { max-width: 46rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-top: var(--section); }
.split-pic { aspect-ratio: 5 / 4; overflow: hidden; }
.split.is-reverse .split-pic { order: 2; }
.split h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); margin: 0.75rem 0 1.25rem; }
.split p:not(.label) { color: var(--soft); max-width: 34rem; }
.split p + p { margin-top: 1rem; }

.text-block { max-width: 980px; padding-top: var(--section); }
.text-block h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); margin: 0.75rem 0 1.25rem; }
.text-block > p:not(.label) { color: var(--soft); }
.text-block > p + p, .text-block > ul + p { margin-top: 1rem; }
.text-block > ul { margin-bottom: 1rem; }

.cards-wrap { padding-top: var(--section); }
.cards-wrap > h2 { font-size: var(--step-head); margin-top: 0.75rem; }
.cards-intro { margin-top: 1rem; max-width: 44rem; color: var(--muted); }
.cards { list-style: none; padding: 0; margin-top: 2.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { position: relative; padding: 2rem 1.75rem; background: var(--bg); transition: background-color 300ms var(--ease-out); }
.card:hover { background: var(--surface); }
.card h3 { font-size: 1.375rem; }
.card h3 a { text-decoration: none; }
.card h3 a::before { content: ""; position: absolute; inset: 0; }
.card h3 a::after { content: " →"; color: var(--accent); }
.card p { margin-top: 0.6rem; color: var(--muted); font-size: 1rem; }

.ticks { list-style: none; padding: 2.5rem 0 0; max-width: 980px; display: grid; gap: 0.75rem; }
.ticks li { position: relative; padding-left: 1.75rem; color: var(--soft); }
.ticks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.45em; width: 0.7rem; height: 0.4rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.note { max-width: 980px; padding-top: 2.5rem; color: var(--muted); font-size: 1rem; }
.note a { color: var(--olive); font-weight: 600; }

.tax { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; margin-top: var(--section); padding: clamp(2.5rem, 5vw, 4rem); background: var(--olive); color: var(--olive-ink); }
.tax-figure { font: 400 clamp(3.5rem, 2.5rem + 3.5vw, 5.5rem) / 1 var(--display); color: #e9d9a6; }
.tax-text h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
.tax-text p { margin-top: 1rem; max-width: 44rem; color: rgb(251 247 238 / 0.88); }
.tax-text strong { color: var(--olive-ink); }
.tax .text-link { color: var(--olive-ink); }

.facts { padding-top: var(--section); }
.facts ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.facts strong { display: block; font-size: clamp(2.25rem, 1.7rem + 1.8vw, 3.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--olive); }
.facts span { display: block; margin-top: 0.75rem; color: var(--muted); font-size: 1rem; }

.example { max-width: 980px; padding-top: var(--section); }
.example h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); margin: 0.75rem 0 1.75rem; }
.example dl { padding: 0.5rem 2rem; background: var(--surface); }
.example dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.example dl > div:last-child { border-bottom: 0; }
.example dd { font-size: 1.375rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.example .total dt, .example .total dd { color: var(--olive); font-weight: 600; }
.example .total dd { font-size: 1.875rem; }
.example .note { padding-top: 1.25rem; width: auto; }

.band { margin-top: var(--section); padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem); background: var(--surface); display: grid; grid-template-columns: 1fr auto; gap: 1rem 3rem; align-items: end; }
.band h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); grid-column: 1; }
.band p:not(.actions) { grid-column: 1; color: var(--muted); max-width: 40rem; }
.band .actions { grid-column: 2; grid-row: 1 / 3; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-top: var(--section); }
.form-section > h2, .contact-card h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); margin-bottom: 1.75rem; }
.contact-card { padding: 2.25rem; background: var(--surface); }
.contact-card p { color: var(--soft); }
.contact-card p + p { margin-top: 1rem; }
.contact-card a:not(.text-link) { font-weight: 600; text-decoration: none; }
.contact-map { padding-top: var(--section); }
.contact-map .plan-map { aspect-ratio: 21 / 8; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.75rem; }
.form .is-wide, .form .field.is-wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 0.45rem; font-size: 0.9375rem; font-weight: 600; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; min-height: 54px; padding: 0.75rem 1rem; border: 1px solid rgb(58 42 32 / 0.35); border-radius: 2px; background: #ffffff; color: var(--ink); font: inherit; }
.field input[type="file"] { border-style: dashed; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--olive); outline-offset: 0; }
.form-note { color: var(--muted); font-size: var(--step-small); }
.form-hp { position: absolute; left: -9999px; }
.form-alert { margin-bottom: 1.75rem; padding: 1rem 1.25rem; background: var(--surface); }
.form-alert.is-error { background: #f1dcd2; }

.prose { max-width: 760px; padding-top: clamp(4rem, 8vw, 7rem); }
.prose h1 { font-size: var(--step-head); margin-bottom: 2rem; }
.prose h2 { font-size: 1.375rem; margin: 2.5rem 0 0.75rem; }
.prose p { color: var(--soft); }

/* ---------- pied de page : bas, fond olive uni ---------- */
.footer { margin-top: var(--section); padding: clamp(3rem, 5vw, 4rem) var(--margin) 1.5rem; background: var(--brown); color: var(--olive-ink); }
.footer-top { display: grid; grid-template-columns: 4fr 5fr 3fr; gap: 2.5rem; align-items: start; width: min(100%, var(--wrap)); margin-inline: auto; }
.footer-name { font: 400 1.75rem / 1.1 var(--display); color: #e9d9a6; }
.footer-id p:not(.footer-name) { color: rgb(244 241 233 / 0.72); font-size: 1rem; }
.footer-id p + p { margin-top: 0.75rem; }
.footer a { color: var(--olive-ink); }
.footer-social a, .footer-contact a { font-weight: 600; text-decoration: none; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 2rem; font-size: 1rem; }
.footer-nav a { text-decoration: none; color: rgb(244 241 233 / 0.85); }
.footer-nav a:hover { color: var(--olive-ink); text-decoration: underline; }
.footer-contact { font-size: 1rem; color: rgb(244 241 233 / 0.85); }
.footer-legal { width: min(100%, var(--wrap)); margin: 2.5rem auto 0; padding-top: 1.25rem; border-top: 1px solid rgb(244 241 233 / 0.18); font-size: var(--step-small); color: rgb(244 241 233 / 0.65); }
.footer-legal a { color: rgb(244 241 233 / 0.8); }

/* ---------- bouton d'appel ---------- */
.fab { position: fixed; right: clamp(1rem, 2vw, 1.75rem); bottom: clamp(1rem, 2vw, 1.75rem); z-index: 30; display: inline-flex; align-items: center; height: 56px; min-width: 56px; padding: 0 16px; border-radius: 28px; background: var(--olive); color: var(--olive-ink); font-weight: 600; text-decoration: none; transition: background-color 200ms var(--ease-out), transform 160ms var(--ease-out); }
.fab svg { flex: none; }
.fab-label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 320ms var(--ease-out), margin 320ms var(--ease-out); }
.fab:hover, .fab:focus-visible { background: var(--olive-dark); }
.fab:hover .fab-label, .fab:focus-visible .fab-label { max-width: 12em; margin-left: 0.6rem; }
.fab.away { opacity: 0; pointer-events: none; transform: translateY(16px); transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100svh; width: 100vw; height: 100svh; }
.lightbox::backdrop { background: rgb(58 42 32 / 0.94); }
.lightbox-inner { display: grid; place-items: center; width: 100%; height: 100%; padding: 4rem var(--margin); }
.lightbox img { max-width: 100%; max-height: calc(100svh - 10rem); object-fit: contain; }
.lightbox p { margin-top: 1rem; text-align: center; color: var(--olive-ink); }
.lightbox-close { position: fixed; top: 1rem; right: var(--margin); color: var(--olive-ink); background: none; border: 0; font: 600 1rem var(--text); cursor: pointer; min-height: 44px; }

/* ---------- mouvements lents ---------- */
@media (prefers-reduced-motion: no-preference) {
  .h-hero-pic img { animation: breathe 26s var(--ease-soft) infinite alternate; }
  .js .h-pic, .js .split-pic, .js .page-hero-pic { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease-out); }
  .js .h-pic.in, .js .split-pic.in, .js .page-hero-pic.in { clip-path: inset(0 0 0 0); }
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .fab { animation: fab-in 600ms var(--ease-out) 1.4s both; }
}
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes fab-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
}

/* ---------- tablette ---------- */
@media (max-width: 1240px) {
  .bar-nav { gap: 1.1rem; }
}
@media (max-width: 1100px) {
  :root { --bar: 64px; }
  .bar { gap: 1rem; }
  .bar-book { min-height: 42px; padding: 0 1rem; }
  .bar-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.25rem; background: none; border: 0; color: var(--ink); font: 600 1rem var(--text); cursor: pointer; }
  .bar-nav { display: none; position: fixed; inset: var(--bar) 0 0; z-index: 25; flex-direction: column; gap: 0.25rem; padding: 2rem var(--margin); background: var(--bg); font-size: 1.875rem; font-weight: 600; letter-spacing: -0.02em; overflow-y: auto; }
  .bar-nav.open { display: flex; }
  .bar-nav-tel { display: block; margin-top: 1.5rem; color: var(--olive) !important; }
  body.menu-open { overflow: hidden; }
  .steps, .h-facts, .facts ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .h-hero { grid-template-columns: 1fr; align-items: start; }
  .h-hero-side { grid-column: 1; }
  .h-hero-pic { aspect-ratio: 4 / 3; }
  .h-tiles, .page-hero, .split, .h-zone, .zone-wrap, .contact-grid, .tax, .h-tax, .faq-acc, .band { grid-template-columns: 1fr; }
  .band .actions { grid-column: 1; grid-row: auto; }
  .split.is-reverse .split-pic { order: 0; }
  .page-hero-pic { aspect-ratio: 4 / 3; }
  .works { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
}

/* ---------- téléphone ---------- */
@media (max-width: 760px) {
  .bar-book { display: none; }
  .h-facts, .facts ul { gap: 1.75rem 1.25rem; }
  .works, .steps { grid-template-columns: 1fr; }
  .work-pic { aspect-ratio: 4 / 3; }
  .towns { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .zone-row { flex-direction: column; }
  .contact-map .plan-map { aspect-ratio: 4 / 3; }
  .footer-top { grid-template-columns: 1fr; }
  .footer { padding-bottom: 5.5rem; }
  .page-hero h1 { font-size: 11vw; }
}

/* Tableau en texte (guides) : réponses en clair, empilées sur mobile. */
.example.is-text dd { font-size: 1rem; font-weight: 600; white-space: normal; text-align: right; max-width: 22rem; }
@media (max-width: 640px) {
	.example.is-text dl { padding-inline: 1.25rem; }
	.example.is-text dl > div { flex-direction: column; gap: 0.25rem; }
	.example.is-text dd { text-align: left; max-width: none; }
}

/* ---------- accueil A : le jardinier, les saisons ---------- */
.g-hero, .g-seasons, .g-quote { width: min(100% - 2 * var(--margin), var(--wrap)); margin-inline: auto; }
.g-hero { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.g-hero h1 { margin-top: 1rem; font-size: var(--step-display); }
.g-lead { margin-top: 1.5rem; max-width: 34rem; font-size: 1.1875rem; line-height: 1.6; color: var(--soft); }
.g-hero .actions { margin-top: 2rem; }
.g-sign { display: flex; align-items: center; gap: 0.75rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: var(--step-small); color: var(--muted); }
.g-sign-leaf { width: 32px; height: auto; flex: none; }
.g-hero-pic { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 160px 160px 4px 4px; }
.g-hero-pic img { width: 100%; height: 100%; object-fit: cover; animation: breathe 26s var(--ease-soft) infinite alternate; }
.g-seasons { padding-top: var(--section); }
.g-seasons-intro { max-width: 30rem; color: var(--muted); }
.g-season-list { list-style: none; padding: 0; margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.g-season .h-pic { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; }
.g-season .h-pic img { width: 100%; height: 100%; object-fit: cover; }
.g-season h3 { margin-top: 1.1rem; font-size: 1.625rem; color: var(--brown); }
.g-season p { margin-top: 0.4rem; color: var(--muted); font-size: 1.0625rem; }
.g-quote { padding-top: var(--section); }
.g-quote blockquote { margin: 0 auto; max-width: 52rem; text-align: center; }
.g-quote p { font: 400 clamp(1.5rem, 1.15rem + 1.2vw, 2.25rem) / 1.35 var(--display); color: var(--brown); }
.g-quote footer { margin-top: 1.25rem; font-size: var(--step-small); letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.h-tile .h-pic, .split-pic, .page-hero-pic, .work-pic { border-radius: 4px; }
.calc-wrap { width: min(100% - 2 * var(--margin), var(--wrap)); margin-inline: auto; padding-top: clamp(3rem, 5vw, 4.5rem); }
.calc { max-width: 40rem; padding: clamp(1.75rem, 4vw, 2.75rem); background: var(--surface); border-radius: 4px; display: grid; gap: 0.75rem; }
.calc-title { font: 400 clamp(1.625rem, 1.3rem + 1vw, 2.25rem) / 1.1 var(--display); color: var(--brown); }
.calc label { font-weight: 600; }
.calc input { width: 100%; min-height: 56px; padding: 0 1rem; border: 1px solid rgb(58 42 32 / 0.35); border-radius: 999px; background: #ffffff; font: 600 1.25rem var(--text); color: var(--ink); }
.calc-result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; margin-top: 0.5rem; }
.calc-result b { font: 400 clamp(2.5rem, 2rem + 2vw, 3.5rem) / 1 var(--display); color: var(--olive); }
.calc-result s { color: var(--muted); }
.calc-note { font-size: var(--step-small); color: var(--muted); }
.partner-logo { max-width: 200px; margin: 0.5rem 0 1rem; }
.partner-logo img { width: 100%; height: auto; }
/* Leaflet empile ses calques jusqu'à z-index 1000 : la carte reste sous l'en-tête et le bouton d'appel. */
.plan-map { position: relative; z-index: 0; isolation: isolate; }
@media (max-width: 1100px) { .g-season-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .g-hero { grid-template-columns: 1fr; }
  .g-hero-pic { aspect-ratio: 3 / 2; border-radius: 120px 120px 4px 4px; }
}
@media (max-width: 760px) { .g-season-list { grid-template-columns: 1fr 1fr; gap: 1rem; } .g-season h3 { font-size: 1.375rem; } }
@media (max-width: 420px) { .wordmark-text small { display: none; } .wordmark-leaf { width: 32px; } }
/* Blocs de texte alignés sur le bord gauche du conteneur, ligne de lecture limitée. */
.text-block { max-width: none; }
.text-block > * { max-width: 980px; }

/* Menu sur téléphone : des icônes (trois traits / croix), jamais les mots « Menu » et « Fermer ». */
.bar-toggle { justify-content: center; gap: 0; min-width: 44px; min-height: 44px; }
.bar-toggle svg { display: block; flex: none; }
.bar-toggle .bar-toggle-close, .bar-toggle[aria-expanded="true"] .bar-toggle-open { display: none; }
.bar-toggle[aria-expanded="true"] .bar-toggle-close { display: block; }

/* Encart professionnels : présent mais discret (la clientèle est surtout faite de particuliers). */
.band.g-pro { padding-block: clamp(1.75rem, 3.5vw, 2.5rem); align-items: center; }
.band.g-pro h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }

/* Accueil A : le service à la personne expliqué (particulier / professionnel). */
.h-tax .label { color: #e9d9a6; }
.h-tax .label + h2 { margin-top: 0.5rem; }
.h-tax-list { list-style: none; padding: 0; margin-top: 1.5rem; display: grid; gap: 0.75rem; max-width: 44rem; }
.h-tax-list li { padding: 0.9rem 1.1rem; border-radius: 10px; background: rgb(251 247 238 / 0.08); color: rgb(251 247 238 / 0.92); line-height: 1.5; }
.h-tax-list b { color: #fbf7ee; }
.h-tax-list span { display: inline-block; margin-left: 0.25rem; font-weight: 700; color: #e9d9a6; }

/* Mobile et accessibilité : liens isolés d'au moins 24 px de haut (fil d'Ariane, itinéraire). */
.crumbs a, .plan figcaption .text-link { display: inline-block; padding-block: 0.25rem; min-height: 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Menu mobile A : le bouton « Devis gratuit » de l'en-tête est masqué sur téléphone, on le reprend dans le menu. */
@media (max-width: 760px) { .bar-nav .bar-nav-devis { display: block; } }
/* Téléphone : chiffres clés plus compacts, pour que « 2 rythmes » tienne dans sa colonne. */
@media (max-width: 760px) {
  .h-facts { grid-template-columns: 1fr 1fr; gap: 1.75rem 1.25rem; }
  .h-fact { font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.25rem); }
  .h-facts p:not(.h-fact) { margin-top: 0.5rem; font-size: 0.9375rem; }
}
#formulaire { scroll-margin-top: calc(var(--bar) + 1rem); }
