/* =========================================================
   ML Terre & Bois — feuille de style
   Palette : vert sapin + brun terre uniquement ; vert lime (logo) en accent
   ========================================================= */
/* ---------- Polices auto-hébergées (SIL Open Font License, voir assets/fonts) ---------- */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500 900; font-stretch: 62% 125%; font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500 900; font-stretch: 62% 125%; font-display: swap;
  src: url("assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --fir-950: #0b1c07;
  --fir-900: #12290C;
  --fir: #1B3A12;
  --fir-700: #2A5220;
  --fir-600: #2A5220;
  --brown: #5A3E2B;
  --earth: #4A3323;         /* fond des sections brunes */
  --brown-900: #3F2B1E;
  --earth-950: #2c1e14;     /* rail de la barre de défilement */
  --wood: #8B6A4E;
  --wood-light: #C9A27E;
  --cream: #F4EEE4;         /* texte clair */
  --text-soft: rgb(244 238 228 / .8);
  --surface: rgb(22 14 8 / .32);        /* blocs sur brun */
  --surface-border: rgb(255 236 214 / .1);
  --lime: #92C20E;          /* échantillonné sur le logo */
  --lime-bright: #a6d624;
  --lime-dark: #5f8a00;
  --white: #fff;

  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgb(20 30 20 / .06), 0 2px 8px rgb(20 30 20 / .06);
  --shadow: 0 10px 30px -10px rgb(20 40 25 / .25), 0 4px 10px -4px rgb(20 40 25 / .12);
  --shadow-lg: 0 30px 60px -20px rgb(10 30 15 / .45);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--fir-700) var(--earth-950); scrollbar-width: auto; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--cream);
  background: var(--earth); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-stretch: 72%; font-weight: 850; line-height: 1.02;
  letter-spacing: -.005em; text-transform: uppercase; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); }
h3 { font-size: 1.35rem; letter-spacing: .005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
::selection { background: var(--lime); color: var(--fir-950); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* Scrollbar (Chrome / Safari / Edge) */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--earth-950); }
::-webkit-scrollbar-thumb { background: var(--fir-700); border-radius: 10px; border: 3px solid var(--earth-950); }
::-webkit-scrollbar-thumb:hover { background: #3a6b2d; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--lime); color: var(--fir-950);
  padding: .6rem 1rem; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Buttons ---------- */
.btn { --b: var(--lime); display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 700 1rem/1 var(--font-body); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  padding: .95em 1.5em; border-radius: 999px; border: 2px solid transparent;
  transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lime { background: var(--lime); color: var(--fir-950); box-shadow: 0 8px 22px -8px rgb(146 194 14 / .7); }
.btn-lime:hover { background: var(--lime-bright); box-shadow: 0 12px 28px -8px rgb(146 194 14 / .8); }
.btn-ghost { color: var(--white); border-color: rgb(255 255 255 / .55); background: rgb(255 255 255 / .06); backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: var(--white); background: rgb(255 255 255 / .14); }
.btn-ghost:hover .ico-arrow { transform: translateX(4px); }
.ico-arrow { transition: transform .25s var(--ease); }
.btn-sm { padding: .7em 1.15em; font-size: .95rem; }
.btn-lg { padding: 1.1em 1.75em; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Eyebrows / section heads ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .7em; font: 700 .8rem/1.2 var(--font-body);
  letter-spacing: .18em; text-transform: uppercase; color: var(--lime); margin-bottom: 1.1rem; }
.eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: var(--lime); }
.eyebrow-light { color: var(--lime); }
.section { position: relative; padding: clamp(4.5rem, 3rem + 6vw, 8rem) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.section-head-split { max-width: none; display: grid; gap: 1rem 4rem; align-items: end; }
.section-head-split h2 { margin-bottom: 0; }
.section-lead { font-size: 1.125rem; color: var(--text-soft); max-width: 62ch; }
.section-head-split .section-lead { margin: 0; }
@media (min-width: 900px) { .section-head-split { grid-template-columns: 1fr 1fr; } }

/* Fonds : couleur unie aux bords (pour des vagues raccord) + texture et halo discrets au centre */
.section-earth { color: var(--cream); background:
  url("assets/topo-soft.svg") center / cover no-repeat,
  radial-gradient(55% 45% at 85% 50%, rgb(139 106 78 / .3), transparent 70%),
  var(--earth); }
.section-fir { color: var(--white); background:
  url("assets/topo-soft.svg") center / cover no-repeat,
  radial-gradient(55% 45% at 15% 50%, rgb(42 82 32 / .75), transparent 70%),
  var(--fir); }
.section-earth p, .section-fir p { color: var(--text-soft); }
.has-divider-top { padding-top: calc(clamp(4.5rem, 3rem + 6vw, 8rem) + 3rem); }
.has-divider-bottom { padding-bottom: calc(clamp(4.5rem, 3rem + 6vw, 8rem) + 3rem); }

/* Dividers */
.divider { position: absolute; left: 0; width: 100%; pointer-events: none; }
.divider-bottom { bottom: -1px; height: clamp(40px, 7vw, 110px); }
.divider-top { top: -1px; height: clamp(34px, 5vw, 80px); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); color: var(--white);
  transition: background-color .35s, box-shadow .35s, height .35s; }
.site-header.is-scrolled { background: rgb(27 58 18 / .97); backdrop-filter: saturate(1.2) blur(10px);
  box-shadow: 0 6px 24px -10px rgb(0 0 0 / .45); --header-h: 66px; height: 66px; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand img { width: 48px; height: 48px; transition: transform .4s var(--ease); filter: drop-shadow(0 3px 8px rgb(0 0 0 / .3)); }
.brand:hover img { transform: rotate(-8deg) scale(1.04); }
.brand-text { font: 850 1.2rem/1 var(--font-display); font-stretch: 82%; text-transform: uppercase; letter-spacing: .02em; }
.brand-text span { color: var(--lime); }
.main-nav ul { display: flex; gap: .25rem; }
.main-nav a { position: relative; display: block; padding: .6rem .85rem; text-decoration: none; font-weight: 600; font-size: .96rem;
  color: rgb(255 255 255 / .9); transition: color .2s; }
.main-nav ul a::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px; background: var(--lime);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav ul a:hover, .main-nav ul a.is-active { color: var(--white); }
.main-nav ul a:hover::after, .main-nav ul a.is-active::after { transform: scaleX(1); }
.main-nav .nav-mobile-cta { display: none; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .header-call span { display: none; }
  .header-call { padding: .75em; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px;
    border: 0; border-radius: 12px; background: rgb(255 255 255 / .1); cursor: pointer; padding: 0 12px; }
  .nav-toggle span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: fixed; inset: var(--header-h) 0 auto; background: var(--fir-900); padding: 1rem 1.25rem 1.5rem;
    box-shadow: 0 20px 30px -10px rgb(0 0 0 / .5); transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .main-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { padding: .95rem .25rem; font-size: 1.1rem; border-bottom: 1px solid rgb(255 255 255 / .08); }
  .main-nav ul a::after { display: none; }
  .main-nav .nav-mobile-cta { display: flex; margin-top: 1.1rem; width: 100%; padding: 1rem 1.5rem; color: var(--fir-950); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: center; color: var(--white);
  padding: calc(var(--header-h) + 3rem) 0 clamp(6rem, 10vw, 9rem); overflow: hidden; isolation: isolate;
  background: var(--fir-900); }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    url("assets/topo.svg") center / cover no-repeat,
    radial-gradient(120% 90% at 85% 10%, #2A5220 0%, transparent 55%),
    radial-gradient(90% 80% at 0% 100%, #5a3e2b 0%, transparent 60%),
    linear-gradient(160deg, var(--fir-700), var(--fir-950)); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%;
  transform: scale(1.06); animation: heroZoom 18s var(--ease) forwards; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(27 58 18 / .9) 0%, rgb(27 58 18 / .78) 50%, rgb(27 58 18 / .65) 100%),
    linear-gradient(0deg, rgb(18 41 12 / .6), transparent 45%); }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-inner { display: grid; gap: 3rem; align-items: center; }
.hero-copy { max-width: 700px; }
.hero h1 { font-size: clamp(2.9rem, 1.6rem + 6vw, 6rem); line-height: .95; margin-bottom: 1.5rem; }
.hero h1 .amp { color: var(--lime); }
.hero h1 em { font-style: normal; display: inline-block; position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .1em; border-radius: 99px; background: var(--lime); }
.hero-lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); color: rgb(255 255 255 / .86); max-width: 58ch; margin-bottom: 2.2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-weight: 600; font-size: .96rem; color: rgb(255 255 255 / .9); }
.hero-points li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-points .ico { color: var(--lime); }
.hero-logo { order: -1; width: 150px; margin-bottom: -1.5rem; }
.hero-logo img { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgb(0 0 0 / .45)); }
@media (min-width: 1000px) {
  .hero-inner { grid-template-columns: 1.35fr .65fr; }
  .hero-logo { order: 0; margin: 0; justify-self: end; width: min(100%, 380px); }
}
.scroll-cue { position: absolute; left: 50%; bottom: clamp(4.5rem, 8vw, 7.5rem); translate: -50% 0; width: 26px; height: 42px;
  border: 2px solid rgb(255 255 255 / .5); border-radius: 20px; display: none; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--lime); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (min-width: 1000px) and (min-height: 760px) { .scroll-cue { display: block; } }

/* ---------- Placeholders (photos manquantes) ---------- */
.ph { position: relative; overflow: hidden;
  background:
    url("assets/topo.svg") center / 220% no-repeat,
    linear-gradient(135deg, var(--fir-600), var(--fir-900)); }
.ph.no-photo img { display: none; }
.ph.no-photo::before { content: attr(data-ph); position: absolute; inset: auto 0 50% 0; transform: translateY(50%);
  text-align: center; font: 600 .8rem/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: rgb(255 255 255 / .75); padding: 0 1rem; z-index: 1; }
.ph.no-photo::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; translate: -50% -130%;
  background: url("assets/logo-ml.svg") center / contain no-repeat; opacity: .5; }

/* ---------- Services ---------- */
.services-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 18px 40px -24px rgb(0 0 0 / .6); border: 1px solid var(--surface-border);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -22px rgb(0 0 0 / .7); border-color: rgb(146 194 14 / .35); }
.service-media { aspect-ratio: 16 / 10; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.06); }
.service-body { position: relative; padding: 2.4rem 1.7rem 1.8rem; flex: 1; display: flex; flex-direction: column; }
.service-icon { position: absolute; top: -30px; left: 1.5rem; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: var(--fir); color: var(--lime); box-shadow: 0 10px 20px -8px rgb(27 58 18 / .6); transition: background-color .3s, color .3s, transform .45s var(--ease); }
.service-icon svg { width: 30px; height: 30px; }
.service-card:hover .service-icon { background: var(--lime); color: var(--fir-950); transform: rotate(-6deg); }
.service-body h3 { color: var(--white); margin-bottom: .6rem; }
.service-body p { color: var(--text-soft); font-size: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: auto; padding-top: .4rem; }
.tags li { font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: #eadbc6; background: rgb(255 236 214 / .09); border: 1px solid rgb(255 236 214 / .08);
  padding: .35em .8em; border-radius: 99px; }
.service-cta { grid-column: 1 / -1; background: var(--fir); color: var(--white); border: 1px solid rgb(146 194 14 / .25); justify-content: center; }
.service-cta:hover { transform: translateY(-3px); }
.service-note { display: flex; align-items: flex-start; gap: .5rem; font-size: .92rem !important; font-weight: 600; color: var(--cream) !important;
  background: rgb(146 194 14 / .12); border-left: 3px solid var(--lime); border-radius: 0 8px 8px 0; padding: .55rem .75rem; }
.service-note .ico { color: var(--lime); margin-top: .15em; }
.service-cta::before { content: ""; position: absolute; inset: 0; background: url("assets/topo.svg") center / 250% no-repeat; opacity: 1; }
.service-cta-inner { position: relative; padding: 2.4rem 2rem; }
@media (min-width: 680px) {
  .service-cta-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .4rem 2rem; padding: 2.4rem 2.6rem; }
  .service-cta-leaf { grid-row: 1 / 3; margin: 0; width: 64px; height: 64px; }
  .service-cta h3 { margin: 0; }
  .service-cta p { margin: 0; max-width: 60ch; }
  .service-cta-actions { grid-column: 3; grid-row: 1 / 3; margin: 0; flex-direction: column; align-items: stretch; text-align: center; gap: .9rem; }
  .service-cta-actions .link-call { justify-content: center; }
}
.service-cta-leaf { width: 56px; height: 56px; color: var(--lime); margin-bottom: 1.2rem; }
.service-cta h3 { font-size: 1.9rem; }
.service-cta p { color: rgb(255 255 255 / .82); }
.service-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1.4rem; }
.link-call { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; text-decoration: none; color: var(--white); }
.link-call:hover { color: var(--lime); }
/* 3 colonnes : 8 blocs + l’appel à l’action en 9e case (grille 3 × 3 équilibrée) */
@media (min-width: 1040px) {
  .service-cta { grid-column: auto; }
  .service-cta-inner { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; height: 100%; padding: 2.6rem 2.2rem; }
  .service-cta-leaf { width: 60px; height: 60px; margin: 0 0 1.3rem; }
  .service-cta h3 { margin: 0 0 .7rem; }
  .service-cta p { margin: 0; }
  .service-cta-actions { flex-direction: column; flex-wrap: nowrap; align-items: stretch; width: 100%; gap: .9rem; margin-top: 1.6rem; }
}

/* ---------- Atouts ---------- */
.atouts { }
.atouts-inner { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1000px) { .atouts-inner { grid-template-columns: .9fr 1.1fr; gap: 5rem; } }
.atouts-intro p:not(.eyebrow) { font-size: 1.1rem; max-width: 50ch; }
.atouts-intro strong { color: var(--white); }
.atouts-intro .btn { margin-top: .8rem; }
.atouts-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.atout { padding: 1.8rem 1.6rem; border-radius: var(--radius); background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1);
  backdrop-filter: blur(2px); transition: background-color .35s, border-color .35s, transform .45s var(--ease); }
.atout:hover { background: rgb(255 255 255 / .09); border-color: rgb(146 194 14 / .5); transform: translateY(-4px); }
.atout-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: rgb(146 194 14 / .14); color: var(--lime); }
.atout-icon svg { width: 26px; height: 26px; }
.atout h3 { font-size: 1.25rem; margin-bottom: .45rem; }
.atout p { font-size: .98rem; margin: 0; color: rgb(255 255 255 / .75); }

/* ---------- Process ---------- */
.process { padding-top: clamp(3.5rem, 2rem + 4vw, 5.5rem); }
.steps { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.step { position: relative; padding: 2rem 1.6rem 1.7rem; background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius); box-shadow: 0 18px 40px -24px rgb(0 0 0 / .6);
  border-top: 4px solid var(--lime); }
.step-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; margin-bottom: 1rem;
  border: 2px solid var(--lime); color: var(--lime); background: rgb(146 194 14 / .1); }
.step-icon svg { width: 22px; height: 22px; }
.step h3 { font-size: 1.2rem; color: var(--white); margin-bottom: .4rem; }
.step p { margin: 0; color: var(--text-soft); font-size: .98rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; grid-auto-flow: dense; }
.g-item { margin: 0; border-radius: var(--radius-sm); cursor: default; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.g-item:hover img { transform: scale(1.05); }
.g-item figcaption { position: absolute; left: .7rem; bottom: .7rem; z-index: 2; font: 700 .78rem/1 var(--font-body); letter-spacing: .06em;
  text-transform: uppercase; color: var(--white); background: rgb(18 41 12 / .82); backdrop-filter: blur(6px); padding: .55em .85em; border-radius: 99px;
  transition: background-color .3s, color .3s; }
.g-item:hover figcaption { background: var(--lime); color: var(--fir-950); }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 1.1rem; }
}
.gallery-note { margin: 1.1rem 0 0; text-align: right; font-size: .8rem; font-style: italic; color: rgb(244 238 228 / .65) !important; }

/* ---------- Zone d’intervention ---------- */
.communes { display: grid; gap: .6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.commune { position: relative; display: flex; align-items: center; gap: .6rem; min-height: 62px; padding: .7rem .75rem;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--surface-border); box-shadow: 0 14px 30px -22px rgb(0 0 0 / .7);
  transition: transform .4s var(--ease), border-color .3s, background-color .3s; }
.commune:hover { transform: translateY(-3px); border-color: rgb(146 194 14 / .45); background: rgb(22 14 8 / .42); }
.commune-pin { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(146 194 14 / .14); color: var(--lime); transition: background-color .3s, color .3s; }
.commune-pin svg { width: 16px; height: 16px; }
.commune:hover .commune-pin { background: var(--lime); color: var(--fir-950); }
.commune-text { display: grid; min-width: 0; }
.commune-name { font: 800 .95rem/1.12 var(--font-display); font-stretch: 80%; text-transform: uppercase; letter-spacing: .02em; color: var(--white); }
.commune-cp { font-size: .74rem; font-weight: 600; letter-spacing: .08em; color: rgb(244 238 228 / .58); margin-top: .12rem; }

/* Nadrin : la base, mise en avant */
.commune-base { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem 1.1rem; padding: 1.4rem 1.3rem 1.5rem;
  overflow: hidden; isolation: isolate;
  background: radial-gradient(80% 110% at 100% 0%, rgb(146 194 14 / .2), transparent 60%), linear-gradient(150deg, var(--fir-700), var(--fir-900));
  border: 1.5px solid rgb(146 194 14 / .55); box-shadow: 0 24px 46px -24px rgb(0 0 0 / .75); }
.commune-base::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("assets/topo.svg") center / 260% no-repeat; }
/* cercles concentriques discrets : le rayon d’action autour de la base */
.commune-base::after { content: ""; position: absolute; z-index: -1; width: 460px; height: 460px; right: -230px; top: -230px; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 44px, rgb(146 194 14 / .16) 44px 45.5px); pointer-events: none; }
.commune-base:hover { border-color: var(--lime);
  background: radial-gradient(80% 110% at 100% 0%, rgb(146 194 14 / .24), transparent 60%), linear-gradient(150deg, var(--fir-700), var(--fir-900)); }
.base-badge { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: .45em;
  font: 700 .74rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--fir-950);
  background: var(--lime); padding: .6em .95em; border-radius: 99px; }
.base-badge .ico { width: 1.15em; height: 1.15em; }
.base-pin { position: relative; flex: none; width: 56px; height: 56px; margin: 6px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lime); color: var(--fir-950); box-shadow: 0 0 0 7px rgb(146 194 14 / .16), 0 12px 24px -8px rgb(0 0 0 / .5); }
.base-pin svg { width: 26px; height: 26px; }
.base-pin::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--lime); animation: ring 2.8s infinite; }
.commune-base .commune-name { font-size: clamp(2.3rem, 1.8rem + 2vw, 2.9rem); font-weight: 850; font-stretch: 72%; line-height: .92; letter-spacing: 0; }
.commune-base .commune-cp { font-size: .8rem; font-weight: 700; color: var(--lime); margin-top: .4rem; letter-spacing: .14em; text-transform: uppercase; }
.base-note { grid-column: 1 / -1; margin: 0; font-size: .95rem; line-height: 1.5; color: rgb(244 238 228 / .85); max-width: 40ch; }

@media (min-width: 700px) {
  .communes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
  .commune { gap: .8rem; padding: .9rem 1.1rem; min-height: 72px; }
  .commune-pin { width: 34px; height: 34px; }
  .commune-pin svg { width: 18px; height: 18px; }
  .commune-name { font-size: 1.02rem; font-stretch: 84%; }
  .commune-base { grid-template-columns: auto auto 1fr; padding: 1.7rem 1.8rem; }
  .commune-base .base-note { grid-column: 3; grid-row: 2; justify-self: end; text-align: right; max-width: 34ch; }
}
@media (min-width: 1040px) {
  /* Nadrin en grand bloc à gauche (4 rangées), les 12 autres communes en grille 3 × 4 à droite */
  .communes { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(80px, auto); gap: 1rem; }
  .commune-base { grid-column: 1; grid-row: 1 / span 4; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
    gap: 0; padding: 2rem; }
  .commune-base::after { width: 620px; height: 620px; right: -250px; top: -250px; background: repeating-radial-gradient(circle, transparent 0 52px, rgb(146 194 14 / .17) 52px 53.5px); }
  .base-badge { position: absolute; top: 1.7rem; left: 2rem; }
  .base-pin { width: 70px; height: 70px; margin: 0 0 1.5rem 7px; }
  .base-pin svg { width: 32px; height: 32px; }
  .commune-base .commune-name { font-size: 3.7rem; }
  .commune-base .commune-cp { font-size: .85rem; margin-top: .55rem; }
  .commune-base .base-note { margin-top: 1rem; text-align: left; justify-self: auto; max-width: 30ch; }
  .commune-name { font-size: 1.05rem; }
}

.zone-cta { margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); display: grid; gap: 1.1rem; align-items: center; padding: 1.5rem 1.4rem;
  border-radius: var(--radius); background: rgb(18 41 12 / .55); border: 1px solid rgb(146 194 14 / .28); border-left: 4px solid var(--lime); }
.zone-cta-icon { display: none; }
.zone-cta-text { margin: 0; font-size: 1.05rem; line-height: 1.5; color: var(--text-soft); }
.zone-cta-text strong { display: block; font: 850 1.35rem/1.1 var(--font-display); font-stretch: 78%; text-transform: uppercase; letter-spacing: .01em; color: var(--white); margin-bottom: .3rem; text-wrap: balance; }
.zone-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-outline { color: var(--white); border-color: rgb(146 194 14 / .6); background: transparent; }
.btn-outline:hover { border-color: var(--lime); background: rgb(146 194 14 / .12); }
.btn-outline:hover .ico-arrow { transform: translateX(4px); }
@media (max-width: 559px) { .zone-cta-actions .btn { flex: 1 1 100%; } }
@media (min-width: 900px) {
  .zone-cta { grid-template-columns: auto 1fr auto; gap: 1.5rem; padding: 1.6rem 1.8rem; }
  .zone-cta-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--lime); color: var(--lime); background: rgb(146 194 14 / .1); }
  .zone-cta-icon svg { width: 24px; height: 24px; }
  .zone-cta-actions { flex-wrap: nowrap; }
}

/* ---------- Contact ---------- */

.contact-inner { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1000px) { .contact-inner { grid-template-columns: .95fr 1.05fr; gap: 5rem; } }
.contact-lead { font-size: 1.1rem; max-width: 50ch; }
.contact-list { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; }
.c-icon { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--lime); color: var(--lime); }
.c-icon svg { width: 24px; height: 24px; }
.c-label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); margin-bottom: .1rem; }
.contact-list a, .contact-list address, .contact-list span:not(.c-label):not(.c-icon) { font-size: 1.12rem; font-weight: 600; color: var(--white); text-decoration: none; line-height: 1.4; word-break: break-word; }
.contact-list a:hover { color: var(--lime); }
.quote-form { background: rgb(8 20 5 / .38); border: 1px solid rgb(146 194 14 / .22); backdrop-filter: blur(6px); color: var(--cream); border-radius: calc(var(--radius) + 6px); padding: clamp(1.6rem, 1rem + 2.5vw, 2.8rem); box-shadow: var(--shadow-lg); }
.quote-form h3 { font-size: 1.75rem; color: var(--white); margin-bottom: .3rem; }
.form-intro { font-size: .9rem; color: rgb(244 238 228 / .7) !important; margin-bottom: 1.4rem; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; color: var(--cream); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--white); background: rgb(255 255 255 / .07);
  border: 1.5px solid rgb(255 236 214 / .22); border-radius: 12px; padding: .85rem 1rem; transition: border-color .2s, box-shadow .2s; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2392C20E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; padding-right: 2.8rem; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime); background: rgb(255 255 255 / .1); box-shadow: 0 0 0 4px rgb(146 194 14 / .22); }
.field input::placeholder, .field textarea::placeholder { color: rgb(244 238 228 / .45); }
.field select option { background: var(--fir-900); color: var(--white); }
.field.has-error input, .field.has-error textarea { border-color: #ff8a7a; box-shadow: 0 0 0 3px rgb(255 138 122 / .2); }
.quote-form .btn { margin-top: .4rem; }
.form-hint { margin: .9rem 0 0; font-size: .85rem; text-align: center; color: rgb(244 238 228 / .7) !important; }
.form-hint.is-error { color: #ffb4a8 !important; font-weight: 600; }
/* Envoi du formulaire (FormSubmit) : piège anti-spam + messages d’état */
.hp-field { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.quote-form .btn[disabled] { opacity: .75; cursor: progress; transform: none; box-shadow: none; }
.form-status { margin-top: 1rem; padding: .95rem 1.1rem; border-radius: 12px; font-size: .95rem; line-height: 1.5; border-left: 4px solid; }
.form-status:focus { outline: none; }
.form-status strong { display: block; color: var(--white); margin-bottom: .15rem; }
.form-status a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.form-status.is-success { background: rgb(146 194 14 / .16); border-color: var(--lime); color: var(--cream); }
.form-status.is-success strong { color: var(--lime); }
.form-status.is-error { background: rgb(255 138 122 / .12); border-color: #ff8a7a; color: #ffd9d2; }
.form-status.is-error a:hover, .form-status.is-success a:hover { color: var(--lime); }

/* ---------- Footer ---------- */
.site-footer { background: var(--fir-900); color: rgb(255 255 255 / .78); padding: 4.5rem 0 1.5rem; font-size: .96rem;
  border-top: 4px solid var(--lime); }
.footer-inner { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgb(255 255 255 / .1); }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 3rem; } }
.footer-brand img { width: 170px; height: auto; margin-bottom: 1.2rem; }
.footer-brand p { max-width: 38ch; }
.site-footer h4 { font-size: 1rem; letter-spacing: .1em; color: var(--white); margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--lime); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.4rem; font-size: .85rem; color: rgb(255 255 255 / .6); }
.footer-bottom p { margin: 0; }

/* ---------- Floating call button (mobile) ---------- */
.fab-call { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 90; width: 62px; height: 62px; border-radius: 50%;
  display: none; place-items: center; background: var(--lime); color: var(--fir-950); box-shadow: 0 12px 28px -6px rgb(0 0 0 / .45);
  transition: transform .35s var(--ease), opacity .35s; opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; }
.fab-call.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.fab-call svg { width: 28px; height: 28px; }
.fab-call::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--lime); animation: ring 2.4s infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
@media (max-width: 760px) { .fab-call { display: grid; } .site-footer { padding-bottom: 6rem; } }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  :root { --header-h: 68px; }
  body { font-size: 1rem; }
  .brand img { width: 42px; height: 42px; }
  .brand-text { font-size: 1.05rem; }
  .hero-ctas .btn { width: 100%; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 2.5rem); }
  .service-body { padding: 2.3rem 1.35rem 1.5rem; }
}
@media (max-width: 380px) { .brand-text { display: none; } }
@media (max-width: 759px) {
  .g-item figcaption { font-size: .68rem; left: .5rem; bottom: .5rem; right: auto; max-width: calc(100% - 1rem); }
  .ph.no-photo::before { font-size: .7rem; letter-spacing: .1em; }
  .service-media { aspect-ratio: 16 / 9; }
}

/* ---------- Case de consentement ---------- */
.field-consent { margin: .3rem 0 1.2rem; }
.consent { position: relative; display: flex !important; align-items: flex-start; gap: .75rem; font-weight: 500 !important; font-size: .9rem !important; line-height: 1.5; cursor: pointer; color: var(--cream); }
.consent input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.consent-box { flex: none; width: 22px; height: 22px; margin-top: .05rem; border-radius: 6px; display: grid; place-items: center; border: 1.5px solid rgb(244 238 228 / .35); background: rgb(255 255 255 / .07); color: var(--fir-950); transition: background-color .2s, border-color .2s; }
.consent-box svg { width: 15px; height: 15px; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s; }
.consent input:checked + .consent-box { background: var(--lime); border-color: var(--lime); }
.consent input:checked + .consent-box svg { opacity: 1; transform: none; }
.consent input:focus-visible + .consent-box { box-shadow: 0 0 0 4px rgb(146 194 14 / .3); border-color: var(--lime); }
.consent-text a { color: var(--lime); font-weight: 600; }
.field-consent.has-error .consent-box { border-color: #ff8a7a; box-shadow: 0 0 0 3px rgb(255 138 122 / .2); }

/* ---------- Liens légaux (pied de page) ---------- */
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(255 255 255 / .3); }

/* ---------- Page mentions légales ---------- */
.page-hero { position: relative; color: var(--white); padding: calc(var(--header-h) + clamp(3rem, 6vw, 5.5rem)) 0 calc(clamp(3.5rem, 7vw, 6rem) + 3rem); }
.page-hero h1 { font-size: clamp(2.4rem, 1.4rem + 4.5vw, 4.6rem); margin-bottom: 1rem; }
.page-hero p { max-width: 60ch; color: rgb(244 238 228 / .85); margin: 0; }
.page-hero .hero-ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.legal-wrap { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 980px) { .legal-wrap { grid-template-columns: 250px minmax(0, 1fr); gap: 3.5rem; } }
.legal-toc { padding: 1.4rem 1.4rem 1.2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--surface-border); font-size: .92rem; }
@media (min-width: 980px) { .legal-toc { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.legal-toc h2 { font-size: 1rem; letter-spacing: .12em; color: var(--lime); margin-bottom: .8rem; }
.legal-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: .1rem; }
.legal-toc a { display: block; padding: .3rem 0; color: var(--cream); text-decoration: none; opacity: .85; }
.legal-toc a:hover { color: var(--lime); opacity: 1; }
.legal-toc .toc-part { margin-top: .6rem; font-weight: 700; opacity: 1; color: var(--white); }
.legal-toc .toc-part:first-child { margin-top: 0; }
.legal-toc ol ol { padding-left: .8rem; border-left: 2px solid rgb(146 194 14 / .3); }
.legal-body { max-width: 780px; }
.legal-part { padding: clamp(1.6rem, 1rem + 2.5vw, 2.8rem); border-radius: calc(var(--radius) + 4px); background: var(--surface); border: 1px solid var(--surface-border); box-shadow: 0 18px 40px -24px rgb(0 0 0 / .6); }
.legal-part + .legal-part { margin-top: 2.2rem; }
.legal-part > h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.7rem); color: var(--white); margin-bottom: .8rem; }
.legal-part h3 { font-size: 1.3rem; color: var(--white); margin: 2.2rem 0 .7rem; display: flex; align-items: center; gap: .6rem; }
.legal-part h3::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.legal-part p, .legal-part li { color: rgb(244 238 228 / .88); }
.legal-part ul { padding-left: 1.2rem; margin: .6rem 0 1rem; }
.legal-part li { margin-bottom: .35rem; }
.legal-part li::marker { color: var(--lime); }
.legal-part a { color: var(--lime); text-underline-offset: 3px; word-break: break-word; }
.legal-intro { font-size: 1.05rem; }
.legal-dl { display: grid; margin: 1rem 0 0; border-top: 1px solid var(--surface-border); }
.legal-dl > div { display: grid; gap: .1rem 1.5rem; padding: .8rem 0; border-bottom: 1px solid var(--surface-border); }
@media (min-width: 620px) { .legal-dl > div { grid-template-columns: 220px 1fr; } }
.legal-dl dt { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); padding-top: .2em; }
.legal-dl dd { margin: 0; color: var(--white); font-weight: 500; }
.legal-dl dd a { color: var(--white); }
.placeholder-note { display: inline-block; padding: .6rem .9rem; border: 1.5px dashed var(--wood-light); border-radius: 8px; color: var(--wood-light) !important; font-weight: 600; background: rgb(201 162 126 / .08); }
.legal-updated { margin-top: 2rem !important; font-size: .88rem; color: rgb(244 238 228 / .6) !important; }
.legal-part ul { list-style: disc; }
.section-earth.legal { background: radial-gradient(1100px 700px at 85% 10%, rgb(139 106 78 / .22), transparent 60%), var(--earth); }
@media (max-width: 979px) { .legal-toc ol ol { display: none; } .legal-toc ol { grid-auto-flow: column; justify-content: start; gap: 1.4rem; } .legal-toc .toc-part { margin-top: 0; } }
@media (max-width: 560px) { .legal-part { padding: 1.4rem 1.15rem; } .legal-part h3 { font-size: 1.15rem; } }
