/* Graines de Compost — feuille principale. Natif, sans framework. */
@import url('/fonts/fonts.css');

:root {
  --ink: #11140f;
  --soil: #241d17;
  --forest: #183818;
  --leaf: #78914f;
  --sprout: #88e060;
  --cta: #dfe9c6;
  --paper: #f5f4ef;
  --paper-2: #ebe9df;
  --white: #fff;
  --text: var(--ink);
  --muted: #4f5548;
  --border: rgba(17, 20, 15, .16);
  --font-display: 'Funnel Display', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-hand: 'Caveat', 'Segoe Print', cursive;
  --gutter: clamp(1rem, 4vw, 3rem);
  --wrap: 1240px;
  --header-h: 4.5rem;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --t-fast: 180ms ease;
  --t-base: 420ms var(--ease);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 4px; border-radius: 2px; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 100; }
.skip:focus { top: 1rem; }
main:focus { outline: none; }
::selection { background: var(--cta); color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); font-weight: 700; line-height: .98; letter-spacing: -.03em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.15; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; }
.eyebrow { font-family: var(--font-body); font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: inherit; opacity: .78; margin: 0 0 1.1rem; }
.hand { font-family: var(--font-hand); font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: 0; }
.muted { color: var(--muted); }
.note { font-size: .86rem; color: var(--muted); }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 62ch; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 500; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn--sm { padding: .72rem 1.15rem; font-size: .94rem; }
.btn--lg { padding: 1.1rem 1.8rem; font-size: 1.05rem; }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--forest); }
.btn--pale { background: var(--cta); color: var(--ink); }
.btn--pale:hover { background: #eaf1d7; }
.btn--outline { background: transparent; border-color: currentColor; }
.btn--outline:hover { background: rgba(17, 20, 15, .06); }
.btn--outline-light { background: transparent; border-color: rgba(245, 244, 239, .5); color: var(--paper); }
.btn--outline-light:hover { border-color: var(--paper); }
.btn__arrow { transition: transform var(--t-fast); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.textlink { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; text-decoration: underline; text-underline-offset: .25em; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--border); }
.site-header__inner { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; min-height: var(--header-h); display: flex; align-items: center; gap: 2rem; }
.brand img { width: auto; height: 3.1rem; }
.nav { margin-left: .5rem; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .8rem; border-radius: .4rem; background: none; border: 0; text-decoration: none; font-size: .96rem; font-weight: 500; color: var(--ink); cursor: pointer; }
.nav__link:hover { background: var(--paper-2); }
.nav__link[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 2px; text-decoration-color: var(--leaf); }
.nav__toggle svg { transition: transform var(--t-fast); }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu { position: absolute; top: calc(100% + .5rem); left: 0; min-width: 24rem; background: var(--white); border: 1px solid var(--border); border-radius: .6rem; padding: .6rem; box-shadow: 0 18px 40px -20px rgba(17, 20, 15, .35); opacity: 0; visibility: hidden; transition: opacity var(--t-fast), visibility 0s linear 180ms; }
.nav__item--menu.is-open .menu, .nav__item--menu:focus-within .menu { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list a { display: flex; flex-direction: column; gap: .1rem; padding: .7rem .8rem; border-radius: .4rem; text-decoration: none; }
.menu__list a:hover, .menu__list a[aria-current="page"] { background: var(--paper); }
.menu__list strong { font-weight: 600; font-family: var(--font-display); letter-spacing: -.01em; font-size: 1.02rem; }
.menu__list span { font-size: .86rem; color: var(--muted); }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.burger { display: none; width: 2.75rem; height: 2.75rem; border: 1px solid var(--border); border-radius: 999px; background: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform var(--t-fast), opacity var(--t-fast); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
  :root { --header-h: 4rem; }
  .brand img { height: 2.6rem; }
  .burger { display: flex; }
  .site-header__actions .btn { padding: .6rem .9rem; font-size: .86rem; }
  .site-header__actions .btn .btn__arrow { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper); margin: 0; padding: 1rem var(--gutter) 2rem; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform var(--t-base), visibility 0s linear 420ms; }
  .nav.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { width: 100%; justify-content: space-between; padding: 1rem .25rem; border-radius: 0; border-bottom: 1px solid var(--border); font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; }
  .nav__toggle { display: none; }
  .menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0; min-width: 0; }
  .menu__list a { padding: .9rem .25rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .menu__list strong { font-size: 1.2rem; }
}
@media (max-width: 480px) {
  .site-header__actions .btn { display: none; }
  .nav .nav__cta { display: flex; margin-top: 1.5rem; }
}
.nav__cta { display: none; }
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; isolation: isolate; border-bottom-left-radius: 50% 3.5rem; border-bottom-right-radius: 50% 3.5rem; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 40%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 20, 15, .96) 0%, rgba(17, 20, 15, .88) 34%, rgba(17, 20, 15, .35) 62%, rgba(17, 20, 15, .15) 100%), linear-gradient(0deg, rgba(17, 20, 15, .55) 0%, transparent 40%); }
.hero__inner { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; min-height: min(calc(100svh - var(--header-h)), 860px); display: grid; grid-template-columns: minmax(0, 40rem) 1fr; align-items: center; padding-block: clamp(3rem, 8vh, 6rem); }
.hero h1 { margin-bottom: 1.2rem; }
.hero .lead { max-width: 30rem; color: rgba(245, 244, 239, .92); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.hero__scroll { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; font-size: .95rem; line-height: 1.2; }
.hero__scroll span { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 1px solid rgba(245, 244, 239, .5); border-radius: 50%; transition: border-color var(--t-fast), transform var(--t-fast); }
.hero__scroll:hover span { border-color: var(--paper); transform: translateY(2px); }
.hero__note { justify-self: end; align-self: start; max-width: 12rem; text-align: right; transform: rotate(-4deg); color: var(--cta); margin-top: 1rem; }
@media (max-width: 900px) {
  .hero { border-bottom-left-radius: 50% 1.6rem; border-bottom-right-radius: 50% 1.6rem; }
  .hero__inner { grid-template-columns: 1fr; align-content: end; min-height: min(88svh, 760px); padding-block: 2.5rem; }
  .hero__media img { object-position: 62% 30%; }
  .hero__media::after { background: linear-gradient(0deg, rgba(17, 20, 15, .97) 0%, rgba(17, 20, 15, .82) 45%, rgba(17, 20, 15, .25) 78%, rgba(17, 20, 15, .1) 100%); }
  .hero__note { display: none; }
  .hero .lead { margin-bottom: 1.5rem; }
}

/* ---------- Sections génériques ---------- */
.section { padding-block: clamp(3.5rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--forest { background: var(--forest); color: var(--paper); }
.section--soil { background: var(--soil); color: var(--paper); }
.section--dark .muted, .section--forest .muted, .section--soil .muted { color: rgba(245, 244, 239, .72); }
.section--dark .note, .section--forest .note, .section--soil .note { color: rgba(245, 244, 239, .62); }

/* Éditorial photo + texte */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.split__text { grid-column: span 5; }
.split__media { grid-column: span 7; }
.split--rev .split__text { order: 2; }
.split--rev .split__media { order: 1; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media--tall img { aspect-ratio: 4 / 5; }
.split__media--wide img { aspect-ratio: 16 / 10; }
.split__media--square img { aspect-ratio: 1; }
.split__media--natural img { aspect-ratio: auto; }
.zone img { filter: saturate(.8); }
figcaption { font-size: .82rem; color: var(--muted); margin-top: .6rem; }
.section--dark figcaption, .section--forest figcaption, .section--soil figcaption { color: rgba(245, 244, 239, .62); }
figure { margin: 0; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__text, .split__media { grid-column: auto; }
  .split--rev .split__text { order: 1; }
  .split--rev .split__media { order: 2; }
}

/* Révélation par masque sur les grandes photos */
.js .reveal { clip-path: inset(0 0 100% 0); transition: clip-path 900ms var(--ease); }
.reveal.is-visible { clip-path: inset(0 0 0 0); }
.js .reveal--left { clip-path: inset(0 100% 0 0); }
.reveal--left.is-visible { clip-path: inset(0); }

/* ---------- Bordereau de suivi (idée centrale) ---------- */
.bordereau-section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.bordereau-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.bordereau-sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.bordereau-sticky .lead { max-width: 26rem; }
.bordereau { margin-top: 2rem; background: var(--white); border: 1px solid var(--border); padding: 1.25rem 1.35rem 1.1rem; position: relative; box-shadow: 0 1px 0 rgba(17, 20, 15, .04); }
.bordereau::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--forest); }
.bordereau__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px dashed var(--border); padding-bottom: .7rem; margin-bottom: .5rem; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.bordereau__head output { font-variant-numeric: tabular-nums; color: var(--leaf); }
.bordereau__list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.bordereau__row { display: grid; grid-template-columns: 1.4rem 1fr auto; column-gap: .75rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px dotted var(--border); font-size: .95rem; transition: color var(--t-base); color: var(--muted); }
.bordereau__row:last-child { border-bottom: 0; }
.bordereau__row strong { font-weight: 600; color: inherit; }
.bordereau__row small { display: block; font-size: .8rem; color: var(--muted); }
.bordereau__row .bordereau__mark { width: 1.1rem; height: 1.1rem; align-self: center; border: 1.5px solid var(--border); border-radius: 50%; position: relative; transition: border-color var(--t-base), background var(--t-base); }
.bordereau__row .bordereau__mark::after { content: ""; position: absolute; left: .27rem; top: .1rem; width: .3rem; height: .55rem; border: solid var(--paper); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform 320ms var(--ease) 120ms; }
.bordereau__row.is-done { color: var(--ink); }
.bordereau__row.is-done .bordereau__mark { background: var(--forest); border-color: var(--forest); }
.bordereau__row.is-done .bordereau__mark::after { transform: rotate(45deg) scale(1); }
.bordereau__row.is-current { color: var(--ink); }
.bordereau__row.is-current .bordereau__mark { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(120, 145, 79, .25); }
.bordereau__where { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.bordereau__foot { margin-top: .8rem; padding-top: .7rem; border-top: 1px dashed var(--border); font-size: .82rem; color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.bordereau__stamp { font-family: var(--font-hand); font-size: 1.35rem; color: var(--forest); transform: rotate(-6deg); opacity: 0; transition: opacity var(--t-base), transform var(--t-base); }
.bordereau.is-complete .bordereau__stamp { opacity: 1; transform: rotate(-6deg) scale(1.05); }

.steps { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
.step { display: grid; gap: 1.1rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.step__media { position: relative; overflow: hidden; }
.step__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.step__media .tag { position: absolute; left: 1rem; top: 1rem; }
.tag { display: inline-block; padding: .35rem .65rem; background: rgba(17, 20, 15, .78); color: var(--paper); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; backdrop-filter: blur(4px); }
.tag--light { background: rgba(245, 244, 239, .88); color: var(--ink); }
.step__body { display: grid; grid-template-columns: 1fr; gap: .25rem; max-width: 36rem; }
.step__body h3 { margin-bottom: .2rem; }
.step__body p { color: var(--muted); }
.step__body .textlink { margin-top: .4rem; font-size: .95rem; }
.step:nth-child(even) .step__media img { aspect-ratio: 3 / 2; }

/* Version mobile : rappel d'étape collé sous l'en-tête */
.bordereau-mini { display: none; }
@media (max-width: 900px) {
  .bordereau-grid { grid-template-columns: 1fr; }
  .bordereau-sticky { position: static; }
  .bordereau { margin-top: 1.5rem; }
  .bordereau-mini { display: flex; position: sticky; top: var(--header-h); z-index: 20; margin: 0 calc(-1 * var(--gutter)) 1.5rem; padding: .55rem var(--gutter); background: var(--ink); color: var(--paper); font-size: .84rem; align-items: center; gap: .8rem; }
  .bordereau-mini output { font-variant-numeric: tabular-nums; color: var(--cta); font-weight: 600; }
  .bordereau-mini__bar { flex: 1; height: 3px; background: rgba(245, 244, 239, .18); position: relative; }
  .bordereau-mini__bar span { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: var(--cta); transition: width var(--t-base); }
  .step__media img, .step:nth-child(even) .step__media img { aspect-ratio: 4 / 3; }
}

/* ---------- Impact / attestation ---------- */
.impact { position: relative; isolation: isolate; overflow: hidden; }
.impact__bg { position: absolute; inset: 0; z-index: -1; }
.impact__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.impact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36, 29, 23, .96) 0%, rgba(36, 29, 23, .8) 50%, rgba(36, 29, 23, .55) 100%); }
.impact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); }
.figures > div { padding: .5rem 1.5rem .5rem 0; }
.figures > div + div { border-left: 1px solid rgba(245, 244, 239, .28); padding-left: 1.5rem; }
.figures strong { display: block; white-space: nowrap; font-family: var(--font-display); font-size: clamp(2.2rem, 3.8vw, 3.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; margin-bottom: .4rem; }
.figures span { display: block; font-size: .95rem; color: rgba(245, 244, 239, .85); line-height: 1.35; }
.impact .note { margin-top: 1.5rem; }
@media (max-width: 900px) {
  .impact__grid { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr; gap: 0; }
  .figures > div { padding: 1rem 0; border-top: 1px solid rgba(245, 244, 239, .22); display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 1rem; }
  .figures > div + div { border-left: 0; padding-left: 0; }
  .figures strong { margin: 0; min-width: 6.5ch; }
}

/* ---------- Références ---------- */
.refs { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.refs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem clamp(1.5rem, 3.5vw, 3.5rem); }
.refs__list img { height: 2.4rem; width: auto; max-width: 11rem; object-fit: contain; filter: grayscale(1) contrast(1.05); mix-blend-mode: multiply; opacity: .85; }
.refs__list li { display: flex; align-items: center; }
.refs__more { font-size: .9rem; color: var(--muted); }
@media (max-width: 600px) { .refs__list { gap: 1.25rem 1.5rem; } .refs__list img { height: 2.1rem; max-width: 7rem; } }

/* ---------- Plateforme ---------- */
.plateforme { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.plateforme__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.timeline { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 1px solid rgba(245, 244, 239, .25); }
.timeline li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid rgba(245, 244, 239, .25); }
.timeline time, .timeline b { font-family: var(--font-display); font-weight: 600; color: var(--cta); }
@media (max-width: 900px) { .plateforme { grid-template-columns: 1fr; } .timeline li { grid-template-columns: 6.5rem 1fr; } }

/* ---------- Estimation (formulaire) ---------- */
.estimation { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); min-height: 40rem; }
.estimation__media { position: relative; }
.estimation__media picture, .estimation__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.estimation__media .hand { position: absolute; left: 1.5rem; bottom: 1.5rem; color: var(--paper); background: rgba(17, 20, 15, .55); padding: .5rem 1rem; backdrop-filter: blur(3px); }
.estimation__body { padding: clamp(2.5rem, 5vw, 5rem) clamp(1.25rem, 5vw, 5rem); }
.estimation__body .lead { margin-bottom: 1.8rem; }
@media (max-width: 900px) {
  .estimation { grid-template-columns: 1fr; }
  .estimation__media { min-height: 18rem; }
  .estimation__media picture, .estimation__media img { position: relative; height: 18rem; }
}
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .88rem; font-weight: 500; }
.field label small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; padding: .8rem .9rem; border: 1px solid var(--border); border-radius: .35rem; background: var(--white); min-height: 3rem; }
.field textarea { min-height: 6rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--leaf); outline-offset: 1px; border-color: var(--leaf); }
.field.is-invalid input, .field.is-invalid select { border-color: #a63d2a; }
.field__error { font-size: .82rem; color: #a63d2a; display: none; }
.field.is-invalid .field__error { display: block; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; flex: none; accent-color: var(--forest); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__status { grid-column: 1 / -1; padding: 1rem 1.1rem; border-radius: .35rem; font-size: .95rem; display: none; }
.form__status.is-ok { display: block; background: #e6efd6; color: #1e3a1e; }
.form__status.is-err { display: block; background: #f6e3de; color: #6d2417; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* ---------- Pages internes ---------- */
.page-hero { background: var(--ink); color: var(--paper); position: relative; isolation: isolate; overflow: hidden; }
.page-hero__inner { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding-block: clamp(3rem, 7vw, 6rem); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.page-hero .lead { color: rgba(245, 244, 239, .88); max-width: 34rem; }
.page-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.page-hero figcaption { color: rgba(245, 244, 239, .72); }
.page-hero--bleed .page-hero__media { position: absolute; inset: 0; z-index: -1; }
.page-hero--bleed .page-hero__media img { height: 100%; aspect-ratio: auto; }
.page-hero--team .page-hero__media img { object-position: 50% 68%; }
.page-hero--bleed .page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 20, 15, .94) 0%, rgba(17, 20, 15, .75) 50%, rgba(17, 20, 15, .35) 100%); }
.page-hero--bleed .page-hero__inner { grid-template-columns: minmax(0, 40rem); min-height: 28rem; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.breadcrumb { font-size: .84rem; margin-bottom: 1.2rem; color: rgba(245, 244, 239, .7); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
@media (max-width: 900px) { .page-hero__inner { grid-template-columns: 1fr; } .page-hero__media { order: -1; } .page-hero__media img { aspect-ratio: 16 / 10; } }

.prose { max-width: 66ch; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose li::marker { color: var(--leaf); }

/* Liste éditoriale avec filet (remplace les cartes) */
.ruled { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.ruled > li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1rem 2.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--border); }
.ruled h3 { margin: 0; }
.ruled p { color: var(--muted); }
.ruled p:last-child { margin: 0; }
.section--dark .ruled, .section--forest .ruled, .section--soil .ruled { border-color: rgba(245, 244, 239, .25); }
.section--dark .ruled > li, .section--forest .ruled > li, .section--soil .ruled > li { border-color: rgba(245, 244, 239, .25); }
.section--dark .ruled p, .section--forest .ruled p, .section--soil .ruled p { color: rgba(245, 244, 239, .8); }
@media (max-width: 700px) { .ruled > li { grid-template-columns: 1fr; gap: .4rem; } }

/* Duo de photos pleine largeur */
.duo { display: grid; grid-template-columns: 3fr 2fr; gap: 1rem; grid-auto-rows: clamp(22rem, 38vw, 36rem); }
.duo figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.duo figure > div { min-height: 0; height: 100%; }
.duo picture { height: 100%; }
.duo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .duo { grid-template-columns: 1fr; grid-auto-rows: auto; } .duo figure { display: block; } .duo img { aspect-ratio: 3 / 2; height: auto; } }

/* Fiche de faits (aside) */
.facts { background: var(--white); border: 1px solid var(--border); padding: 1.4rem 1.5rem; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.2rem; font-size: .95rem; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); }
.section--forest .facts, .section--dark .facts { background: rgba(245, 244, 239, .06); border-color: rgba(245, 244, 239, .25); }
.section--forest .facts dd, .section--dark .facts dd { color: rgba(245, 244, 239, .78); }

/* Bandeau CTA de fin de page */
.cta-band { background: var(--forest); color: var(--paper); }
.cta-band__inner { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding-block: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem; align-items: center; }
.cta-band h2 { margin-bottom: .6rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-self: end; }
@media (max-width: 900px) { .cta-band__inner { grid-template-columns: 1fr; } .cta-band__actions { justify-self: start; } }

/* Actualités */
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem; }
.news-list > li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1.5rem 2.5rem; align-items: start; }
.news-list img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.news-list time { font-size: .84rem; color: var(--muted); }
.news-list h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: .3rem 0 .5rem; }
@media (max-width: 700px) { .news-list > li { grid-template-columns: 1fr; } }
.article { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 5rem); }
.article__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
@media (max-width: 900px) { .article { grid-template-columns: 1fr; } .article__aside { position: static; } }

/* Zone d'intervention */
.zone { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.zone img { width: 100%; }
.zone__list { columns: 2; column-gap: 2rem; padding-left: 1.1rem; margin: 1rem 0 0; font-size: .95rem; }
@media (max-width: 800px) { .zone { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(245, 244, 239, .85); margin-top: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__inner { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding-block: clamp(3rem, 6vw, 5rem) 2.5rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer__brand img { height: 3.4rem; width: auto; margin-bottom: 1.2rem; }
.site-footer__brand p { max-width: 30rem; font-size: .95rem; }
.site-footer__legal { font-size: .82rem !important; color: rgba(245, 244, 239, .6); }
.site-footer__title { font-family: var(--font-body); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--cta); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .95rem; }
.site-footer__social { margin-top: 1.2rem !important; display: flex !important; gap: 1rem !important; }
.site-footer__bottom { border-top: 1px solid rgba(245, 244, 239, .14); }
.site-footer__bottom p { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding-block: 1.2rem; font-size: .8rem; color: rgba(245, 244, 239, .55); }
@media (max-width: 900px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---------- Divers ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 1.5rem; }
.contact-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: 1.05rem; }
.contact-lines a { font-weight: 500; }
.error-page { text-align: left; padding-block: clamp(4rem, 12vw, 9rem); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal--left { clip-path: none; }
}

.mt-6 { margin-top: 1.5rem !important; }
.mt-8 { margin-top: 2.5rem !important; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
