/* form-spire — Thème : Écologie — Archétype : Split-Screen Modern */

:root {
  --vert-profond: #16331f;
  --vert: #275b3a;
  --vert-clair: #5c9a5c;
  --lime: #a9d46a;
  --sable: #f3efe4;
  --creme: #faf8f1;
  --terre: #6b5a44;
  --encre: #1d241d;
  --gris: #5f6a60;
  --ligne: #e0dccd;
  --blanc: #ffffff;
  --ombre: 0 18px 50px rgba(22, 51, 31, 0.14);
  --ombre-douce: 0 8px 26px rgba(22, 51, 31, 0.08);
  --rayon: 18px;
  --max: 1200px;
  --pad: clamp(20px, 5vw, 72px);
  --titre: "Fraunces", Georgia, "Times New Roman", serif;
  --corps: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--corps);
  color: var(--encre);
  background: var(--creme);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--titre); line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }

h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; }

p { color: var(--gris); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Bandeau publicité ---------- */
.adbar {
  background: var(--vert-profond);
  color: var(--creme);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.adbar .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.adbar a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.adbar .pastille { background: var(--lime); color: var(--vert-profond); font-weight: 700; padding: 2px 9px; border-radius: 40px; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.66rem; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 241, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ligne);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--titre); font-size: 1.35rem; font-weight: 600; color: var(--vert-profond); }
.logo .mark { width: 34px; height: 34px; flex: 0 0 34px; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--encre); transition: color 0.2s; }
.nav-links a:hover { color: var(--vert); }
.nav-cta { background: var(--vert); color: var(--creme) !important; padding: 11px 20px; border-radius: 40px; font-weight: 600; transition: background 0.25s, transform 0.2s; }
.nav-cta:hover { background: var(--vert-profond); transform: translateY(-1px); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--vert-profond); transition: 0.3s; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; border: 0; cursor: pointer; font-family: var(--corps); font-weight: 600; font-size: 1rem; padding: 15px 28px; border-radius: 44px; transition: transform 0.2s, background 0.25s, box-shadow 0.25s; }
.btn-primary { background: var(--vert); color: var(--creme); box-shadow: var(--ombre-douce); }
.btn-primary:hover { background: var(--vert-profond); transform: translateY(-2px); box-shadow: var(--ombre); }
.btn-ghost { background: transparent; color: var(--vert-profond); border: 1.5px solid var(--vert); }
.btn-ghost:hover { background: var(--vert); color: var(--creme); transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--vert-profond); }
.btn-lime:hover { background: #bbe07f; transform: translateY(-2px); }

.inline-link { color: var(--vert); font-weight: 600; border-bottom: 2px solid var(--lime); padding-bottom: 1px; transition: border-color 0.2s, color 0.2s; }
.inline-link:hover { color: var(--vert-profond); border-color: var(--vert); }

.eyebrow { display: inline-block; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--vert-clair); margin-bottom: 18px; }

/* Utilitaires d'espacement (évite tout CSS en ligne) */
.mt-14 { margin-top: 14px; }
.mt-20 { margin-top: 20px; }
.mt-22 { margin-top: 22px; }
.mt-30 { margin-top: 30px; }

/* ---------- Split hero ---------- */
.split { display: flex; flex-wrap: wrap; align-items: stretch; min-height: 82vh; }
.split > .half { flex: 1 1 48%; min-width: 320px; display: flex; flex-direction: column; justify-content: center; }
.split .text-half { padding: clamp(40px, 7vw, 110px) clamp(24px, 6vw, 90px); }
.split .img-half { background-color: var(--vert-clair); position: relative; min-height: 420px; }
.split .img-half img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--sable); color: var(--vert-profond); font-weight: 600; font-size: 0.85rem; padding: 7px 16px; border-radius: 40px; margin-bottom: 26px; width: fit-content; }
.hero h1 { color: var(--vert-profond); margin-bottom: 22px; }
.hero p.lead { font-size: 1.15rem; max-width: 46ch; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 48px; }
.hero-stats .stat strong { display: block; font-family: var(--titre); font-size: 2rem; color: var(--vert-profond); }
.hero-stats .stat span { font-size: 0.85rem; color: var(--gris); }

/* ---------- Sections génériques ---------- */
.section { padding: clamp(60px, 9vw, 120px) 0; }
.section.tinted { background: var(--sable); }
.section.deep { background: var(--vert-profond); color: var(--creme); }
.section.deep p { color: rgba(250, 248, 241, 0.78); }
.section.deep h2 { color: var(--creme); }

.sec-head { max-width: 640px; margin-bottom: 54px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { color: var(--vert-profond); margin-bottom: 16px; }
.section.deep .sec-head h2 { color: var(--creme); }

/* ---------- Blocs alternés (split rows) ---------- */
.feature-row { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(30px, 5vw, 70px); margin-bottom: clamp(50px, 7vw, 96px); }
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse { flex-direction: row-reverse; }
.feature-row .col-text { flex: 1 1 42%; min-width: 300px; }
.feature-row .col-media { flex: 1 1 46%; min-width: 300px; }
.feature-media { background-color: var(--vert-clair); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.feature-media img { width: 100%; height: 420px; object-fit: cover; }
.feature-row h3 { color: var(--vert-profond); font-size: 1.7rem; margin-bottom: 16px; }
.feature-row ul { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.feature-row ul li { display: flex; gap: 12px; align-items: flex-start; color: var(--encre); }
.feature-row ul li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; flex: 0 0 10px; background: var(--lime); border-radius: 50%; }

/* ---------- Cartes services ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 26px; }
.card { flex: 1 1 300px; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s, box-shadow 0.25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--ombre); }
.card .thumb { background-color: var(--vert-clair); height: 190px; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.card h3 { color: var(--vert-profond); margin-bottom: 10px; font-size: 1.25rem; }
.card p { font-size: 0.96rem; flex: 1; }
.card .price { font-family: var(--titre); font-size: 1.5rem; color: var(--vert); margin: 18px 0 16px; }
.card .price small { font-size: 0.8rem; color: var(--gris); font-family: var(--corps); font-weight: 500; }
.card .btn { align-self: flex-start; }

/* ---------- Bande chiffres ---------- */
.stripe { background: var(--lime); }
.stripe .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; padding-top: 52px; padding-bottom: 52px; }
.stripe .num { flex: 1 1 200px; }
.stripe .num strong { font-family: var(--titre); font-size: 2.6rem; color: var(--vert-profond); display: block; }
.stripe .num span { color: #2f4a2a; font-weight: 500; }

/* ---------- Témoignages ---------- */
.quotes { display: flex; flex-wrap: wrap; gap: 24px; }
.quote { flex: 1 1 300px; background: var(--blanc); border-radius: var(--rayon); padding: 32px 30px; box-shadow: var(--ombre-douce); border-top: 4px solid var(--lime); }
.quote p { color: var(--encre); font-size: 1.05rem; font-style: italic; margin-bottom: 20px; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .who .av { width: 44px; height: 44px; border-radius: 50%; background: var(--vert-clair); color: var(--creme); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--titre); }
.quote .who b { color: var(--vert-profond); display: block; font-size: 0.95rem; }
.quote .who span { font-size: 0.82rem; color: var(--gris); }

/* ---------- Processus ---------- */
.steps { display: flex; flex-wrap: wrap; gap: 24px; counter-reset: step; }
.step { flex: 1 1 220px; background: var(--creme); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 30px 26px; position: relative; }
.section.deep .step { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
.step .n { font-family: var(--titre); font-size: 2.4rem; color: var(--lime); line-height: 1; margin-bottom: 14px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.section.deep .step h3 { color: var(--creme); }

/* ---------- Appel inline / bandeau CTA ---------- */
.cta-band { background: var(--vert); color: var(--creme); border-radius: calc(var(--rayon) + 6px); padding: clamp(40px, 6vw, 70px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { color: var(--creme); max-width: 18ch; }
.cta-band p { color: rgba(250,248,241,0.82); max-width: 40ch; margin-top: 10px; }

/* ---------- Formulaire ---------- */
.form-wrap { display: flex; flex-wrap: wrap; gap: clamp(30px, 5vw, 64px); align-items: stretch; }
.form-aside { flex: 1 1 330px; display: flex; flex-direction: column; justify-content: center; }
.form-aside h2 { color: var(--vert-profond); margin-bottom: 16px; }
.form-aside .contact-list { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.form-aside .contact-list li { display: flex; gap: 12px; color: var(--encre); font-weight: 500; }
.form-aside .contact-list b { color: var(--vert); }

.form-card { flex: 1 1 400px; background: var(--blanc); border-radius: var(--rayon); padding: clamp(28px, 4vw, 44px); box-shadow: var(--ombre); border: 1px solid var(--ligne); }
.field { margin-bottom: 20px; display: flex; flex-direction: column; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--vert-profond); margin-bottom: 8px; }
.field input, .field select, .field textarea { font-family: var(--corps); font-size: 1rem; padding: 14px 16px; border: 1.5px solid var(--ligne); border-radius: 12px; background: var(--creme); color: var(--encre); transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--vert-clair); box-shadow: 0 0 0 3px rgba(92,154,92,0.18); }
.field textarea { resize: vertical; min-height: 110px; }
.form-card .btn { width: 100%; justify-content: center; }
.form-note { font-size: 0.82rem; color: var(--gris); margin-top: 16px; text-align: center; }
.err { color: #b23b3b; font-size: 0.82rem; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select { border-color: #b23b3b; }

/* ---------- Pages légales / contenu ---------- */
.page-head { background: var(--vert-profond); color: var(--creme); padding: clamp(70px, 10vw, 120px) 0 clamp(50px, 7vw, 80px); }
.page-head .eyebrow { color: var(--lime); }
.page-head h1 { color: var(--creme); max-width: 20ch; }
.page-head p { color: rgba(250,248,241,0.8); max-width: 54ch; margin-top: 18px; }

.prose { max-width: 760px; margin: 0 auto; padding-top: clamp(50px, 7vw, 90px); padding-bottom: clamp(50px, 7vw, 90px); }
.prose h2 { color: var(--vert-profond); margin: 40px 0 14px; font-size: 1.6rem; }
.prose h3 { color: var(--vert); margin: 26px 0 10px; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 18px 20px; color: var(--gris); display: flex; flex-direction: column; gap: 8px; }
.prose .meta-box { background: var(--sable); border-left: 4px solid var(--lime); padding: 20px 24px; border-radius: 12px; margin: 24px 0; }
.prose .meta-box p { margin: 0; color: var(--encre); }

/* ---------- Infos contact (grille flex) ---------- */
.info-cards { display: flex; flex-wrap: wrap; gap: 24px; }
.info-card { flex: 1 1 260px; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 30px 28px; }
.info-card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--sable); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--vert); }
.info-card h3 { color: var(--vert-profond); font-size: 1.15rem; margin-bottom: 8px; }
.info-card p { font-size: 0.96rem; }
.no-click { color: var(--vert); font-weight: 600; user-select: all; }

.map-band { background-color: var(--vert-clair); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre-douce); min-height: 260px; }
.map-band img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }

/* ---------- Thanks ---------- */
.thanks-wrap { min-height: 72vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 0; }
.thanks-card { max-width: 620px; background: var(--blanc); border-radius: 26px; padding: clamp(40px, 6vw, 70px); box-shadow: var(--ombre); border: 1px solid var(--ligne); }
.thanks-card .tick { width: 84px; height: 84px; margin: 0 auto 26px; background: var(--lime); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.thanks-card h1 { color: var(--vert-profond); margin-bottom: 16px; }
.thanks-card .ref { background: var(--sable); border-radius: 12px; padding: 16px 20px; margin: 24px 0; font-weight: 600; color: var(--vert-profond); }
.thanks-card .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 10px; }

/* ---------- Footer ---------- */
.footer { background: var(--vert-profond); color: rgba(250,248,241,0.78); padding: clamp(56px, 7vw, 86px) 0 34px; }
.footer .cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer .col { flex: 1 1 200px; }
.footer .col.brand { flex: 1 1 280px; }
.footer .logo { color: var(--creme); margin-bottom: 16px; }
.footer h4 { color: var(--creme); font-family: var(--corps); font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: rgba(250,248,241,0.78); font-size: 0.95rem; transition: color 0.2s; }
.footer a:hover { color: var(--lime); }
.footer .disc { font-size: 0.82rem; line-height: 1.6; color: rgba(250,248,241,0.6); }
.footer .bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 0.85rem; }
.footer .email-txt { color: var(--lime); font-weight: 600; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: min(960px, calc(100% - 32px)); z-index: 90;
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: 18px;
  box-shadow: var(--ombre); padding: 22px 26px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.cookie[hidden] { display: none; }
.cookie p { font-size: 0.92rem; color: var(--encre); flex: 1 1 340px; margin: 0; }
.cookie p a { color: var(--vert); text-decoration: underline; }
.cookie .c-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { padding: 11px 20px; font-size: 0.92rem; }

/* ---------- CTA flottant ---------- */
.float-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  box-shadow: var(--ombre);
}
.float-cta.hide { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(320px, 82%); background: var(--creme); flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 90px 32px 40px; gap: 22px; transform: translateX(100%); transition: transform 0.3s; box-shadow: var(--ombre); }
  .nav-links.open { transform: translateX(0); }
  .burger { display: flex; }
  .split { min-height: auto; }
  .split .img-half { order: -1; min-height: 300px; }
  .feature-media img { height: 300px; }
  .float-cta { left: 16px; right: 16px; justify-content: center; }
}
