/* Bois et Confort — feuille de style
   Concept : « catalogue d'atelier » — papier lin, bandes sauge, une section forêt
   pour le savoir-faire ; photos en grand, annotations manuscrites comme sur les affiches. */
:root {
  --forest: #2c5527;      /* vert profond de la marque */
  --forest-deep: #1d3b1a;
  --leaf: #6f9a4a;        /* vert feuille (logo) */
  --sage: #e7efdc;        /* bandes claires */
  --sage-line: #cfdcbd;
  --linen: #faf8f2;       /* fond papier */
  --paper: #ffffff;
  --oak: #b4844f;         /* ton chêne */
  --oak-soft: #efe2d0;
  --ink: #1e281b;
  --muted: #5a6754;
  --on-forest: #eef3e6;
  --on-forest-muted: #b9c9ab;

  --f-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-hand: "Caveat", "Segoe Script", "Comic Sans MS", cursive;

  --step--1: clamp(.82rem, .8rem + .1vw, .88rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + .45vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + .9vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --step-4: clamp(2.5rem, 1.8rem + 3.2vw, 4.4rem);

  --wrap: 1240px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --radius: 18px;
  --shadow: 0 18px 40px -22px rgba(29, 59, 26, .45);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--linen);
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}
.hand { font-family: var(--f-hand); font-weight: 600; letter-spacing: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: var(--step--1); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--leaf);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .9rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font: 700 .98rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--forest); color: var(--on-forest); }
.btn-primary:hover { background: var(--forest-deep); }
.btn-ghost { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-ghost:hover { background: var(--forest); color: var(--on-forest); }
.btn-light { background: var(--on-forest); color: var(--forest-deep); }
.btn-wa { background: #1f8a4c; color: #fff; }

/* ---------- Barre d'infos ---------- */
.topbar { background: var(--forest-deep); color: var(--on-forest-muted); font-size: .85rem; }
.topbar .wrap { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; padding-block: .45rem; flex-wrap: wrap; }
.topbar a { text-decoration: none; color: var(--on-forest); }
.topbar .tb-items { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar span { display: inline-flex; align-items: center; gap: .4rem; }
.topbar svg { width: 15px; height: 15px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--linen) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--sage-line); box-shadow: 0 10px 30px -24px rgba(29,59,26,.5); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .8rem; }

.logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--forest); }
.logo svg { width: 52px; height: 52px; flex: none; }
.logo-text { display: grid; line-height: 1; }
.logo-name { font-family: var(--f-display); font-weight: 700; font-size: 1.55rem; letter-spacing: -.02em; }
.logo-name em { font-family: var(--f-hand); font-style: normal; color: var(--leaf); font-weight: 600; font-size: 1.25em; padding-inline: .08em; }
.logo-tag { font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .98rem; position: relative; padding-block: .3rem; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--leaf);
  transition: right .25s ease;
}
.nav a:not(.btn):hover::after, .nav a[aria-current="true"]::after { right: 0; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--forest); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); z-index: 70;
    flex-direction: column; align-items: stretch; gap: 1.5rem;
    background: var(--linen); padding: calc(5rem + env(safe-area-inset-top, 0px)) max(1.6rem, env(safe-area-inset-right, 0px)) 2rem 1.6rem;
    clip-path: inset(0 0 0 100%); visibility: hidden; transition: clip-path .35s ease, visibility 0s linear .35s; box-shadow: -20px 0 60px -30px rgba(0,0,0,.4);
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .35s ease, visibility 0s; }
  .nav ul { flex-direction: column; gap: .2rem; }
  .nav ul a { display: block; font-size: 1.25rem; padding-block: .7rem; border-bottom: 1px solid var(--sage-line); }
  .nav-close { position: absolute; top: calc(1rem + env(safe-area-inset-top, 0px)); right: 1rem; }
  .topbar .tb-address { display: none; }
}
@media (min-width: 961px) { .nav-close { display: none; } }
.nav-backdrop { position: fixed; inset: 0; background: rgba(20,35,18,.45); z-index: 65; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5.5rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -30% 35%; height: 70%;
  background: radial-gradient(closest-side, var(--sage), transparent); z-index: -1;
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.4rem; min-width: 0; }
.hero h1 { font-size: var(--step-4); font-weight: 700; color: var(--forest-deep); }
.hero h1 .hand { display: block; color: var(--leaf); font-size: .72em; transform: rotate(-2deg); transform-origin: left; margin-top: .15em; }
.hero-lead { font-size: var(--step-1); color: var(--muted); max-width: 36ch; line-height: 1.5; }
.hero-ctas { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.2rem 1.6rem; padding-top: .6rem; border-top: 1px solid var(--sage-line); }
.hero-meta div { display: grid; gap: .1rem; }
.hero-meta strong { font-family: var(--f-display); font-size: 1.05rem; color: var(--forest); }
.hero-meta span { font-size: .88rem; color: var(--muted); }

.hero-visual { position: relative; min-width: 0; aspect-ratio: 1 / 1.02; max-width: 100%; }
.hero-visual figure { margin: 0; position: absolute; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--sage); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hv-main { inset: 0 14% 12% 0; border-radius: 160px var(--radius) var(--radius) var(--radius) !important; }
.hv-a { width: 40%; aspect-ratio: 4/5; right: 0; top: 10%; border: 6px solid var(--linen); }
.hv-b { width: 46%; aspect-ratio: 1; right: 6%; bottom: 0; border: 6px solid var(--linen); }
.hv-note {
  position: absolute; left: -2%; bottom: 3%; z-index: 2;
  background: var(--forest); color: var(--on-forest); padding: .7rem 1.2rem; border-radius: 14px;
  font-family: var(--f-hand); font-size: 1.55rem; line-height: 1.1; transform: rotate(-4deg);
  box-shadow: var(--shadow);
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 1 / .95; }
}

/* ---------- Bandeau promesses ---------- */
.promises { background: var(--forest); color: var(--on-forest); }
.promises ul { list-style: none; margin: 0; padding-block: 1.3rem; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem 2rem; }
.promises li { display: flex; align-items: center; gap: .8rem; font-weight: 600; }
.promises svg { width: 38px; height: 38px; flex: none; padding: 8px; border-radius: 50%; background: rgba(255,255,255,.1); color: #cfe3b7; }
.promises small { display: block; font-weight: 400; color: var(--on-forest-muted); font-size: .85rem; }
@media (max-width: 860px) { .promises ul { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 460px) { .promises ul { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); max-width: 760px; }
.section-head h2 { font-size: var(--step-3); color: var(--forest-deep); }
.section-head h2 .hand { color: var(--leaf); font-size: 1.1em; }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; max-width: 58ch; }
.section-head.split { max-width: none; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); align-items: end; gap: 1rem 3rem; }
@media (max-width: 860px) { .section-head.split { grid-template-columns: 1fr; } }

/* ---------- Univers (catégories) ---------- */
.univers-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(150px, auto);
}
.u-card {
  position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sage);
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px;
  text-decoration: none; color: #fff; isolation: isolate;
}
.u-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.u-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18,34,16,0) 25%, rgba(18,34,16,.55) 55%, rgba(18,34,16,.9) 100%); }
.u-card:hover img { transform: scale(1.05); }
.u-body { padding: 1.3rem 1.4rem 1.4rem; display: grid; gap: .45rem; }
.u-body h3 { font-size: var(--step-2); }
.u-body p { font-size: .95rem; color: rgba(255,255,255,.86); max-width: 42ch; }
.u-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .3rem; }
.u-tags span { font-size: .74rem; font-weight: 700; letter-spacing: .04em; padding: .28rem .6rem; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(4px); }
.u-more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .9rem; margin-top: .4rem; color: #d8ecc0; }
.u-more svg { width: 16px; height: 16px; transition: transform .2s; }
.u-card:hover .u-more svg { transform: translateX(4px); }
.u-xl { grid-column: span 7; grid-row: span 3; }
.u-l  { grid-column: span 5; grid-row: span 3; }
.u-m  { grid-column: span 4; grid-row: span 2; }
.u-s  { grid-column: span 3; grid-row: span 2; }
.u-w  { grid-column: span 6; grid-row: span 2; }
@media (max-width: 960px) {
  .univers-grid { grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: auto; }
  .u-xl, .u-l, .u-m, .u-s, .u-w { grid-column: span 1; grid-row: auto; min-height: 320px; }
  .u-xl { grid-column: span 2; min-height: 420px; }
}
@media (max-width: 560px) {
  .univers-grid { grid-template-columns: 1fr; }
  .u-xl { grid-column: span 1; min-height: 380px; }
}

/* ---------- Savoir-faire ---------- */
.savoir { background: var(--forest-deep); color: var(--on-forest); position: relative; overflow: hidden; }
.savoir::before {
  /* fil du bois, discret */
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background: repeating-radial-gradient(ellipse at 120% 40%, transparent 0 14px, #cfe3b7 15px 16px);
}
.savoir .section-head h2 { color: #fff; }
.savoir .section-head p { color: var(--on-forest-muted); }
.savoir .eyebrow { color: #a9cf86; }
.savoir-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; position: relative; }
.savoir-photos { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; position: sticky; top: 110px; }
.savoir-photos figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 9/14; }
.savoir-photos figure:nth-child(2) { margin-top: 3rem; }
.savoir-photos img { width: 100%; height: 100%; object-fit: cover; }
.savoir-photos figcaption {
  position: absolute; left: .7rem; bottom: .7rem; right: .7rem; font-size: .8rem; font-weight: 600;
  background: rgba(18,34,16,.72); padding: .45rem .7rem; border-radius: 10px; backdrop-filter: blur(6px);
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 1.2rem; padding-block: 1.4rem; border-top: 1px solid rgba(207,227,183,.18); counter-increment: step; }
.steps li:last-child { border-bottom: 1px solid rgba(207,227,183,.18); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--f-display); font-weight: 700; font-size: 2rem; line-height: 1; color: #a9cf86;
}
.steps h3 { font-size: var(--step-1); margin-bottom: .35rem; color: #fff; }
.steps p { color: var(--on-forest-muted); max-width: 52ch; }
.finitions { margin-top: 2.4rem; display: grid; gap: 1rem; }
.finitions h3 { font-size: 1rem; font-family: var(--f-body); text-transform: uppercase; letter-spacing: .14em; color: #a9cf86; }
.swatches { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.swatches li { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .9rem .45rem .45rem; border-radius: 999px; background: rgba(255,255,255,.07); font-size: .9rem; font-weight: 600; }
.swatches i { width: 26px; height: 26px; border-radius: 50%; display: block; border: 2px solid rgba(255,255,255,.25); }
@media (max-width: 860px) {
  .savoir-grid { grid-template-columns: 1fr; }
  .savoir-photos { position: static; }
}

/* ---------- Réalisations ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.filters button {
  font: 600 .92rem/1 var(--f-body); padding: .7rem 1.1rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--sage-line); background: var(--paper); color: var(--ink); transition: all .2s;
}
.filters button:hover { border-color: var(--leaf); }
.filters button[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--on-forest); }
.filters .count { font-size: .78rem; opacity: .7; margin-left: .3rem; }
.gallery { columns: 3 280px; column-gap: 1rem; }
.gallery figure {
  margin: 0 0 1rem; break-inside: avoid; position: relative; border-radius: 14px; overflow: hidden; background: var(--sage);
}
.gallery button { all: unset; display: block; cursor: zoom-in; width: 100%; }
.gallery button:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }
.gallery img { width: 100%; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .8rem; color: #fff;
  background: linear-gradient(transparent, rgba(18,34,16,.78)); font-size: .9rem; font-weight: 600;
  display: flex; justify-content: space-between; gap: .5rem; align-items: end;
}
.gallery figcaption small { font-weight: 500; opacity: .8; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.gallery .is-hidden { display: none; }
.gallery-note { margin-top: 1rem; font-size: .88rem; color: var(--muted); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(12,22,11,.94);
  display: grid; grid-template-rows: 1fr auto; place-items: center;
  padding: calc(3.5rem + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(1.5rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.lightbox img { max-height: 78vh; max-width: min(1100px, 100%); width: auto; border-radius: 10px; object-fit: contain; }
.lightbox p { color: var(--on-forest); margin-top: 1rem; text-align: center; font-weight: 600; }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%;
  width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer;
}
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: calc(1rem + env(safe-area-inset-top, 0px)); right: max(1rem, env(safe-area-inset-right, 0px)); }
.lb-prev { left: max(1rem, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lb-next { right: max(1rem, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }

/* ---------- Engagements ---------- */
.engagements { background: var(--sage); }
.eng-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eng-visual { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); }
.eng-visual img { width: 100%; height: 100%; object-fit: cover; }
.eng-visual .hand-tag {
  position: absolute; top: 1.2rem; left: 1.2rem; background: var(--linen); color: var(--forest);
  padding: .5rem 1rem; border-radius: 12px; font-family: var(--f-hand); font-size: 1.5rem; transform: rotate(-3deg);
}
.eng-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.eng-item { background: var(--paper); border-radius: 16px; padding: 1.4rem; display: grid; gap: .55rem; align-content: start; }
.eng-item svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--forest); color: #d8ecc0; }
.eng-item h3 { font-size: 1.15rem; color: var(--forest-deep); }
.eng-item p { color: var(--muted); font-size: .95rem; }
.clients { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.clients strong { margin-right: .4rem; font-size: .92rem; }
.clients span { padding: .4rem .85rem; border-radius: 999px; border: 1.5px solid var(--sage-line); background: var(--linen); font-weight: 600; font-size: .88rem; color: var(--forest); }
@media (max-width: 860px) {
  .eng-grid { grid-template-columns: 1fr; }
  .eng-visual { aspect-ratio: 16/11; }
}
@media (max-width: 520px) { .eng-list { grid-template-columns: 1fr; } }

/* ---------- Devis / Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-card { background: var(--forest); color: var(--on-forest); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); display: grid; gap: 1.5rem; position: relative; overflow: hidden; }
.contact-card::after {
  content: ""; position: absolute; width: 260px; height: 260px; right: -90px; bottom: -110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(169,207,134,.35), transparent 70%);
}
.contact-card h3 { font-size: var(--step-2); color: #fff; }
.contact-card .hand { font-size: 1.6rem; color: #b9dc98; }
.c-lines { display: grid; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.c-lines li { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: .9rem; align-items: center; }
.c-lines svg { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: rgba(255,255,255,.1); color: #cfe3b7; }
.c-lines small { display: block; color: var(--on-forest-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.c-lines a, .c-lines b { font-weight: 700; font-size: 1.1rem; text-decoration: none; color: #fff; }
.c-lines a:hover { text-decoration: underline; }
.contact-card .btn-row { display: flex; gap: .6rem; flex-wrap: wrap; position: relative; z-index: 1; }

.form { background: var(--paper); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: 0 30px 60px -40px rgba(29,59,26,.4); border: 1px solid var(--sage-line); display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.1rem; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label { font-weight: 700; font-size: .9rem; }
.field label .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 500 1rem/1.4 var(--f-body); color: var(--ink);
  padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid var(--sage-line); background: var(--linen);
  transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--leaf); background: var(--paper); }
.field .err { color: #b3261e; font-size: .82rem; min-height: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b3261e; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips label { cursor: pointer; }
.chips label { position: relative; }
.field .chips input { position: absolute; inset: 0; width: 1px; height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: .55rem .9rem; border-radius: 999px; border: 1.5px solid var(--sage-line); font-weight: 600; font-size: .9rem; background: var(--linen); transition: all .15s; }
.chips input:checked + span { background: var(--forest); color: var(--on-forest); border-color: var(--forest); }
.chips input:focus-visible + span { outline: 3px solid var(--leaf); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.consent input { margin-top: .25rem; accent-color: var(--forest); width: 18px; height: 18px; flex: none; }
.form-status { border-radius: 12px; padding: 1rem 1.1rem; font-weight: 600; display: grid; gap: .6rem; }
.form-status.ok { background: var(--sage); color: var(--forest-deep); }
.form-status.ko { background: #fbeaea; color: #8a1c15; }
.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; }
.form-actions small { color: var(--muted); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--forest-deep); color: var(--on-forest-muted); padding-block: 3.5rem 1.5rem; padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; grid-template-columns: minmax(0,1.4fr) repeat(3, minmax(0,1fr)); gap: 2rem; }
.site-footer .logo { color: #fff; }
.site-footer .logo-tag { color: var(--on-forest-muted); }
.site-footer h4 { color: #fff; font-family: var(--f-body); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-quote { font-family: var(--f-hand); font-size: 1.6rem; color: #b9dc98; margin-top: 1rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(207,227,183,.15); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: span 2; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } .footer-grid > :first-child { grid-column: auto; } }

/* ---------- WhatsApp flottant ---------- */
.wa-float {
  position: fixed; z-index: 40;
  right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 58px; height: 58px; border-radius: 50%; background: #1f8a4c; color: #fff;
  display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Animations d'apparition (visibles au repos) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { transform: translateY(18px); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.in { transform: none; }
  .hero-copy > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; }
  .hero-copy > *:nth-child(3) { animation-delay: .16s; }
  .hero-copy > *:nth-child(4) { animation-delay: .24s; }
  .hero-visual figure { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
  .hero-visual .hv-a { animation-delay: .2s; }
  .hero-visual .hv-b { animation-delay: .35s; }
  @keyframes rise { from { transform: translateY(16px); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Galerie compacte sur mobile */
@media (max-width: 640px) {
  .gallery { columns: 2; column-gap: .6rem; }
  .gallery figure { margin-bottom: .6rem; border-radius: 10px; }
  .gallery figcaption { padding: 1.6rem .6rem .5rem; font-size: .78rem; }
  .gallery figcaption small { display: none; }
}
