:root{--cream:#faf9f4;--ink:#12351f;--green:#176536;--dark:#103c23;--pale:#e7f1e1;--line:#d9e6d4;--muted:#65796a}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-height:100vh;background:linear-gradient(145deg,#faf9f4,#e4efdf);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
a{color:inherit;text-decoration:none}
.gallery-header{background:var(--dark);color:#fff;box-shadow:0 12px 30px rgba(16,60,35,.16)}
.gallery-nav{width:min(1120px,calc(100% - 40px));min-height:82px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:20px}
.gallery-brand{display:flex;align-items:center;gap:14px;font-size:13px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.gallery-brand img{width:58px;height:58px;object-fit:contain;filter:brightness(0) invert(1)}
.gallery-back{color:#dcebd4;font-size:14px;font-weight:800}
.gallery-back:hover{color:#fff}
.gallery-main{width:min(920px,calc(100% - 40px));margin:0 auto;padding:100px 0;text-align:center}
.gallery-kicker{display:inline-flex;align-items:center;gap:10px;color:#5e9d60;font-size:11px;font-weight:900;letter-spacing:.18em;text-transform:uppercase}
.gallery-kicker i{display:block;width:8px;height:8px;border-radius:50%;background:#72aa69}
.gallery-main h1{margin:20px 0 0;font-size:clamp(48px,7vw,82px);line-height:.95;letter-spacing:-.065em}
.gallery-main h1 em{font-style:normal;color:#4c9754}
.gallery-main p{max-width:560px;margin:28px auto 0;color:var(--muted);font-size:18px;line-height:1.75}
.gallery-placeholder{margin:48px auto 0;padding:54px 30px;border:1px dashed #a8c89e;border-radius:30px;background:rgba(255,255,255,.65);box-shadow:0 18px 45px rgba(33,78,39,.07)}
.gallery-placeholder strong{display:block;font-size:22px}
.gallery-placeholder span{display:block;margin-top:10px;color:var(--muted);line-height:1.6}
.gallery-button{display:inline-flex;margin-top:28px;padding:14px 20px;border-radius:999px;background:var(--green);color:#fff;font-size:13px;font-weight:900;box-shadow:0 12px 26px rgba(23,101,54,.18)}
.gallery-button:hover{background:#0e4d29;transform:translateY(-2px)}
@media(max-width:520px){.gallery-nav{width:min(100% - 28px,1120px);min-height:74px}.gallery-brand{gap:9px;font-size:10px}.gallery-brand img{width:48px;height:48px}.gallery-back{font-size:12px}.gallery-main{width:min(100% - 28px,920px);padding:70px 0}.gallery-placeholder{padding:42px 20px}}


.gallery-page-main{width:min(1120px,calc(100% - 40px));margin:0 auto;padding:88px 0 110px}.gallery-page-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:35px}.gallery-page-intro h1{max-width:650px;margin:18px 0 0}.gallery-page-intro p{max-width:360px;margin:0;color:var(--muted);line-height:1.7}.gallery-filter{display:flex;flex-wrap:wrap;gap:10px;margin-top:42px}.gallery-filter span{padding:10px 15px;border:1px solid #c4d9bd;border-radius:999px;color:var(--green);font-size:11px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.gallery-filter span:first-child{background:var(--dark);border-color:var(--dark);color:#fff}.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:22px}.gallery-tile{min-height:230px;border:1px dashed #b4cfaa;border-radius:24px;background:linear-gradient(145deg,#e7f1e1,#f8faf4);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px;color:#668069}.gallery-tile strong{color:var(--ink);font-size:17px}.gallery-tile span{margin-top:8px;font-size:13px;line-height:1.5}.gallery-social{margin-top:38px;padding:25px 28px;border-radius:24px;background:#e1efd9;display:flex;align-items:center;justify-content:space-between;gap:20px}.gallery-social p{margin:0;color:#668069;font-size:14px;line-height:1.5}.gallery-social a{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;padding:12px 18px;border-radius:999px;background:var(--green);color:#fff;font-size:12px;font-weight:900}.gallery-social a:hover{background:#0e4d29}@media(max-width:760px){.gallery-page-main{width:min(100% - 28px,1120px);padding:65px 0 80px}.gallery-page-intro{align-items:flex-start;flex-direction:column}.gallery-page-intro p{max-width:520px}.gallery-grid{grid-template-columns:1fr}.gallery-social{align-items:flex-start;flex-direction:column}}


/* Galerie photo et comparateur avant / après */
.before-after-section{
  display:grid;
  grid-template-columns:.72fr 1.28fr;
  gap:34px;
  align-items:center;
  margin-top:58px;
  padding:28px;
  border:1px solid #cbdcc3;
  border-radius:32px;
  background:linear-gradient(135deg,#123b24,#1f6840);
  color:#fff;
  box-shadow:0 24px 55px rgba(16,60,35,.16);
}
.before-after-copy{padding:18px 10px 18px 12px}
.before-after-copy .gallery-kicker{color:#c2e0b2}
.before-after-copy h2{margin:16px 0 0;font-size:clamp(34px,4.5vw,56px);line-height:.98;letter-spacing:-.06em}
.before-after-copy p{max-width:360px;margin:22px 0 0;color:#d0e3c9;line-height:1.7}
.swipe-hint{display:inline-block;margin-top:24px;color:#b9d8af;font-size:11px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.comparison{position:relative;isolation:isolate;overflow:hidden;min-height:420px;aspect-ratio:4 / 3;border:5px solid rgba(255,255,255,.9);border-radius:24px;background:#dcebd4;box-shadow:0 16px 35px rgba(0,0,0,.2)}
.comparison-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.comparison-before-wrap{position:absolute;inset:0 auto 0 0;z-index:2;width:var(--split);overflow:hidden}
.comparison-before-wrap .comparison-before{width:100%;max-width:none}
.comparison-divider{position:absolute;top:0;bottom:0;left:var(--split);z-index:4;width:3px;transform:translateX(-50%);background:#fff;box-shadow:0 0 0 1px rgba(16,60,35,.2),0 0 20px rgba(0,0,0,.22);pointer-events:none}
.comparison-divider span{position:absolute;top:50%;left:50%;display:grid;place-items:center;width:42px;height:42px;transform:translate(-50%,-50%);border:3px solid #fff;border-radius:50%;background:#1c6938;color:#fff;font-size:18px;box-shadow:0 8px 20px rgba(0,0,0,.22)}
.comparison-label{position:absolute;top:16px;z-index:5;padding:7px 11px;border:1px solid rgba(255,255,255,.5);border-radius:999px;background:rgba(10,45,25,.7);color:#fff;font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;backdrop-filter:blur(8px);pointer-events:none}
.comparison-label-before{left:16px}.comparison-label-after{right:16px}
.comparison-range{position:absolute;inset:0;z-index:6;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize}
.comparison-range::-webkit-slider-thumb{appearance:none;width:5px;height:100%;cursor:ew-resize}
.comparison-range::-moz-range-thumb{width:5px;height:100%;border:0;border-radius:0;cursor:ew-resize}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.gallery-filter{margin-top:38px}
.gallery-filter span{transition:transform .2s ease,background .2s ease,color .2s ease}
.gallery-filter span:not(:first-child):hover{transform:translateY(-2px);background:#e7f1e1}
.gallery-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:16px;margin-top:22px}
.gallery-card{grid-column:span 4;position:relative;overflow:hidden;min-height:0;padding:0;border:1px solid #cbdcc3;border-radius:24px;background:#fff;box-shadow:0 14px 34px rgba(33,78,39,.08);text-align:left;transition:transform .3s ease,box-shadow .3s ease}
.gallery-card-large{grid-column:span 7;grid-row:span 2}
.gallery-card img{display:block;width:100%;height:270px;object-fit:cover;transition:transform .65s cubic-bezier(.2,.75,.25,1),filter .35s ease}
.gallery-card-large img{height:556px}
.gallery-card figcaption{position:absolute;right:12px;bottom:12px;left:12px;padding:14px 16px;border:1px solid rgba(255,255,255,.38);border-radius:16px;background:rgba(10,48,27,.72);color:#fff;backdrop-filter:blur(10px)}
.gallery-card figcaption strong,.gallery-card figcaption span{display:block}
.gallery-card figcaption strong{font-size:17px;letter-spacing:-.02em}.gallery-card figcaption span{margin-top:4px;color:#d5e8cf;font-size:11px;line-height:1.4}
.gallery-card:hover{transform:translateY(-5px);box-shadow:0 22px 45px rgba(33,78,39,.15)}
.gallery-card:hover img{transform:scale(1.045);filter:saturate(1.08)}
@media(max-width:820px){
  .before-after-section{grid-template-columns:1fr;padding:20px}
  .before-after-copy{padding:8px 8px 0}
  .comparison{min-height:0}
  .gallery-card,.gallery-card-large{grid-column:span 6;grid-row:auto}
  .gallery-card img,.gallery-card-large img{height:330px}
}
@media(max-width:560px){
  .before-after-section{margin-top:40px;border-radius:25px}
  .before-after-copy h2{font-size:40px}
  .comparison{aspect-ratio:3 / 4;border-radius:19px}
  .gallery-grid{grid-template-columns:1fr}
  .gallery-card,.gallery-card-large{grid-column:span 1}
  .gallery-card img,.gallery-card-large img{height:360px}
}
@media(prefers-reduced-motion:reduce){.gallery-card,.gallery-card img,.gallery-filter span{transition:none}}


/* V3 - galerie visuelle, sans légendes sous les photos */
.gallery-filter,.gallery-social{display:none}
.gallery-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:48px;
}
.gallery-card,.gallery-card-large{
  grid-column:auto;
  grid-row:auto;
  display:block;
  overflow:hidden;
  min-height:0;
  padding:0;
  border:1px solid #cbdcc3;
  border-radius:24px;
  background:#dcebd4;
  box-shadow:0 14px 34px rgba(33,78,39,.08);
  transition:transform .3s ease,box-shadow .3s ease;
}
.gallery-card img,.gallery-card-large img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:4 / 5;
  object-fit:cover;
  transition:transform .7s cubic-bezier(.2,.75,.25,1),filter .35s ease;
}
.gallery-card figcaption{display:none}
.gallery-card:hover{transform:translateY(-5px);box-shadow:0 22px 45px rgba(33,78,39,.15)}
.gallery-card:hover img{transform:scale(1.045);filter:saturate(1.08)}
@media(max-width:820px){
  .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .gallery-card img,.gallery-card-large img{height:auto;aspect-ratio:4 / 5}
}
@media(max-width:560px){
  .gallery-grid{grid-template-columns:1fr;gap:14px;margin-top:38px}
  .gallery-card img,.gallery-card-large img{aspect-ratio:4 / 5}
}
@media(prefers-reduced-motion:reduce){.gallery-card,.gallery-card img{transition:none}}


/* Comparateurs multiples */
.before-after-section + .before-after-section{margin-top:22px}


/* Informations légales */
.legal-footer{padding:26px 0 38px;border-top:1px solid rgba(50,90,55,.16);color:#647465;font-size:12px}
.legal-footer-inner{display:flex;align-items:center;justify-content:space-between;gap:20px}
.legal-footer nav,.footer-legal{display:flex;flex-wrap:wrap;gap:18px}
.legal-footer a,.footer-legal a{color:inherit;text-decoration:none}
.legal-footer a:hover,.footer-legal a:hover{text-decoration:underline;color:#1c6938}
.footer-legal{margin-top:10px;justify-content:flex-end}
@media(max-width:680px){.legal-footer-inner{align-items:flex-start;flex-direction:column}.footer-legal{justify-content:flex-start}}
