/* =========================================================
   JSL Créa Paysage — feuille de style
   Registre : éditorial, sobre, haut de gamme
   ========================================================= */
:root {
  --ivory: #f6f2ea;
  --sand: #ede6d9;
  --stone: #d8cdb9;
  --line: rgba(29, 26, 22, .14);
  --forest: #1e3328;
  --forest-2: #284536;
  --moss: #6f8f5e;
  --sage: #a9c29a;
  --bronze: #a8814f;
  --bronze-2: #8c6a3f;
  --ink: #1d1a16;
  --muted: #5e564c;
  --wa: #25d366;
  --terra: #b4603c;
  --terra-2: #984a2b;
  --terra-light: #e8a07a;
  --moss-dark: #4c6b3b;
  --sage-bg: #e3e9d9;
  --sage-light: #bcd3a8;
  --leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 21C3 10 10 3 21 3c0 11-7 18-18 18z'/%3E%3C/svg%3E");
  --radius: 3px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", system-ui, sans-serif;
  /* compat. pages secondaires */
  --green: var(--forest);
  --green-dark: var(--forest-2);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 400 1.0625rem/1.7 var(--sans); color: var(--ink); background: var(--ivory); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* grain papier très léger */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img { max-width: 100%; display: block; }
a { color: inherit; }
strong { font-weight: 500; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0 0 .6em; letter-spacing: -.005em; }
h2 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
h2 em, h1 em { font-style: italic; color: var(--terra); }
h3 { font-size: 1.6rem; line-height: 1.15; }
p { margin: 0 0 1.1em; }
.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.hidden { display: none; }

/* Petits intitulés */
.kicker { display: flex; align-items: center; gap: .9rem; font: 500 .74rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--moss-dark); margin: 0 0 1.6rem; }
.kicker::before { content: ""; width: 38px; height: 1px; background: currentColor; opacity: .7; }
.kicker__n { font-family: var(--serif); font-style: italic; font-size: 1.15rem; letter-spacing: 0; text-transform: none; margin-right: -.2rem; }
.kicker--light { color: var(--sage-light); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; padding: 1.15rem 2rem; border-radius: var(--radius); font: 500 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease); }
.btn svg { width: 1.25em; height: 1.25em; }
.btn:hover { transform: translateY(-1px); }
.btn--light { background: var(--ivory); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--dark, .btn--primary { background: var(--forest); color: var(--ivory); }
.btn--dark:hover, .btn--primary:hover { background: var(--terra); }
.btn--terra { background: var(--terra); color: var(--ivory); }
.btn--terra:hover { background: var(--terra-2); }
.btn--line { border-color: currentColor; color: inherit; background: transparent; }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.btn--wa { background: var(--forest); color: var(--ivory); }
.btn--sm { padding: .85rem 1.3rem; font-size: .7rem; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .6rem; font: 500 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; padding: .6rem 0; border-bottom: 1px solid currentColor; }
.link-arrow span { transition: transform .35s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }
.link-arrow--light { color: var(--ivory); border-color: rgba(246, 242, 234, .5); }

/* =================== En-tête =================== */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--ivory); transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease); }
.header__inner { display: flex; align-items: center; gap: 2.4rem; height: 84px; transition: height .4s var(--ease); }
.header.is-solid { background: rgba(246, 242, 234, .94); backdrop-filter: blur(12px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header.is-solid .header__inner { height: 70px; }
.header.is-solid .header__cta { background: var(--terra); border-color: var(--terra); color: var(--ivory); }
.header.is-solid .header__cta:hover { background: var(--terra-2); border-color: var(--terra-2); }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 46px; height: auto; }
.brand__mark--dark, .header.is-solid .brand__mark--light { display: none; }
.header.is-solid .brand__mark--dark { display: block; }
.brand__name { font: 600 1.7rem/1 var(--serif); letter-spacing: .04em; display: flex; flex-direction: column; }
.brand__name small { font: 400 .6rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; margin-top: .3rem; opacity: .85; }
.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav a { position: relative; text-decoration: none; font: 400 .76rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: .4rem 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__phone { font-family: var(--serif) !important; font-size: 1.15rem !important; letter-spacing: .04em !important; text-transform: none !important; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 12px 8px; cursor: pointer; color: inherit; }
.burger span { display: block; height: 1px; background: currentColor; margin: 7px 0; transition: transform .35s var(--ease); }

/* =================== Accueil =================== */
.hero { position: relative; min-height: max(620px, 100svh); display: flex; flex-direction: column; justify-content: flex-end; color: var(--ivory); overflow: hidden; background: var(--forest); }
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 22, 17, .55) 0%, rgba(14, 22, 17, .15) 30%, rgba(14, 22, 17, .35) 60%, rgba(14, 22, 17, .85) 100%), linear-gradient(90deg, rgba(14, 22, 17, .55) 0%, transparent 65%); }
.hero__content { position: relative; z-index: 1; padding-bottom: 3.5rem; }
.hero__title { font-size: clamp(3.4rem, 9vw, 8.2rem); font-weight: 500; line-height: .95; letter-spacing: -.02em; margin-bottom: 2rem; }
.hero__title em { color: var(--sage); }
.hero__lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); max-width: 50ch; color: rgba(246, 242, 234, .86); margin-bottom: 2.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2.2rem; }
.hero__foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding-block: 1.6rem; border-top: 1px solid rgba(246, 242, 234, .22); font: 400 .72rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: rgba(246, 242, 234, .75); }
.hero__scroll { width: 22px; height: 36px; border: 1px solid rgba(246, 242, 234, .6); border-radius: 12px; position: relative; }
.hero__scroll span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: var(--ivory); animation: scrollDot 2s var(--ease) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
.hero__dots { display: flex; gap: .5rem; }
.hero__dots i { width: 34px; height: 1px; background: rgba(246, 242, 234, .3); position: relative; overflow: hidden; }
.hero__dots i::after { content: ""; position: absolute; inset: 0; background: var(--ivory); transform: scaleX(0); transform-origin: left; }
.hero__dots i.is-active::after { animation: dotFill 6.5s linear forwards; }
@keyframes dotFill { to { transform: scaleX(1); } }

/* =================== Sections =================== */
.section { padding-block: clamp(5rem, 11vw, 9rem); }
.section--sand { background: var(--sand); }
.section--sage { background: var(--sage-bg); }
.section--forest { background: var(--forest); color: var(--ivory); }
.section--forest h2 { color: var(--ivory); }
.section--forest h2 em { color: var(--terra-light); }
.section__head { max-width: 780px; margin-bottom: clamp(2.8rem, 6vw, 4.5rem); }
.section__head--split { max-width: none; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem 4rem; align-items: end; }
.section__sub { color: var(--muted); font-size: 1.08rem; margin: 0; }


/* Savoir-faire */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { position: relative; padding: 2.6rem 2.4rem 2.8rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .5s var(--ease); }
.service:hover { background: rgba(246, 242, 234, .7); }
.service__n { position: absolute; top: 2.4rem; right: 2.2rem; font: italic 500 1.05rem/1 var(--serif); color: var(--terra); }
.service__icon { width: 44px; height: 44px; margin-bottom: 2.2rem; }
.service__icon svg { width: 100%; height: 100%; fill: none; stroke: var(--moss-dark); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; transform-origin: 50% 90%; }
.service h3 { font-size: 1.75rem; margin-bottom: .7rem; }
.service p { color: var(--muted); margin: 0; font-size: .97rem; }


/* =================== Avant / après =================== */
.ba { --pos: 50%; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--stone); user-select: none; touch-action: pan-y; }
.ba img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { display: block; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: rgba(255, 255, 255, .95); z-index: 2; pointer-events: none; }
.ba__handle::after { content: "‹  ›"; white-space: pre; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: rgba(246, 242, 234, .92); backdrop-filter: blur(6px); color: var(--ink); font: 400 1.3rem/58px var(--serif); text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.ba__range:focus-visible ~ .ba__handle::after { outline: 1px solid var(--bronze); outline-offset: 4px; }
.ba__tag { position: absolute; top: 1.2rem; z-index: 1; font: 500 .68rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ink); background: rgba(246, 242, 234, .9); padding: .55rem .8rem; border-radius: 2px; pointer-events: none; }
.ba__tag--before { left: 1.2rem; }
.ba__tag--after { right: 1.2rem; background: var(--moss-dark); color: var(--ivory); }

.featured { margin: 0 0 clamp(4rem, 8vw, 6rem); }
.featured .ba { aspect-ratio: 2 / 1; box-shadow: 0 40px 80px -40px rgba(30, 51, 40, .55); }
.featured figcaption { display: grid; grid-template-columns: auto 1fr; gap: .2rem 2rem; align-items: baseline; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); }
.featured__cat { grid-row: span 2; font: 500 .7rem/1.6 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--terra); }
.featured figcaption strong { font: 500 1.7rem/1.2 var(--serif); color: var(--ink); }

/* Galerie */
.filters { display: flex; flex-wrap: wrap; gap: .4rem 2.2rem; margin-bottom: 2.6rem; border-bottom: 1px solid var(--line); }
.filter { position: relative; border: 0; background: none; padding: 0 0 1rem; color: var(--muted); font: 400 .76rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; transition: color .3s; }
.filter::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--terra); transform: scaleX(0); transition: transform .4s var(--ease); }
.filter:hover { color: var(--ink); }
.filter.is-active { color: var(--ink); }
.filter.is-active::after { transform: scaleX(1); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 3rem 1.6rem; }
.card { display: block; border: 0; padding: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.card.is-wide { grid-column: span 2; }
.card__media { position: relative; display: block; height: clamp(240px, 26vw, 360px); overflow: hidden; border-radius: var(--radius); background: var(--stone); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s var(--ease); }
.card__before { opacity: 0; }
.card:hover .card__media img, .card:focus-visible .card__media img { transform: scale(1.04); }
.card:hover .card__before, .card:focus-visible .card__before { opacity: 1; }
.card__chip { position: absolute; top: 1rem; left: 1rem; font: 500 .64rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; background: rgba(246, 242, 234, .92); color: var(--ink); padding: .5rem .7rem; border-radius: 2px; opacity: 0; transform: translateY(-6px); transition: .45s var(--ease); }
.card:hover .card__chip, .card:focus-visible .card__chip { opacity: 1; transform: none; }
.card__body { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 1.1rem; }
.card__title { font: 500 1.45rem/1.2 var(--serif); }
.card__tag { flex: none; font: 400 .66rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--moss-dark); }
.card.is-hidden { display: none; }
.card.is-entering { animation: cardIn .7s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } }
.gallery__more { margin-top: 3.5rem; text-align: center; color: var(--muted); font-family: var(--serif); font-size: 1.3rem; font-style: italic; }
.gallery__more a { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Visionneuse */
.lightbox { width: min(1180px, 100vw - 32px); max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; color: var(--ivory); }
.lightbox::backdrop { background: rgba(14, 20, 16, .94); backdrop-filter: blur(4px); }
.lightbox__fig { margin: 0; }
.lightbox .ba { width: fit-content; max-width: 100%; margin-inline: auto; }
.lightbox .ba__after { width: auto; height: auto; max-width: 100%; max-height: 76vh; }
.lightbox figcaption { margin-top: 1.4rem; text-align: center; color: rgba(246, 242, 234, .75); font-size: .98rem; }
.lightbox figcaption strong { font: 500 1.9rem/1.2 var(--serif); display: block; color: var(--ivory); margin-bottom: .3rem; }
.lightbox__close { position: absolute; top: -52px; right: 0; background: none; border: 0; color: var(--ivory); font: 300 2.4rem/1 var(--sans); cursor: pointer; }
.lightbox__nav { position: absolute; top: 38%; z-index: 5; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(246, 242, 234, .5); background: rgba(14, 20, 16, .35); color: var(--ivory); font-size: 1.2rem; cursor: pointer; transition: background .3s; }
.lightbox__nav:hover { background: var(--ivory); color: var(--ink); }
.lightbox__nav--prev { left: -78px; }
.lightbox__nav--next { right: -78px; }

/* =================== Entreprise =================== */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.about__media { position: relative; padding: 0 12% 14% 0; }
.about__main { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about__inset { position: absolute; right: 0; bottom: 0; width: 52%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 10px solid var(--sand); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
.about__text p { color: var(--muted); font-size: 1.06rem; }
.about__text strong { color: var(--ink); }
.checks { list-style: none; padding: 0; margin: 2rem 0 2.6rem; border-top: 1px solid var(--line); }
.checks li { padding: .95rem 0 .95rem 2.2rem; border-bottom: 1px solid var(--line); position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 1.3rem; width: .85rem; height: .85rem; background: var(--moss); -webkit-mask: var(--leaf) center / contain no-repeat; mask: var(--leaf) center / contain no-repeat; }

/* =================== Zone d'intervention =================== */
.zone { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem 5rem; align-items: start; }
.zone__head h2 { margin-bottom: .8rem; }
.towns { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 2rem; border-top: 1px solid var(--line); }
.towns li { position: relative; padding: .95rem 0 .95rem 1.5rem; border-bottom: 1px solid var(--line); font: 500 1.25rem/1.25 var(--serif); }
.towns li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: .7rem; height: .7rem; background: var(--moss); -webkit-mask: var(--leaf) center / contain no-repeat; mask: var(--leaf) center / contain no-repeat; }
.towns li.is-hq { color: var(--terra); }
.towns li.is-hq::after { content: "siège"; margin-left: .5rem; font: 400 .62rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); vertical-align: middle; }
.towns li.is-hq::before { background: var(--terra); }

/* =================== Contact =================== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
.contact__info h2 { margin-bottom: 2.2rem; }
.clist { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(246, 242, 234, .16); }
.clist__row { display: flex; align-items: center; gap: 1.3rem; padding: 1.25rem 0; border-bottom: 1px solid rgba(246, 242, 234, .16); text-decoration: none; transition: padding .4s var(--ease), color .3s; }
a.clist__row:hover { padding-left: .6rem; color: var(--terra-light); }
.clist__row svg { width: 24px; height: 24px; flex: none; color: var(--sage-light); }
.clist__row span { flex: 1; min-width: 0; font: 500 1.35rem/1.3 var(--serif); }
.clist__row small { display: block; font: 400 .66rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: rgba(246, 242, 234, .55); margin-bottom: .45rem; }
.clist__row span a { display: block; text-decoration: none; overflow-wrap: normal; }
.clist__row span a:hover { color: var(--terra-light); }
.clist__row i { font-style: normal; color: rgba(246, 242, 234, .45); transition: transform .4s var(--ease); }
a.clist__row:hover i { transform: translateX(4px); color: var(--terra-light); }
.clist__row--wa svg { color: var(--wa); }


.form { background: var(--ivory); color: var(--ink); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 3rem); }
.form h3 { font-size: 2.1rem; margin-bottom: .2rem; }
.form__intro { color: var(--muted); margin-bottom: 2rem; }
.form label { display: block; margin-bottom: 1.5rem; }
.form label > span { display: block; font: 400 .66rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: .5rem; padding: .7rem 0; border: 0; border-bottom: 1px solid var(--stone); border-radius: 0; background: transparent; font: 300 1.05rem var(--sans); color: var(--ink); transition: border-color .3s; }
.form select { cursor: pointer; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--forest); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.6rem; }
.form .btn { margin-top: .6rem; }
.form__note { font-size: .8rem; color: var(--muted); margin: 1rem 0 0; text-align: center; }

.map { margin-top: clamp(4rem, 8vw, 6rem); }
.map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); filter: grayscale(1) sepia(.18) contrast(.95) brightness(.95); }

/* =================== Pied de page =================== */
.footer { background: #15241c; color: rgba(246, 242, 234, .6); padding-top: clamp(3.5rem, 7vw, 5rem); font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(246, 242, 234, .1); }
.footer__brand img { width: 110px; height: auto; margin-bottom: 1.2rem; }
.footer__brand p { font: italic 500 1.4rem/1.3 var(--serif); color: var(--ivory); }
.footer h4 { font: 400 .66rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--terra-light); margin-bottom: 1.3rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .6rem; }
.footer a { text-decoration: none; transition: color .3s; }
.footer a:hover { color: var(--ivory); }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.6rem; font-size: .8rem; }
.footer__bottom p { margin: 0; }
.footer__bottom { padding-right: 84px; }
.footer address { font-style: normal; }
.footer__credit { opacity: .45; font-size: .72rem; transition: opacity .3s; }
.footer__credit:hover { opacity: .85; }

/* =================== Animations =================== */
/* Diaporama */
.hero__bg img { opacity: 0; transition: opacity 1.8s ease; transform: scale(1.03); }
.hero__bg img.is-active { opacity: 1; animation: kenburns 10s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.03); } to { transform: scale(1.12) translate(-1.2%, -.8%); } }

/* Titre mot par mot + feuille */
.hero__title .w { display: inline-block; opacity: 0; transform: translateY(.35em); animation: wordIn 1s var(--ease) forwards; animation-delay: calc(.2s + var(--d) * .12s); }
@keyframes wordIn { to { opacity: 1; transform: none; } }
.w--vie { position: relative; }
.leaf { position: absolute; left: -4%; bottom: -.2em; width: 108%; height: .42em; overflow: visible; }
.leaf path { fill: none; stroke: var(--sage); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.leaf__stem { stroke-dasharray: 130; stroke-dashoffset: 130; animation: draw 1.2s var(--ease) 1.1s forwards; }
.leaf__l, .leaf__r { fill: var(--sage) !important; fill-opacity: 0; transform-box: fill-box; transform-origin: 0% 100%; transform: scale(0) rotate(-25deg); animation: sprout .8s cubic-bezier(.3, 1.5, .5, 1) forwards; }
.leaf__l { animation-delay: 1.7s; }
.leaf__r { animation-delay: 1.95s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes sprout { to { transform: none; fill-opacity: .9; } }
.hero .kicker, .hero__lead, .hero__actions, .hero__foot { opacity: 0; animation: fadeUp 1s var(--ease) forwards; }
.hero .kicker { animation-delay: .1s; }
.hero__lead { animation-delay: .9s; }
.hero__actions { animation-delay: 1.1s; }
.hero__foot { animation-delay: 1.4s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Icônes au survol */
.service:hover .service__icon svg { animation: var(--anim) 1s var(--ease); }
.service__icon--pavage { --anim: tiles; }
.service__icon--cloture { --anim: rise; }
.service__icon--terrassement { --anim: dig; }
.service__icon--jardin { --anim: sway; }
.service__icon--maconnerie { --anim: stack; }
.service__icon--allees { --anim: slide; }
@keyframes tiles { 0%, 100% { transform: none; } 35% { transform: scale(.86) rotate(-6deg); } 65% { transform: scale(1.06) rotate(3deg); } }
@keyframes rise { 0% { transform: scaleY(1); } 30% { transform: scaleY(.3); } 70% { transform: scaleY(1.08); } 100% { transform: scaleY(1); } }
@keyframes dig { 0%, 100% { transform: none; } 30% { transform: rotate(-12deg) translateY(2px); } 60% { transform: rotate(8deg) translateY(-2px); } }
@keyframes sway { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(10deg); } 55% { transform: rotate(-8deg); } 80% { transform: rotate(3deg); } }
@keyframes stack { 0%, 100% { transform: none; } 35% { transform: translateY(-5px); } 60% { transform: translateY(1px) scaleY(.94); } }
@keyframes slide { 0%, 100% { transform: none; } 35% { transform: translateX(-4px); } 70% { transform: translateX(4px); } }

/* Démo du curseur */
.ba.is-demo .ba__handle::after { animation: handlePop .7s var(--ease); }
@keyframes handlePop { 50% { transform: translate(-50%, -50%) scale(1.12); } }

/* WhatsApp : pulsation discrète + bulle */
.fab-wa { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45); transition: transform .35s var(--ease); }
.fab-wa:hover { transform: scale(1.06); }
.fab-wa svg { width: 30px; height: 30px; animation: waWiggle 7s ease-in-out infinite; }
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--wa); animation: waPulse 3.5s var(--ease) infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .8; } 60%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes waWiggle { 0%, 90%, 100% { transform: rotate(0); } 93% { transform: rotate(-12deg); } 96% { transform: rotate(9deg); } }
.wa-bubble { position: fixed; right: 22px; bottom: 96px; z-index: 61; max-width: 250px; background: var(--ivory); color: var(--ink); border-radius: var(--radius); padding: 1rem 2.4rem 1rem 1.2rem; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .4); font-size: .92rem; line-height: 1.4; transform-origin: bottom right; animation: bubbleIn .6s var(--ease); border-left: 2px solid var(--wa); }
.wa-bubble[hidden] { display: none; }
.wa-bubble a { text-decoration: none; }
.wa-bubble strong { font: 500 1.2rem/1.3 var(--serif); }
.wa-bubble__close { position: absolute; top: 6px; right: 8px; border: 0; background: none; font: 300 1.3rem/1 var(--sans); color: var(--muted); cursor: pointer; padding: 4px; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }

/* Apparitions au défilement */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); }
.reveal-img.is-in { clip-path: inset(0 0 0 0); }
.services .reveal:nth-child(3n+2) { transition-delay: .1s; }
.services .reveal:nth-child(3n) { transition-delay: .2s; }
.about__inset.reveal-img { transition-delay: .35s; }

/* =================== Ornements végétaux =================== */
.has-deco { position: relative; overflow: hidden; }
.has-deco > .container { position: relative; z-index: 1; }
.deco { position: absolute; pointer-events: none; fill: none; stroke: currentColor; stroke-width: .9; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 3.8s var(--ease);
  transform: rotate(var(--r, 0deg)); transform-origin: 50% 100%; animation: decoSway 10s ease-in-out infinite alternate; }
.deco.is-in { stroke-dashoffset: 0; }
@keyframes decoSway { from { transform: rotate(calc(var(--r, 0deg) - 1.6deg)); } to { transform: rotate(calc(var(--r, 0deg) + 1.6deg)); } }
.deco--sf { width: 250px; height: 400px; left: -70px; bottom: -40px; --r: -22deg; color: var(--moss-dark); opacity: .32; }
.deco--real { width: 230px; height: 390px; right: -40px; bottom: -30px; --r: -18deg; color: var(--terra); opacity: .3; }
.about__media { isolation: isolate; }
.about__media .deco--about { width: 220px; height: 352px; left: -95px; top: -80px; --r: -32deg; color: var(--moss); opacity: .5; z-index: -1; }
.deco--contact { width: 330px; height: 560px; right: -70px; top: -120px; --r: 200deg; transform-origin: 50% 50%; color: var(--sage-light); opacity: .16; }
.footer { position: relative; }
.footer__trees { display: block; width: 100%; height: clamp(70px, 8vw, 120px); margin-top: calc(-1 * clamp(3.5rem, 7vw, 5rem)); margin-bottom: clamp(2rem, 4vw, 3rem); fill: none; stroke: var(--sage-light); stroke-width: 1; opacity: .22; }

/* =================== Responsive =================== */
@media (max-width: 1100px) {
  .nav { gap: 1.5rem; }
  .nav__phone { display: none; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
}
@media (max-width: 960px) {
  .services, .gallery { grid-template-columns: repeat(2, 1fr); }
  .about, .contact, .section__head--split, .zone { grid-template-columns: 1fr; }
  .header__cta { display: none; }
  .burger { display: block; }
  .nav { position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ivory); color: var(--ink); padding: .5rem 20px 1.5rem; box-shadow: 0 30px 40px -30px rgba(0,0,0,.3); transform: translateY(-130%); transition: transform .45s var(--ease); z-index: -1; }
  .nav a { padding: 1.2rem 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
  .nav a::after { display: none; }
  .nav__phone { display: block; }
  .nav.is-open { transform: none; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { width: calc(100% - 32px); }
  .header__inner { height: 70px; }
  .brand__name { font-size: 1.45rem; }
  .services, .gallery, .form__row { grid-template-columns: 1fr; }
  .towns { grid-template-columns: 1fr 1fr; column-gap: 1.2rem; }
  .towns li { font-size: 1.1rem; padding-left: 1.3rem; }
  .service { padding: 2rem 1.6rem; }
  .card.is-wide { grid-column: auto; }
  .gallery { gap: 2.4rem; }
  .card__media { height: 260px; }
  .hero__content { padding-bottom: 2.5rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .link-arrow { align-self: flex-start; }
  .hero__foot { justify-content: center; }
  .hero__foot > span { display: none; }
  .hero .kicker { letter-spacing: .2em; font-size: .66rem; }
  .hero .kicker::before { width: 22px; }
  .hero::after { background: linear-gradient(180deg, rgba(14, 22, 17, .5) 0%, rgba(14, 22, 17, .3) 25%, rgba(14, 22, 17, .6) 50%, rgba(14, 22, 17, .9) 100%); }
  .featured .ba { aspect-ratio: 4 / 3; }
  .featured figcaption { grid-template-columns: 1fr; }
  .featured__cat { grid-row: auto; }
  .ba__tag { top: .8rem; font-size: .6rem; padding: .45rem .6rem; }
  .ba__tag--before { left: .8rem; }
  .ba__tag--after { right: .8rem; }
  .about__media { padding: 0 8% 12% 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .map iframe { height: 300px; }
  .deco--sf { width: 160px; height: 256px; left: -60px; }
  .deco--real, .deco--contact { display: none; }
  .about__media .deco--about { width: 140px; height: 224px; left: -50px; top: -50px; }
  .filters { gap: .4rem 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-img { clip-path: none; }
  .fab-wa::before, .deco { animation: none !important; }
  .deco { stroke-dasharray: none; }
}
