/*
Theme Name: Le Carour Paysage — version B (claire)
Description: Proposition B : claire, sobre et grand public. Page blanche à largeur contenue, vert feuille en accent, le crédit d'impôt mis en avant, vérification de la commune, cartes arrondies et FAQ en accordéon.
Author: Axo-Lab
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.3
Text Domain: carour-clair
*/

:root {
  --bg: #ffffff;
  --surface: #f1f5ee;
  --surface-2: #e4ede0;
  --ink: #1b2119;
  --muted: #525a50;
  --accent: #2f6b2f;
  --accent-dark: #224f22;
  --accent-ink: #ffffff;
  --sun: #f3e3b3;
  --line: #dfe5dc;
  --map-accent: #2f6b2f;

  --display: "Fraunces", Georgia, serif;
  --text: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --step-lead: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);
  --step-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --step-head: clamp(1.875rem, 1.35rem + 2vw, 3rem);
  --step-display: clamp(2.5rem, 1.5rem + 4vw, 4.75rem);

  --wrap: 1180px;
  --margin: clamp(1.25rem, 3vw, 2.5rem);
  --section: clamp(4.5rem, 8vw, 8rem);
  --bar: 76px;
  --radius: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 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: 600; letter-spacing: -0.015em; line-height: 1.1; text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }
figure.wp-block-image { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--sun); }
:target { scroll-margin-top: calc(var(--bar) + 1rem); }
a[href^="tel:"] { white-space: nowrap; }

.label { font-weight: 700; font-size: var(--step-small); color: var(--accent); }

.c-hero, .c-zone, .c-services, .c-tax, .c-works, .c-steps, .faq, .c-find,
.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: 52px; padding: 0 1.6rem; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  font: 700 1rem / 1 var(--text); text-decoration: none;
  transition: background-color 180ms var(--ease-out), transform 140ms var(--ease-out);
}
.button:hover { background: var(--accent-dark); }
.button:active { transform: scale(0.98); }
.button.is-light, .button.is-ghost { background: var(--bg); color: var(--ink); border: 2px solid var(--ink); }
.button.is-light:hover, .button.is-ghost:hover { background: var(--ink); color: var(--bg); }
.text-link { font-weight: 700; text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.text-link:hover { color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.875rem 1.25rem; }
.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: 1.75rem; height: var(--bar); width: min(100% - 2 * var(--margin), 1320px); margin-inline: auto; }
.wordmark { font: 500 1.5rem / 1 var(--display); text-decoration: none; margin-right: auto; white-space: nowrap; }
.wordmark span { font-weight: 700; color: var(--accent); }
.bar-nav { display: flex; gap: 1.35rem; font-weight: 600; font-size: 1rem; }
.bar-nav a { white-space: nowrap; text-decoration: none; padding: 0.4rem 0; border-bottom: 2px solid transparent; transition: border-color 180ms var(--ease-out); }
.bar-nav a:hover, .bar-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.bar-book { min-height: 44px; padding: 0 1.1rem; font-size: 0.9375rem; }
.bar-nav-tel, .bar-toggle { display: none; }

/* ---------- accueil : le titre centré, puis la grande photo ---------- */
.c-hero { padding-top: clamp(3rem, 6vw, 5rem); text-align: center; }
.c-hero-text { max-width: 900px; margin: 0 auto; }
.c-chip { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.4rem 1rem 0.4rem 0.4rem; border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 0.9375rem; }
.c-chip span { padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--accent); color: #fff; }
.c-hero h1 { margin-top: 1.5rem; font-size: var(--step-display); }
.c-hero-lead { margin: 1.25rem auto 0; max-width: 44rem; font-size: var(--step-lead); color: var(--muted); }
.c-hero .actions { margin-top: 2rem; }
.c-hero-pic { margin-top: clamp(2.5rem, 5vw, 4rem); aspect-ratio: 16 / 8; border-radius: 20px; overflow: hidden; }
.c-hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }

/* ---------- vérifier sa commune ---------- */
.c-zone { margin-top: 1.5rem; }
.c-zone-card { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.5rem 3rem; align-items: center; width: min(100%, 980px); margin: 0 auto; padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: 18px; background: var(--surface); }
.c-zone-card h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.c-zone-card p { margin-top: 0.5rem; color: var(--muted); }
.zone label { display: block; font-weight: 700; font-size: 0.9375rem; }
.zone-row { display: flex; gap: 0.6rem; margin-top: 0.5rem; }
.zone input { flex: 1; min-width: 0; min-height: 52px; padding: 0 1rem; border: 1px solid #b9c3b5; border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; }
.zone input:focus { outline: 3px solid rgb(47 107 47 / 0.25); border-color: var(--accent); }
.zone-answer { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--muted); min-height: 3em; }
.zone-answer.is-yes { color: var(--accent-dark); font-weight: 600; }

/* ---------- les deux métiers ---------- */
.c-services { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding-top: var(--section); }
.c-service { display: flex; flex-direction: column; border-radius: 18px; background: var(--surface); overflow: hidden; }
.c-service figure { aspect-ratio: 16 / 10; overflow: hidden; }
.c-service figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.c-service:hover figure img { transform: scale(1.03); }
.c-service-text { padding: clamp(1.5rem, 3vw, 2.25rem); }
.c-kicker { font-weight: 700; font-size: var(--step-small); color: var(--accent); }
.c-service h2 { margin-top: 0.5rem; font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); }
.c-service h2 a { text-decoration: none; }
.c-service h2 a:hover { color: var(--accent); }
.c-service-text > p:not(.c-kicker) { margin-top: 0.75rem; color: var(--muted); }
.c-ticks { list-style: none; padding: 0; margin-top: 1.25rem; display: grid; gap: 0.15rem; }
.c-ticks a { display: flex; justify-content: space-between; padding: 0.6rem 0; border-top: 1px solid var(--line); font-weight: 600; text-decoration: none; }
.c-ticks a::after { content: "→"; color: var(--accent); }
.c-ticks a:hover { color: var(--accent); }

/* ---------- crédit d'impôt ---------- */
.c-tax { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; margin-top: var(--section); padding: clamp(2rem, 5vw, 3.5rem); border-radius: 20px; background: var(--sun); }
.c-tax-figure { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; width: clamp(150px, 18vw, 220px); aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: #fff; text-align: center; }
.c-tax-figure strong { font: 700 clamp(2.5rem, 2rem + 2vw, 3.75rem) / 1 var(--display); }
.c-tax-figure span { font-weight: 600; font-size: 0.875rem; }
.c-tax h2 { font-size: var(--step-head); }
.c-tax-text > p:not(.actions) { margin-top: 1rem; max-width: 46rem; }
.c-tax-ex { font-size: 1.0625rem; }
.c-tax .actions { margin-top: 1.25rem; }

.c-head { max-width: 640px; margin: 0 auto; text-align: center; }
.c-head h2 { font-size: var(--step-head); }
.c-head p { margin-top: 0.75rem; color: var(--muted); }
.c-works, .c-steps { padding-top: var(--section); }
.c-works .works { margin-top: 2.5rem; }
.c-works .actions { margin-top: 2.5rem; }

/* ---------- réalisations ---------- */
.works { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.work { border-radius: var(--radius); background: var(--surface); overflow: hidden; padding-bottom: 1.5rem; }
.work-pic { aspect-ratio: 4 / 3; overflow: hidden; }
.work-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.work:hover .work-pic img { transform: scale(1.03); }
.work-meta, .work-title, .work-text { padding-inline: 1.5rem; }
.work-meta { margin-top: 1.1rem; font-size: var(--step-small); font-weight: 700; color: var(--accent); }
.work-title { margin-top: 0.3rem; font-size: var(--step-h3); }
.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: 2rem; }
.works-wrap .actions { margin-top: 2rem; }
.works-wrap.is-page { padding-top: 3rem; }

/* ---------- étapes ---------- */
.steps { list-style: none; padding: 0; margin-top: 2.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: step; }
.steps li { padding: 1.75rem 1.5rem; border-radius: var(--radius); background: var(--surface); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; }
.steps h3 { margin-top: 1rem; font-size: var(--step-h3); }
.steps p { margin-top: 0.4rem; color: var(--muted); font-size: 1rem; }
.steps-wrap { padding-top: var(--section); }
.steps-wrap > h2 { font-size: var(--step-head); margin-top: 0.5rem; }

/* ---------- FAQ en accordéon ---------- */
.faq { padding-top: var(--section); }
.faq-acc { max-width: 860px; margin: 0 auto; }
.faq-acc-title { font-size: var(--step-head); text-align: center; margin-bottom: 2rem; }
.faq-acc-list { display: grid; gap: 0.75rem; }
.faq-acc details { background: var(--surface); border-radius: var(--radius); }
.faq-acc summary { position: relative; display: flex; align-items: center; min-height: 64px; padding: 0.75rem 3.5rem 0.75rem 1.5rem; font-weight: 700; 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: 1.5rem; top: 50%; width: 14px; height: 2px; background: var(--accent); transition: transform 240ms 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 1.5rem 1.4rem; max-width: 62ch; color: var(--muted); }

/* ---------- contact et carte ---------- */
.c-find { display: grid; grid-template-columns: 5fr 7fr; gap: 1.5rem; align-items: stretch; padding-top: var(--section); }
.c-find-card { padding: clamp(2rem, 4vw, 2.75rem); border-radius: 20px; background: var(--surface); display: flex; flex-direction: column; gap: 0.9rem; }
.c-find-card h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); margin-bottom: 0.25rem; }
.c-find-card p { color: var(--muted); }
.c-find-card a { color: var(--ink); font-weight: 600; text-decoration: none; }
.c-find-card .actions { margin-top: auto; padding-top: 0.5rem; }
.c-find-card .button { color: #fff; }
.c-find-map .plan, .c-find-map .plan-map { height: 100%; }
.c-find-map .plan { display: flex; flex-direction: column; }
.c-find-map .plan-map { flex: 1; aspect-ratio: auto; min-height: 380px; }
.plan-map { position: relative; z-index: 0; width: 100%; aspect-ratio: 4 / 3; background: var(--surface); border-radius: 20px; overflow: hidden; }
.plan-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.plan .leaflet-container { font-family: var(--text); background: var(--surface); }
.plan .leaflet-tile-pane { filter: saturate(0.55) brightness(1.03); }
.plan .leaflet-bar { border: 0; box-shadow: none; }
.plan .leaflet-bar a { color: var(--ink); font: 600 1.25rem / 30px var(--text); border-bottom-color: var(--surface); }
.plan-pin span { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); outline: 5px solid rgb(47 107 47 / 0.25); }
.plan-pin b { position: absolute; left: 26px; top: -3px; padding: 0.15rem 0.6rem; border-radius: 6px; background: var(--ink); color: #fff; 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 107 47 / 0.4); }
.plan-legend i.is-build { margin-left: 0.75rem; border: 2px dashed var(--accent); }

/* ---------- pages intérieures ---------- */
.crumbs { font-size: var(--step-small); color: var(--muted); margin-bottom: 1.25rem; }
.crumbs a { color: var(--muted); }
.page-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-top: clamp(2.5rem, 5vw, 4rem); }
.page-hero .label { margin-bottom: 0.75rem; }
.page-hero h1 { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.75rem); }
.page-hero .lead { margin-top: 1.25rem; font-size: var(--step-lead); color: var(--muted); max-width: 42ch; }
.page-hero .actions { margin-top: 2rem; }
.page-hero .actions:empty { display: none; }
.page-hero-pic { aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; }
.page-hero-pic img, .split-pic img { width: 100%; height: 100%; object-fit: cover; }
.page-hero.is-short { display: block; text-align: center; padding-top: clamp(3rem, 7vw, 5rem); }
.page-hero.is-short .lead { margin-inline: auto; max-width: 52ch; }
.page-hero.is-short .actions { justify-content: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-top: var(--section); }
.split-pic { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
.split.is-reverse .split-pic { order: 2; }
.split h2 { font-size: var(--step-head); margin: 0.5rem 0 1.25rem; }
.split p:not(.label) { color: var(--muted); max-width: 46ch; }
.split p + p { margin-top: 1rem; }

.text-block { max-width: 820px; padding-top: var(--section); }
.text-block h2 { font-size: var(--step-head); margin: 0.5rem 0 1.25rem; }
.text-block > p:not(.label) { color: var(--muted); }
.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); }
.cards-intro { margin-top: 0.75rem; max-width: 52ch; color: var(--muted); }
.cards { list-style: none; padding: 0; margin-top: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.card { position: relative; padding: 1.75rem; border-radius: var(--radius); background: var(--surface); transition: background-color 200ms var(--ease-out); }
.card:hover { background: var(--surface-2); }
.card h3 { font-size: var(--step-h3); }
.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.5rem; color: var(--muted); font-size: 1rem; }

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

.tax { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.25rem, 4vw, 3rem); align-items: center; margin-top: var(--section); padding: clamp(2rem, 4vw, 3rem); border-radius: 20px; background: var(--sun); }
.tax-figure { display: grid; place-items: center; width: clamp(110px, 12vw, 150px); aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: #fff; font: 700 clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem) / 1 var(--display); }
.tax-text h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.tax-text p { margin-top: 0.75rem; max-width: 52ch; }

.facts { padding-top: var(--section); }
.facts ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.facts li { padding: 1.75rem 1.25rem; border-radius: var(--radius); background: var(--surface); text-align: center; }
.facts strong { display: block; font: 700 clamp(1.875rem, 1.5rem + 1.2vw, 2.625rem) / 1 var(--display); color: var(--accent); }
.facts span { display: block; margin-top: 0.5rem; color: var(--muted); font-size: 1rem; }

.example { max-width: 820px; padding-top: var(--section); }
.example h2 { font-size: var(--step-head); margin: 0.5rem 0 1.5rem; }
.example dl { padding: 0.5rem 1.75rem; border-radius: var(--radius); background: var(--surface); }
.example dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.example dl > div:last-child { border-bottom: 0; }
.example dd { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.example .total dt, .example .total dd { color: var(--accent-dark); font-size: 1.25rem; font-weight: 700; }
.example .note { padding-top: 1rem; width: auto; }

.band { margin-top: var(--section); padding: clamp(2.25rem, 5vw, 3.5rem); border-radius: 20px; background: var(--surface); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.band h2 { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem); flex-basis: 100%; }
.band p { color: var(--muted); max-width: 52ch; }

.zone-wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-top: var(--section); }
.zone-col h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); margin-bottom: 1.25rem; }
.towns { list-style: none; padding: 0; margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 1.5rem; }
.towns a { font-weight: 600; text-decoration-color: var(--accent); text-underline-offset: 0.25em; }

.contact-grid { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-top: var(--section); }
.form-section > h2, .contact-card h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); margin-bottom: 1.5rem; }
.contact-card { padding: 2rem; border-radius: 20px; background: var(--surface); }
.contact-card p { color: var(--muted); }
.contact-card p + p { margin-top: 0.9rem; }
.contact-card a:not(.text-link) { color: var(--ink); 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.25rem 1.5rem; }
.form .is-wide, .form .field.is-wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 0.4rem; font-weight: 700; font-size: 1rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; min-height: 52px; padding: 0.75rem 1rem; border: 1px solid #c8d0c5; border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; }
.field input[type="file"] { padding: 0.85rem 1rem; border-style: dashed; background: var(--surface); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid rgb(47 107 47 / 0.25); border-color: var(--accent); }
.form-note { color: var(--muted); font-size: var(--step-small); }
.form-hp { position: absolute; left: -9999px; }
.form-alert { margin-bottom: 1.5rem; padding: 1rem 1.25rem; border-radius: 10px; background: var(--surface); }
.form-alert.is-error { background: #fbe4dc; }

.prose { max-width: 760px; padding-top: clamp(3.5rem, 7vw, 6rem); }
.prose h1 { font-size: var(--step-head); margin-bottom: 2rem; }
.prose h2 { font: 700 var(--step-h3) var(--text); margin: 2.25rem 0 0.6rem; }
.prose p { color: var(--muted); }

/* ---------- pied de page : aplat vert très clair, bas ---------- */
.footer { margin-top: var(--section); padding: clamp(2.75rem, 5vw, 3.75rem) var(--margin) 1.5rem; background: var(--surface); }
.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: 600 1.5rem / 1.1 var(--display); color: var(--ink) !important; }
.footer-id p { color: var(--muted); font-size: 1rem; }
.footer-id p + p { margin-top: 0.75rem; }
.footer-social a, .footer-contact a { font-weight: 700; color: var(--accent-dark); text-decoration: none; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 2rem; font-size: 1rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; color: var(--accent-dark); }
.footer-contact { font-size: 1rem; }
.footer-legal { width: min(100%, var(--wrap)); margin: 2.25rem auto 0; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: var(--step-small); color: var(--muted); }
.footer-legal a { color: var(--muted); }

/* ---------- 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(--accent); color: #fff; font-weight: 700; text-decoration: none; transition: background-color 180ms var(--ease-out), transform 140ms 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(--accent-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(20px); 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(20 24 19 / 0.9); }
.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; border-radius: var(--radius); }
.lightbox p { margin-top: 1rem; color: #fff; text-align: center; }
.lightbox-close { position: fixed; top: 1rem; right: var(--margin); color: #fff; background: none; border: 0; font: 700 1.125rem var(--text); cursor: pointer; min-height: 44px; }

/* ---------- mouvements ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fab { animation: fab-in 520ms var(--ease-out) 1.2s both; }
  .c-hero-pic img { animation: settle 1.8s var(--ease-out) both; }
  .js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
}
@keyframes fab-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
}

/* ---------- tablette ---------- */
@media (max-width: 1180px) {
  .bar-nav { gap: 1rem; font-size: 0.9375rem; }
}
@media (max-width: 1100px) {
  :root { --bar: 64px; }
  .bar { gap: 1rem; }
  .wordmark { font-size: 1.25rem; }
  .bar-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.25rem; background: none; border: 0; color: var(--ink); font: 700 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: 600 1.75rem / 1.4 var(--display); overflow-y: auto; }
  .bar-nav.open { display: flex; }
  .bar-nav-tel { display: block; margin-top: 1.5rem; color: var(--accent); }
  body.menu-open { overflow: hidden; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .c-zone-card, .c-services, .c-tax, .c-find, .split, .page-hero, .zone-wrap, .contact-grid, .tax { grid-template-columns: 1fr; }
  .split.is-reverse .split-pic { order: 0; }
  .works { grid-template-columns: 1fr 1fr; }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
  .c-hero-pic { aspect-ratio: 4 / 3; }
  .c-zone { margin-top: 1.5rem; }
}

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

/* 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; }
}
