/* =========================================================================
   Hoerter Paysagiste — feuille de style
   Palette végétale : vert forêt + vert tilleul, fonds sable/pierre.
   ========================================================================= */

:root {
  --green-900: #0e2618;
  --green-800: #153521;
  --green-700: #1d4a30;
  --green-600: #26603c;
  --green-500: #327a4c;
  --green-400: #4a9a67;
  --green-300: #7cbb93;
  --lime-500: #7ba428;
  --lime-400: #9ecb4f;
  --lime-300: #bade7d;
  --lime-100: #eef6dc;

  --sand-50: #faf8f2;
  --sand-100: #f3efe4;
  --sand-200: #e7e0cf;

  --bg: #f6f8f3;
  --bg-deep: #eef2e9;
  --surface: #ffffff;
  --surface-soft: #f7faf4;

  --text: #16211a;
  --text-soft: #35443b;
  --muted: #5d6d62;
  --muted-light: #5f7165;

  /* couleur des liens sur fond vert foncé : le vert de base y est illisible */
  --link-on-dark: #d9ef9f;

  --border: #dfe6da;
  --border-strong: #c9d4c2;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1180px;

  --shadow-xs: 0 2px 8px rgba(14, 38, 24, 0.05);
  --shadow-sm: 0 8px 22px rgba(14, 38, 24, 0.07);
  --shadow-md: 0 16px 40px rgba(14, 38, 24, 0.11);
  --shadow-lg: 0 28px 70px rgba(14, 38, 24, 0.17);

  --header-h: 78px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  /* clip (et non hidden) : n'crée pas de conteneur de défilement et ne casse
     donc pas position:sticky. Empêche le tiroir mobile hors écran de générer
     un défilement horizontal. */
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  color: var(--text);
  background:
    radial-gradient(circle at 8% -6%, #ffffff 0%, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 96% 2%, #eef5e7 0%, rgba(238, 245, 231, 0) 38%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  /* PAS d'overflow-x ici : « html » ayant un overflow non-visible, celui du
     body ne se propage plus au viewport — le body deviendrait son propre
     conteneur de défilement et position:sticky (le sommaire ancré) cesserait
     de fonctionner. Le clip est déjà posé sur <html> juste au-dessus. */
}

/* Verrou de défilement quand le tiroir mobile est ouvert.
   La classe est posée sur <html> ET sur <body> : « html » ayant un overflow
   non-visible (le clip horizontal), celui du body ne se propage plus au
   viewport et ne suffirait donc plus à bloquer la page. */
html.nav-open,
body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--green-600);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-700);
  text-decoration-thickness: 2px;
}

/* --- Liens sur fonds vert foncé -------------------------------------------
   Le vert de base (#26603c) tombe à 1,4:1 sur ces fonds : illisible, et le
   hover l'assombrissait encore. On passe sur un vert tilleul clair, et le
   survol éclaircit jusqu'au blanc. */
.hero a:not(.btn),
.page-head a:not(.btn),
.final-cta a:not(.btn),
.post-cta-card a:not(.btn),
.site-footer a:not(.btn),
.infobar a,
.hero-strip figcaption a,
.gallery-caption a,
.split-media figcaption a {
  color: var(--link-on-dark);
  text-decoration-color: rgba(217, 239, 159, 0.55);
}

.hero a:not(.btn):hover,
.page-head a:not(.btn):hover,
.final-cta a:not(.btn):hover,
.post-cta-card a:not(.btn):hover,
.site-footer a:not(.btn):hover,
.infobar a:hover {
  color: #ffffff;
  text-decoration-color: currentColor;
}

/* le fil d'ariane et le sommaire légal gardent leur style propre */
.page-head .breadcrumb a,
.page-head .legal-toc a { color: rgba(226, 240, 220, 0.92); }
.page-head .breadcrumb a:hover,
.page-head .legal-toc a:hover { color: #ffffff; }

h1,
h2,
h3,
h4 {
  margin: 0 0 0.85rem;
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--green-900);
  font-weight: 800;
}

h1 { font-size: clamp(1.85rem, 4.2vw, 2.95rem); }
h2 { font-size: clamp(1.45rem, 3.2vw, 2.15rem); }
h3 { font-size: clamp(1.1rem, 2.1vw, 1.32rem); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }

strong { font-weight: 700; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 2.5rem, 860px);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  color: var(--green-800);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

:focus-visible {
  outline: 3px solid var(--lime-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  display: inline-block;
  vertical-align: -0.18em;
}

/* ------------------------------------------------------------------ Barre info */

.infobar {
  background: linear-gradient(100deg, var(--green-900), var(--green-700) 55%, var(--green-600));
  color: #e8f2e6;
  font-size: 0.86rem;
}

.infobar-inner {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}

.infobar p,
.infobar a {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.infobar .ico { color: var(--lime-400); }

.infobar-quote { color: #d9ecd2; }

.infobar-phone {
  margin-left: auto;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  min-height: 26px;
  padding: 0.15rem 0.2rem;
}

.infobar-phone:hover { color: var(--lime-300); }

/* ------------------------------------------------------------------ Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

.site-header.is-stuck {
  box-shadow: 0 10px 30px rgba(14, 38, 24, 0.1);
  background: rgba(255, 255, 255, 0.98);
}

.nav-wrap {
  width: min(100% - 2.5rem, 1400px);
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  flex: none;
}

.brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: var(--lime-100);
  padding: 4px;
  border: 1px solid var(--border);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-main {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--green-900);
  letter-spacing: -0.015em;
}

.brand-main em {
  font-style: normal;
  color: var(--green-500);
}

.brand-sub {
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 600;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.main-nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav-link {
  display: inline-block;
  padding: 0.5rem 0.62rem;
  border-radius: 9px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.main-nav-link::after {
  content: "";
  position: absolute;
  left: 0.62rem;
  right: 0.62rem;
  bottom: 0.28rem;
  height: 2px;
  border-radius: 2px;
  background: var(--lime-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.main-nav-link:hover,
.main-nav-link:focus-visible {
  color: var(--green-700);
  background: var(--surface-soft);
}

.main-nav-link:hover::after,
.main-nav-link.is-active::after {
  transform: scaleX(1);
}

.main-nav-link.is-active {
  color: var(--green-700);
  font-weight: 700;
}

.main-nav-cta { display: none; }

.header-phone {
  margin-left: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--lime-100), #e2f0c9);
  border: 1px solid #cbe3a4;
  color: var(--green-800);
  flex: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.header-phone:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(123, 164, 40, 0.22);
  color: var(--green-900);
}

.header-phone .ico { color: var(--lime-500); font-size: 1.05rem; }

.header-phone-text { display: flex; flex-direction: column; line-height: 1.1; }
.header-phone-text small { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--green-600); }
.header-phone-text strong { font-size: 1rem; font-weight: 800; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: none;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}

.nav-toggle-bars span {
  height: 2px;
  border-radius: 2px;
  background: var(--green-800);
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 26, 16, 0.5);
  backdrop-filter: blur(2px);
  z-index: 88;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.nav-backdrop.is-visible { opacity: 1; }

/* ------------------------------------------------------------------ Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.78rem 1.4rem;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.25;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover,
.btn:focus-visible { transform: translateY(-2px); }

.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.9rem; }
.btn-lg { padding: 0.95rem 1.75rem; font-size: 1.04rem; }

.btn-primary {
  background: linear-gradient(180deg, var(--green-500), var(--green-600));
  color: #fff;
  box-shadow: 0 10px 24px rgba(38, 96, 60, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(180deg, var(--green-600), var(--green-700));
  color: #fff;
  box-shadow: 0 14px 30px rgba(38, 96, 60, 0.34);
}

.btn-lime {
  background: var(--lime-400);
  color: var(--green-900);
  box-shadow: 0 10px 24px rgba(123, 164, 40, 0.32);
}

.btn-lime:hover,
.btn-lime:focus-visible { background: var(--lime-300); color: var(--green-900); }

.btn-outline {
  border-color: var(--green-600);
  color: var(--green-700);
  background: #fff;
}

.btn-outline:hover,
.btn-outline:focus-visible { background: var(--green-700); color: #fff; }

.btn-light { background: #fff; color: var(--green-800); box-shadow: var(--shadow-md); }
.btn-light:hover, .btn-light:focus-visible { background: var(--lime-100); color: var(--green-900); }

.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost-light:hover,
.btn-ghost-light:focus-visible { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* ------------------------------------------------------------------ Sections */

.section { padding: clamp(3rem, 6vw, 5.2rem) 0; }
.section-tight { padding: clamp(2.2rem, 4vw, 3.4rem) 0; }

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(247, 250, 244, 0.95));
  border-block: 1px solid var(--border);
}

.section-sand {
  background: linear-gradient(180deg, var(--sand-50), var(--sand-100));
  border-block: 1px solid var(--sand-200);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem);
}

.section-head-center { margin-inline: auto; text-align: center; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green-500);
}

.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime-400);
}

.kicker-light { color: var(--lime-300); }
.section-head-center .kicker { justify-content: center; }

.lead { font-size: 1.08rem; color: var(--muted); }

/* ------------------------------------------------------------------ Hero */

.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(11, 32, 20, 0.93) 0%, rgba(13, 38, 24, 0.88) 46%, rgba(18, 50, 31, 0.62) 72%, rgba(24, 66, 40, 0.24) 100%),
    linear-gradient(180deg, rgba(11, 32, 20, 0.3), rgba(11, 32, 20, 0.55));
}

.hero-inner {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  padding: clamp(3.4rem, 8vw, 6.4rem) 0 clamp(2.4rem, 4vw, 3.4rem);
  display: grid;
  gap: 2.4rem;
  grid-template-columns: minmax(0, 1fr);
}

.hero h1 { color: #fff; max-width: 24ch; font-size: clamp(1.9rem, 4.4vw, 3.15rem); }
.hero h1 em { font-style: normal; color: var(--lime-300); }

.hero-text { max-width: min(100%, 900px); }

.hero-sub {
  font-size: 1.12rem;
  color: rgba(238, 246, 234, 0.94);
  max-width: 74ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero-keywords {
  list-style: none;
  margin: 1.7rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-keywords li {
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #e9f4e4;
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 0.9rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.hero-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
}

.hero-badge .ico { color: var(--lime-300); font-size: 1.4rem; margin-top: 0.1rem; }
.hero-badge strong { display: block; font-size: 0.98rem; color: #fff; }
.hero-badge span { display: block; font-size: 0.83rem; color: rgba(233, 244, 228, 0.82); line-height: 1.45; }

/* Bandeau photo sous le hero */

.hero-strip {
  position: relative;
  margin-top: -1px;
  background: var(--green-900);
}

.hero-strip-inner {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 2px;
  padding-bottom: 0;
}

.hero-strip figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.hero-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.hero-strip figure:hover img { transform: scale(1.06); }

.hero-strip figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.9rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, rgba(14, 38, 24, 0), rgba(14, 38, 24, 0.88));
}

/* ------------------------------------------------------------------ En-tête de page interne */

.page-head {
  position: relative;
  color: #fff;
  background: linear-gradient(115deg, var(--green-900), var(--green-700) 60%, var(--green-600));
  padding: clamp(2.6rem, 5vw, 4rem) 0 clamp(2.4rem, 4vw, 3.4rem);
  overflow: hidden;
}

.page-head::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -60px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(158, 203, 79, 0.22), rgba(158, 203, 79, 0));
}

.page-head h1 { color: #fff; }
.page-head p { color: rgba(236, 245, 232, 0.92); max-width: 82ch; }

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.84rem;
  color: rgba(220, 236, 214, 0.75);
  align-items: center;
}

.breadcrumb li { display: inline-flex; align-items: center; min-height: 26px; }
.breadcrumb a { color: rgba(220, 236, 214, 0.9); text-decoration: none; padding: 0.2rem 0; }
.breadcrumb a:hover { color: var(--lime-300); }
.breadcrumb li + li::before { content: "›"; margin-right: 0.4rem; opacity: 0.6; }

/* ------------------------------------------------------------------ Cartes prestations */

.services-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text-soft);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s var(--ease);
}

.filter-btn:hover { border-color: var(--green-400); color: var(--green-700); }

.filter-btn[aria-pressed="true"] {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
  box-shadow: 0 8px 18px rgba(38, 96, 60, 0.22);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 1.15rem;
}

.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-xs);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  scroll-margin-top: calc(var(--header-h) + 30px);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--lime-400), var(--green-500));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.service-card:hover::before,
.service-card:focus-within::before,
.service-card:target::before { transform: scaleY(1); }

.service-card:target {
  border-color: var(--green-400);
  box-shadow: 0 0 0 3px rgba(158, 203, 79, 0.3), var(--shadow-md);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--lime-100), #dff0c6);
  border: 1px solid #d3e8b4;
  color: var(--green-600);
  margin-bottom: 1rem;
}

.service-icon .ico { width: 27px; height: 27px; }

.service-card h2,
.service-card h3 { margin-bottom: 0.4rem; }
.service-card h2 { font-size: clamp(1.12rem, 1.9vw, 1.34rem); }

.service-lead {
  font-weight: 600;
  color: var(--green-600);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.service-card p { color: var(--muted); font-size: 0.96rem; }

.service-points {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.42rem;
}

.service-points li {
  position: relative;
  padding-left: 1.55rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime-400);
  box-shadow: 0 0 0 3px rgba(158, 203, 79, 0.24);
}

.service-keyword {
  display: inline-block;
  margin-top: 1.05rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-light);
}

/* Cartes compactes (accueil) */

.service-card-compact { padding: 1.3rem 1.25rem; }
.service-card-compact .service-icon { width: 46px; height: 46px; border-radius: 13px; margin-bottom: 0.85rem; }
.service-card-compact .service-icon .ico { width: 23px; height: 23px; }
.service-card-compact h3 { font-size: 1.06rem; }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.95rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-600);
  text-decoration: none;
}

.service-link .ico { transition: transform 0.25s var(--ease); }
.service-link:hover .ico { transform: translateX(4px); }

/* ------------------------------------------------------------------ Split (texte + image) */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
}

.split-media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.split-media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1.2rem 1rem;
  color: #fff;
  font-size: 0.88rem;
  background: linear-gradient(180deg, rgba(14, 38, 24, 0), rgba(14, 38, 24, 0.86));
}

.split-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green-700);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.98rem;
}

.check-list .ico {
  color: var(--green-500);
  font-size: 1.2rem;
  margin-top: 0.1rem;
  flex: none;
}

/* ------------------------------------------------------------------ Avant / Après */

.beforeafter {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--green-900);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.beforeafter-stage {
  position: relative;
  aspect-ratio: 4 / 3;
}

.beforeafter-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.55s var(--ease), transform 6s linear;
}

.beforeafter-stage img.is-shown { opacity: 1; }

.beforeafter-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green-800);
}

.beforeafter-controls {
  display: flex;
  gap: 0.4rem;
  padding: 0.55rem;
  background: rgba(14, 38, 24, 0.92);
}

.beforeafter-controls button {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: #d8e8d2;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.beforeafter-controls button[aria-pressed="true"] {
  background: var(--lime-400);
  color: var(--green-900);
}

/* ------------------------------------------------------------------ Étapes */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr));
  gap: 1.1rem;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.3rem 1.3rem;
  box-shadow: var(--shadow-xs);
}

.step::after {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0.85rem;
  right: 1.05rem;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--lime-100);
  line-height: 1;
}

.step-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--green-700);
  color: var(--lime-300);
  margin-bottom: 0.9rem;
}

.step-icon .ico { width: 21px; height: 21px; }
.step h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.step p { font-size: 0.93rem; color: var(--muted); }

/* ------------------------------------------------------------------ Galerie */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
  gap: 1.1rem;
}

.gallery-item {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green-900);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  border: 0;
  padding: 0;
  font: inherit;
  text-align: left;
  display: block;
  width: 100%;
}

.gallery-item {
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease), opacity 0.4s var(--ease);
}

.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.05); opacity: 0.88; }

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3rem 1.1rem 1rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(14, 38, 24, 0), rgba(14, 38, 24, 0.9));
  pointer-events: none;
}

.gallery-caption strong { display: block; font-size: 1.02rem; }
.gallery-caption span { display: block; font-size: 0.82rem; color: rgba(232, 243, 227, 0.86); line-height: 1.45; margin-top: 0.15rem; }

.gallery-zoom {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.9);
  color: var(--green-700);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.gallery-item:hover .gallery-zoom,
.gallery-item:focus-visible .gallery-zoom { opacity: 1; transform: translateY(0); }

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.4rem;
  background: rgba(9, 24, 15, 0.93);
}

.lightbox.is-open { display: flex; }

.lightbox-figure {
  margin: 0;
  max-width: 1000px;
  width: 100%;
}

.lightbox-figure img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-figure figcaption {
  color: #e8f3e3;
  text-align: center;
  margin-top: 0.9rem;
  font-size: 0.94rem;
}

.lightbox-figure figcaption strong { display: block; color: #fff; margin-bottom: 0.15rem; }

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.24); }

.lightbox-close { top: 1.1rem; right: 1.1rem; }
.lightbox-nav-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-nav-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-nav svg, .lightbox-close svg { width: 22px; height: 22px; }
.lightbox-nav-prev svg { transform: rotate(180deg); }

/* ------------------------------------------------------------------ Zone d'intervention */

.zone-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-sm);
}

.zone-list {
  list-style: none;
  padding: 0;
  margin: 1.3rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.zone-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-800);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.zone-list li:hover { transform: translateY(-2px); border-color: var(--green-300); }
.zone-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime-500); }

/* ------------------------------------------------------------------ Chiffres / arguments */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 1rem;
}

.fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.fact .ico { color: var(--green-500); width: 26px; height: 26px; margin-bottom: 0.5rem; }
.fact strong { display: block; font-size: 1.35rem; color: var(--green-800); line-height: 1.2; }
.fact span { display: block; font-size: 0.9rem; color: var(--muted); margin-top: 0.25rem; }

/* ------------------------------------------------------------------ FAQ */

.faq { display: grid; gap: 0.7rem; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.faq-item.is-open { border-color: var(--green-300); box-shadow: var(--shadow-sm); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--green-900);
  text-align: left;
  cursor: pointer;
}

.faq-question .ico {
  color: var(--green-500);
  transition: transform 0.3s var(--ease);
  flex: none;
}

.faq-item.is-open .faq-question .ico { transform: rotate(45deg); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }

.faq-answer > div { overflow: hidden; }
.faq-answer p { padding: 0 1.2rem 1.15rem; color: var(--muted); font-size: 0.97rem; }

/* ------------------------------------------------------------------ Sommaire ancré (page SEO) */

.toc {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  /* Sur un écran court, un sommaire de 11 entrées dépasserait la fenêtre :
     il défile alors dans son propre cadre au lieu d'être coupé. */
  max-height: calc(100vh - var(--header-h) - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-xs);
  scrollbar-width: thin;
}

.toc::-webkit-scrollbar { width: 8px; }
.toc::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }
.toc::-webkit-scrollbar-track { background: transparent; }

.toc p { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 0.7rem; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.12rem; }

.toc a {
  display: block;
  padding: 0.42rem 0.6rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.22s var(--ease);
}

.toc a:hover { background: var(--surface-soft); color: var(--green-700); }
.toc a.is-current { background: var(--lime-100); border-left-color: var(--lime-500); color: var(--green-800); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.article-body h2 { margin-top: 2.3rem; scroll-margin-top: calc(var(--header-h) + 26px); }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin-top: 1.6rem; color: var(--green-700); }
.article-body p { color: var(--text-soft); }
.article-body ul { display: grid; gap: 0.4rem; color: var(--text-soft); }

.callout {
  background: linear-gradient(150deg, var(--lime-100), #f2f8e6);
  border: 1px solid #d7e9b8;
  border-left: 4px solid var(--lime-500);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  margin: 1.7rem 0;
}

.callout p { color: var(--green-800); }
.callout strong { color: var(--green-900); }

/* ------------------------------------------------------------------ Bandeau CTA final */

.final-cta {
  position: relative;
  color: #fff;
  background: linear-gradient(115deg, var(--green-900), var(--green-700) 58%, var(--green-500));
  padding: clamp(2.6rem, 5vw, 4rem) 0;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/motif-feuillage.svg");
  background-size: 320px;
  opacity: 0.09;
}

.final-cta-inner {
  position: relative;
  display: grid;
  gap: 1.7rem;
  align-items: center;
}

.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(233, 244, 228, 0.9); max-width: 56ch; }

.final-cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ------------------------------------------------------------------ Formulaire */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}

.contact-side { display: grid; gap: 1.1rem; }

.contact-infos { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: 0.9rem; }

.contact-infos li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.96rem; }
.contact-infos .ico { color: var(--green-500); font-size: 1.25rem; margin-top: 0.15rem; }
.contact-infos strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted-light); }
.contact-infos a { font-weight: 700; text-decoration: none; display: inline-block; min-height: 24px; padding: 0.1rem 0; }

.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field-full { grid-column: 1 / -1; }

.form-field label { font-size: 0.88rem; font-weight: 700; color: var(--green-800); }
.form-field .hint { font-size: 0.8rem; color: var(--muted-light); font-weight: 500; }

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 0.98rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
  width: 100%;
}

.form-field textarea { resize: vertical; min-height: 150px; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--green-400);
  box-shadow: 0 0 0 3px rgba(74, 154, 103, 0.18);
}

.hidden-field { position: absolute; left: -9999px; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.3rem; }
.form-note { font-size: 0.85rem; color: var(--muted-light); margin: 0; }

.alert {
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1.4rem;
  font-size: 0.96rem;
  border: 1px solid;
}

.alert-success { background: #eef8ec; border-color: #bfe0b6; color: #1c5030; }
.alert-error { background: #fdefee; border-color: #f0c3bf; color: #8c2b22; }
.alert ul { margin: 0.5rem 0 0; padding-left: 1.15rem; }

/* Modale de statut */

.status-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.4rem;
}

.status-modal.is-open { display: flex; }

.status-modal-backdrop { position: absolute; inset: 0; background: rgba(9, 24, 15, 0.72); }

.status-modal-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.2rem);
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.status-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
}

.status-modal-icon .ico { width: 28px; height: 28px; }
.status-modal-success .status-modal-icon { background: var(--lime-100); color: var(--green-600); }
.status-modal-error .status-modal-icon { background: #fdeceb; color: #b5382c; }
.status-modal-card p { color: var(--muted); }
.status-modal-card .btn { margin-top: 1.2rem; }

/* ------------------------------------------------------------------ Pages légales */

.legal-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-xs);
  scroll-margin-top: calc(var(--header-h) + 26px);
}

.legal-card h2 { font-size: 1.15rem; }
.legal-card p { font-size: 0.95rem; color: var(--muted); }
.legal-card strong { color: var(--text); }

.legal-kicker {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime-500);
  margin-bottom: 0.45rem;
}

.legal-toc { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.2rem; }

.legal-toc a {
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.42rem 0.85rem;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
  color: #eaf4e6;
  text-decoration: none;
}

.legal-toc a:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* ------------------------------------------------------------------ Footer */

.site-footer {
  background: linear-gradient(180deg, var(--green-900), #0a1e12);
  color: #cfe0c8;
  padding: clamp(2.6rem, 5vw, 3.8rem) 0 1.4rem;
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 2rem;
}

.footer-col-brand { grid-column: span 1; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.16rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  margin-bottom: 0.8rem;
}

.footer-brand img { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); padding: 3px; }
.footer-brand em { font-style: normal; color: var(--lime-400); }

.footer-about { color: rgba(207, 224, 200, 0.8); }

.footer-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--lime-400);
  margin-bottom: 0.9rem;
}

.footer-contact { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: 0.6rem; }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.6rem; }
.footer-contact .ico { color: var(--lime-400); margin-top: 0.18rem; }
.footer-contact a { color: #fff; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; min-height: 24px; }
.footer-contact a:hover { color: var(--lime-300); text-decoration: underline; }

.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.15rem; }
.footer-links a {
  color: rgba(207, 224, 200, 0.88);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.15rem 0;
}
.footer-links a:hover { color: #ffffff; }

.footer-zones-intro { color: rgba(207, 224, 200, 0.8); font-size: 0.9rem; }
.footer-zones { list-style: none; padding: 0; margin: 0.7rem 0 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }

.footer-zones li {
  font-size: 0.82rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(214, 231, 207, 0.9);
}

.footer-bottom {
  margin-top: 2.4rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: rgba(190, 211, 183, 0.8);
}

.footer-bottom p { margin: 0; }
.footer-credit a { color: var(--lime-300); text-decoration: none; font-weight: 600; display: inline-block; min-height: 24px; padding: 0.1rem 0; }

/* ------------------------------------------------------------------ Barre mobile + retour haut */

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: none;
  gap: 1px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 -8px 24px rgba(14, 38, 24, 0.18);
}

.mobile-bar a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 0.5rem;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.mobile-bar-call { background: var(--green-700); color: #fff; }
.mobile-bar-quote { background: var(--lime-400); color: var(--green-900); }

.to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.4rem;
  z-index: 92;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--green-700);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

.to-top svg { width: 22px; height: 22px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ------------------------------------------------------------------ Animations */

/* Le contenu est visible PAR DÉFAUT. L'animation d'apparition n'est activée
   que si le JS a posé la classe .js sur <html> : sans JS, ou si le script
   échoue, la page reste entièrement lisible. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.visible { opacity: 1; transform: none; }

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ Responsive */

@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split-reverse .split-media { order: 2; }
  .final-cta-inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .final-cta-actions { justify-content: flex-end; }
  .contact-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .contact-side { order: 2; }
  .hero-inner { padding-bottom: clamp(3rem, 5vw, 4.4rem); }
}

@media (min-width: 1024px) {
  .article-layout { grid-template-columns: 250px minmax(0, 1fr); }
}

/* 6 entrées de menu + bouton téléphone : on resserre progressivement */
@media (max-width: 1460px) {
  .main-nav { min-width: 0; }
  .main-nav-list { flex-wrap: nowrap; }
  .main-nav-link { padding: 0.5rem 0.58rem; font-size: 0.9rem; }
  .main-nav-link::after { left: 0.58rem; right: 0.58rem; }
  .header-phone-text { display: none; }
  .header-phone { padding: 0.6rem; border-radius: 50%; }
  .header-phone .ico { width: 1.25rem; height: 1.25rem; }
}

@media (max-width: 1180px) {
  .brand-sub { display: none; }
  .main-nav-link { padding: 0.5rem 0.45rem; font-size: 0.86rem; }
  .main-nav-link::after { left: 0.45rem; right: 0.45rem; }
}

@media (max-width: 960px) {
  :root { --header-h: 70px; }

  /* backdrop-filter créerait un bloc conteneur pour le tiroir en position fixed */
  .site-header { backdrop-filter: none; background: #fff; }

  /* le bouton reste au-dessus du tiroir : il sert alors de croix de fermeture */
  .nav-toggle { display: inline-flex; position: relative; z-index: 95; }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 88vw);
    margin: 0;
    z-index: 89;
    background: #fff;
    border-left: 1px solid var(--border);
    box-shadow: -20px 0 60px rgba(14, 38, 24, 0.22);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    /* Le bas laisse la place à la barre d'action fixe (54 px) : sans cette
       réserve, le bouton « Demander un devis » passait dessous et devenait
       inatteignable. Le haut est ajusté par le script à l'ouverture, cette
       valeur reste le repli quand JavaScript est absent. */
    padding: calc(var(--header-h) + 1.4rem) 1.3rem calc(2rem + 54px);
    transform: translateX(102%);
    transition: transform 0.36s var(--ease);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* les libellés peuvent passer à la ligne dans le tiroir (écrans 320 px) */
  .main-nav-link { white-space: normal; }

  .main-nav.is-open { transform: translateX(0); }

  .main-nav-list { flex-direction: column; align-items: stretch; gap: 0.2rem; }

  .main-nav-link {
    display: block;
    padding: 0.85rem 0.9rem;
    font-size: 1.02rem;
    border-radius: 12px;
    border-bottom: 1px solid var(--border);
  }

  .main-nav-link::after { display: none; }
  .main-nav-link.is-active { background: var(--lime-100); }

  .main-nav-cta {
    display: grid;
    gap: 0.7rem;
    margin-top: 1.5rem;
  }

  .nav-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    font-weight: 700;
    text-decoration: none;
    color: var(--green-800);
  }

  .nav-phone .ico { color: var(--lime-500); }

  .header-phone { margin-left: auto; padding: 0.42rem 0.85rem; border-radius: 999px; }
  .header-phone-text { display: flex; }
  .header-phone-text small { display: block; }
  .main-nav-link { font-size: 1.02rem; }

  .mobile-bar { display: flex; }
  body { padding-bottom: 54px; }
  .to-top { bottom: 4.6rem; }

  .toc { position: static; max-height: none; overflow-y: visible; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .infobar-inner { justify-content: center; gap: 0.9rem; font-size: 0.8rem; }
  .infobar .infobar-quote { display: none; }
  .infobar-phone { margin-left: 0; }

  .brand-sub { display: none; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-main { font-size: 1.08rem; }

  .header-phone { padding: 0.4rem 0.7rem; }
  .header-phone-text small { display: none; }
  .header-phone-text strong { font-size: 0.92rem; }

  .hero-badges { grid-template-columns: 1fr; }
  .hero-strip-inner { grid-template-columns: 1fr 1fr; }
  .hero-strip figure:nth-child(n + 3) { display: none; }

  .footer-bottom { justify-content: center; text-align: center; }
  .lightbox-nav { display: none; }
}

@media (max-width: 480px) {
  .header-phone .header-phone-text { display: none; }
  .header-phone { padding: 0.55rem; border-radius: 50%; }
  .header-phone .ico { font-size: 1.15rem; }
}

/* ------------------------------------------------------------------ Impression */

@media print {
  .infobar, .site-header, .mobile-bar, .to-top, .final-cta, .hero-strip { display: none !important; }
  body { background: #fff; color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================================
   ARTICLES — page liste, cartes et page article
   ========================================================================= */

/* ------------------------------------------------------- Barre d'outils */

.articles-toolbar {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.articles-search {
  position: relative;
  display: flex;
  align-items: center;
}

.articles-search-ico {
  position: absolute;
  left: 0.95rem;
  width: 20px;
  height: 20px;
  color: var(--muted-light);
  pointer-events: none;
}

.articles-search input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.82rem 2.6rem 0.82rem 2.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.articles-search input::-webkit-search-cancel-button { display: none; }

.articles-search input:focus {
  outline: none;
  border-color: var(--green-400);
  box-shadow: 0 0 0 3px rgba(74, 154, 103, 0.18);
}

.articles-search-clear {
  position: absolute;
  right: 0.6rem;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.articles-search-clear:hover { background: var(--lime-100); color: var(--green-700); }

.articles-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.articles-cat {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s var(--ease);
}

.articles-cat:hover { border-color: var(--green-400); color: var(--green-700); }

.articles-cat.is-active {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
  box-shadow: 0 8px 18px rgba(38, 96, 60, 0.22);
}

.articles-count {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted-light);
  margin-bottom: 1.2rem;
}

.articles-empty {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 2rem 1.4rem;
  text-align: center;
  color: var(--muted);
}

/* ------------------------------------------------------- Cartes article */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 1.2rem;
}

.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.article-card:hover,
.article-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.article-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--green-900);
}

.article-card-media img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.article-card:hover .article-card-media img { transform: scale(1.05); }

.badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  color: #fff;
  background: var(--green-700);
  box-shadow: 0 4px 12px rgba(14, 38, 24, 0.25);
}

.badge--guide   { background: var(--green-600); }
.badge--conseil { background: var(--lime-500); color: var(--green-900); }
.badge--regle   { background: #b4552a; }

.article-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.2rem 1.25rem 1.35rem;
}

.article-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
}

.article-tag {
  display: inline-block;
  font-weight: 700;
  color: var(--green-700);
  background: var(--lime-100);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.read-time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted-light);
  font-weight: 600;
}

.read-time .ico { width: 15px; height: 15px; }

.article-card-body h2,
.article-card-body h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.article-card-body h2 a,
.article-card-body h3 a {
  color: inherit;
  text-decoration: none;
}

.stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.article-excerpt {
  font-size: 0.93rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.article-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-600);
}

.article-card:hover .article-card-link .ico { transform: translateX(4px); }
.article-card-link .ico { transition: transform 0.25s var(--ease); }

/* --------------------------------------------------------- Pagination */

.articles-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2.2rem;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-soft);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.page-btn:hover:not(:disabled) { border-color: var(--green-400); color: var(--green-700); }
.page-btn.is-active { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-ellipsis { color: var(--muted-light); padding: 0 0.2rem; }

/* ------------------------------------------------------- Page article */

.post-head .post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.post-head .badge {
  position: static;
  box-shadow: none;
}

.post-head .article-tag {
  background: rgba(255, 255, 255, 0.14);
  color: #e9f4e4;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.post-head h1 { max-width: 26ch; }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(226, 240, 220, 0.82);
  margin: 0;
}

.post-meta .read-time { color: rgba(226, 240, 220, 0.82); }

.post-hero {
  margin: -2.4rem auto 0;
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.post-hero img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding: clamp(2.2rem, 5vw, 3.4rem) 0 clamp(2rem, 4vw, 3rem);
}

.post-body { font-size: 1.03rem; }
.post-body > h2:first-of-type { margin-top: 2rem; }

.post-lead {
  font-size: 1.12rem;
  line-height: 1.62;
  color: var(--green-800);
  padding-left: 1.1rem;
  border-left: 3px solid var(--lime-400);
  margin-bottom: 2rem;
}

.post-body h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.72rem);
  margin-top: 2.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 26px);
}

.post-body h3 {
  font-size: 1.13rem;
  color: var(--green-700);
  margin-top: 1.8rem;
}

.post-body ul,
.post-body ol { display: grid; gap: 0.45rem; color: var(--text-soft); }
.post-body li { padding-left: 0.2rem; }
.post-body abbr { text-decoration: underline dotted; cursor: help; }
.post-body sup { font-size: 0.72em; }

.post-signature {
  margin-top: 2.4rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 0.94rem;
  color: var(--muted);
}

.post-sources {
  font-size: 0.88rem;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  margin: 1.4rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.post-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 460px;
}

.post-table th,
.post-table td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.post-table thead th {
  background: var(--lime-100);
  color: var(--green-800);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-table tbody tr:last-child td { border-bottom: 0; }
.post-table tbody tr:nth-child(even) { background: var(--surface-soft); }

/* --------------------------------------------------------- Colonne CTA */

.post-aside { display: grid; gap: 1.1rem; }

.post-cta-card {
  background: linear-gradient(150deg, var(--green-800), var(--green-600));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.post-cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/motif-feuillage.svg");
  background-size: 260px;
  opacity: 0.1;
}

.post-cta-card > * { position: relative; }
.post-cta-card p { color: rgba(233, 244, 228, 0.9); font-size: 0.94rem; }

.post-cta-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #fff !important;
  margin-bottom: 0.6rem;
}

.post-cta-card .btn { width: 100%; margin-top: 0.6rem; }

.post-cta-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.post-cta-list li { display: flex; align-items: center; gap: 0.45rem; color: rgba(233, 244, 228, 0.92); }
.post-cta-list .ico { color: var(--lime-300); flex: none; }

.post-links-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.3rem 1.1rem;
  box-shadow: var(--shadow-xs);
}

.post-links-title {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 0.9rem;
}

.post-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }

.post-links a {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  line-height: 1.4;
  min-height: 26px;
  padding: 0.15rem 0;
}

.post-links a:hover { color: var(--green-700); }
.post-links .ico { color: var(--green-500); margin-top: 0.15rem; flex: none; }

/* --------------------------------------------------------- Responsive */

@media (min-width: 1024px) {
  .articles-toolbar {
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    align-items: center;
  }
  .articles-cats { justify-content: flex-end; }
  .post-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; }
  .post-aside { position: sticky; top: calc(var(--header-h) + 20px); }
}

@media (max-width: 720px) {
  .post-hero { margin-top: -1.5rem; border-radius: var(--radius); }
  .post-body { font-size: 1rem; }
  .post-lead { font-size: 1.05rem; }
  .articles-grid { grid-template-columns: 1fr; }
}



/* --- En-tête sur très petit écran ------------------------------------------
   Sans ces règles, la marque ne peut pas rétrécir : à 320 px l'ensemble
   marque + téléphone + bouton menu dépasse la largeur de l'écran et pousse
   le bouton hors du cadre. */
@media (max-width: 420px) {
  /* « flex: none » empêchait la marque de rétrécir : elle gardait sa largeur
     idéale et poussait le bouton menu hors de l'écran. On l'autorise à se
     comprimer, le nom étant tronqué proprement par l'ellipse ci-dessous. */
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand-text { min-width: 0; }
  .brand-main { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Écrans très étroits (Galaxy Fold replié, 280 px) : on resserre la gouttière
   et le logo pour que la barre tienne sans défilement horizontal. */
@media (max-width: 340px) {
  .nav-wrap { width: min(100% - 1.4rem, 1400px); gap: 0.5rem; }
  .brand { gap: 0.5rem; }
  .brand-logo { width: 38px; height: 38px; border-radius: 10px; }
  .brand-main { font-size: 1rem; }
}

@media (max-width: 370px) {
  /* le bouton d'appel reste accessible dans la barre fixe du bas */
  .header-phone { display: none; }
}

/* =========================================================================
   PAGES D'ERREUR (403, 404)
   ========================================================================= */

.error-block {
  padding: clamp(3.5rem, 10vw, 7rem) 0;
  text-align: center;
}

.error-code {
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0 0 0.5rem;
  /* green-500 et non green-400 : avec l'opacity 0.9, le stop clair tombait à
     2.82:1 sur le fond de page (sous le seuil AA de 3:1 pour un grand texte). */
  background: linear-gradient(160deg, var(--green-500), var(--green-700) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}

.error-block h1 {
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  margin-bottom: 0.9rem;
}

.error-message {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 52ch;
  margin-inline: auto;
}

.error-redirect {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.6rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--lime-100);
  border: 1px solid #d7e9b8;
  color: var(--green-800);
  font-size: 0.94rem;
  font-weight: 600;
}

.error-redirect strong {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  min-width: 1ch;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.8rem;
}

/* Sans JavaScript le compte à rebours ne défile pas : on masque la pastille
   et on laisse le <noscript> annoncer la redirection (meta refresh). */
html:not(.js) .error-redirect { display: none; }

.error-noscript { margin-top: 1rem; font-size: 0.9rem; color: var(--muted-light); }

@media (max-width: 720px) {
  .error-actions .btn { width: 100%; }
}


/* =========================================================================
   PAGE DE MAINTENANCE
   ========================================================================= */

.maintenance-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem 1.1rem;
  background:
    radial-gradient(circle at 15% 0%, rgba(158, 203, 79, 0.16), transparent 46%),
    radial-gradient(circle at 88% 8%, rgba(74, 154, 103, 0.14), transparent 42%),
    linear-gradient(180deg, #f6f8f3, #eef2e9);
}

.maintenance {
  width: 100%;
  max-width: 640px;
  text-align: center;
}

.maintenance-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(2rem, 6vw, 3.4rem) clamp(1.3rem, 5vw, 3rem);
}

.maintenance-logo {
  display: block;
  margin-inline: auto;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--lime-100);
  padding: 8px;
}

.maintenance-brand {
  margin: 0.9rem 0 1.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--green-900);
  line-height: 1.25;
}

.maintenance-brand em {
  font-style: normal;
  color: var(--green-500);
}

.maintenance-brand span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.maintenance h1 {
  font-size: clamp(1.5rem, 4.4vw, 2.15rem);
  line-height: 1.2;
  margin: 0 0 0.9rem;
}

.maintenance-text {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 46ch;
  margin: 0 auto;
}

.maintenance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1.9rem;
}

/* les boutons se dimensionnent sur leur contenu : l'adresse e-mail,
   longue, garde une seule ligne au lieu d'être coupée en deux. */
.maintenance-actions .btn { flex: 0 1 auto; }

.maintenance-facts {
  list-style: none;
  margin: 2rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.65rem;
  text-align: left;
}

.maintenance-facts li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--green-800);
}

.maintenance-facts .ico {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 0.12rem;
  color: var(--green-500);
}

.maintenance-credit {
  margin: 1.4rem 0 0;
  font-size: 0.84rem;
  color: var(--muted-light);
}

@media (max-width: 560px) {
  .maintenance-actions .btn { flex: 1 1 100%; }
  /* l'adresse e-mail tient alors sur une seule ligne */
  .maintenance-actions .btn-outline { font-size: 0.95rem; letter-spacing: -0.01em; }
  .maintenance-facts { justify-items: start; }
}


/* --- Champ « Autre commune » du formulaire de contact ---------------------- */
/* Masqué uniquement quand JavaScript est disponible : sans JS le champ reste
   visible en permanence, sinon un visiteur choisissant « Autre » n'aurait
   aucun moyen de préciser sa commune. */
.js .commune-other { display: none; }
.js .commune-other.is-visible { display: flex; }

.field-error {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: #a3352a;
}

.form-field input[aria-invalid="true"] {
  border-color: #a3352a;
  background: #fdf5f4;
}

.form-field input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(163, 53, 42, 0.18);
}
