/* ============ Michel Terrassements — couleurs du logo : vert profond, vert tendre, noir d'enrobé ============ */
:root {
  --ink: #0b0e0c;
  --asph: #121513;
  --panel: rgba(13, 17, 14, .92);
  --panel-2: rgba(255, 255, 255, .04);
  --green: #2e7d32;
  --green-d: #1b5e20;
  --lime: #8bc34a;
  --lime-2: #b8e46e;
  --text: #eef2ea;
  --muted: #a3ae9f;
  --line: rgba(255, 255, 255, .09);
  --r: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --pad: clamp(18px, 4vw, 56px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.is-loading { overflow: hidden; }
body { font-family: var(--font); color: var(--text); background: var(--asph); line-height: 1.6; overflow-x: hidden; font-size: 17px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--lime); color: #0b0e0c; }
:focus-visible { outline: 2px solid var(--lime-2); outline-offset: 3px; border-radius: 6px; }

/* ============ ÉCRAN DE CHARGEMENT ============ */
#loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; text-align: center;
  background: var(--noise), radial-gradient(120% 90% at 50% 40%, #1c211d 0%, #0d100e 60%, #070908 100%);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.15s var(--ease-io);
}
#loader::after { /* trait vert qui « balaie » l'écran à la sortie */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--lime-2), transparent);
  box-shadow: 0 0 30px 6px rgba(139, 195, 74, .55); opacity: 0; transition: opacity .3s;
}
html.is-loaded #loader { clip-path: inset(0 0 100% 0); pointer-events: none; }
html.is-loaded #loader::after { opacity: 1; }
.ld-inner { width: min(460px, 86vw); display: grid; justify-items: center; gap: 18px; }
.ld-logo { position: relative; width: clamp(150px, 34vw, 210px); aspect-ratio: 1; animation: ldPop 1.1s var(--ease) both; }
.ld-logo img { position: absolute; inset: 7%; width: 86%; border-radius: 50%; box-shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06); }
.ld-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ld-ring circle { fill: none; stroke: var(--lime); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 604; stroke-dashoffset: calc(604 - 604 * var(--p, 0)); filter: drop-shadow(0 0 6px rgba(139, 195, 74, .7)); }
.ld-name { font: 600 clamp(15px, 3.6vw, 19px)/1.2 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); animation: ldUp .9s .25s var(--ease) both; }
.ld-name span { color: #fff; font-weight: 800; }
.ld-road {
  position: relative; width: 100%; height: 30px; margin-top: 26px; border-radius: 4px;
  background: var(--noise), repeating-radial-gradient(circle at 30% 40%, #7d7262 0 1.5px, #6d6354 2px 3.5px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  animation: ldUp .9s .35s var(--ease) both;
}
.ld-fill {
  position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); border-radius: 4px 0 0 4px;
  background: var(--noise), linear-gradient(180deg, #2a2d30, #141618);
}
.ld-fill::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, #f3f3ee 0 16px, transparent 16px 30px); opacity: .85; }
.ld-paver { position: absolute; bottom: 4px; left: calc(var(--p, 0) * 100%); width: 74px; transform: translateX(-12px); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); }
.ld-beacon { animation: beacon .8s steps(2) infinite; }
.ld-steam { position: absolute; bottom: 18px; left: calc(var(--p, 0) * 100% - 14px); }
.ld-steam i { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: rgba(240, 240, 235, .5); filter: blur(4px); animation: steam 1.6s linear infinite; }
.ld-steam i:nth-child(2) { animation-delay: .55s; left: -10px; }
.ld-steam i:nth-child(3) { animation-delay: 1.1s; left: -20px; }
.ld-pct { font: 700 14px var(--display); letter-spacing: .2em; color: var(--lime-2); font-variant-numeric: tabular-nums; }
.ld-contact { display: grid; gap: 4px; margin-top: 6px; animation: ldUp .9s .5s var(--ease) both; }
.ld-contact a { text-decoration: none; }
.ld-contact a:first-child { font: 800 clamp(26px, 7vw, 34px)/1.1 var(--display); letter-spacing: .04em; color: #fff; }
.ld-contact a:last-child { font-size: 14px; color: var(--muted); }
@keyframes ldPop { from { opacity: 0; transform: scale(.7) rotate(-12deg); } }
@keyframes ldUp { from { opacity: 0; transform: translateY(18px); } }
@keyframes beacon { 50% { fill: #ffd54f; } }
@keyframes steam { from { transform: translate(0, 0) scale(.6); opacity: .8; } to { transform: translate(-8px, -34px) scale(1.8); opacity: 0; } }

/* ============ SCÈNE 3D EN FOND ============ */
#scene { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; display: block; }
.scene-fallback { display: none; position: fixed; inset: 0; z-index: 0; background: var(--noise), radial-gradient(120% 90% at 60% 30%, #2a2e2b, #121513 70%); }
html.no-webgl .scene-fallback { display: block; }
html.no-webgl #scene, html.no-webgl .hud { display: none; }
main, .foot { position: relative; z-index: 2; }

/* ============ EN-TÊTE ============ */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 18px;
  padding: 14px var(--pad); transition: background .4s, box-shadow .4s;
}
.top.scrolled { background: rgba(10, 13, 11, .95); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0, 0, 0, .35); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 4px 16px rgba(0, 0, 0, .4); transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.06); }
.brand span { display: grid; line-height: 1; }
.brand b { font: 800 24px var(--display); letter-spacing: .06em; text-transform: uppercase; }
.brand small { font: 600 12px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--lime-2); margin-top: 3px; }
.nav { display: flex; gap: 4px; }
.nav a { position: relative; padding: 8px 12px; text-decoration: none; font: 600 16px var(--display); letter-spacing: .08em; text-transform: uppercase; color: #dfe6da; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .08); cursor: pointer; position: relative; }
.burger i { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.burger i:nth-child(1) { top: 16px; } .burger i:nth-child(2) { top: 22px; } .burger i:nth-child(3) { top: 28px; }
.menu-open .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger i:nth-child(2) { opacity: 0; }
.menu-open .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============ BOUTONS ============ */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer;
  padding: 15px 26px; border-radius: 999px; text-decoration: none; font: 700 17px var(--display); letter-spacing: .08em; text-transform: uppercase;
  transform: translate(var(--mx), var(--my)); transition: transform .35s var(--ease), background .3s, box-shadow .3s, color .3s;
}
.btn span { white-space: nowrap; }
.btn svg { width: 19px; height: 19px; fill: currentColor; }
.btn-main { background: linear-gradient(135deg, var(--lime-2), var(--lime) 55%, #6fa83a); color: #0d1a07; box-shadow: 0 10px 30px rgba(139, 195, 74, .35), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-main:hover { box-shadow: 0 14px 40px rgba(139, 195, 74, .55), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-ghost { background: rgba(10, 14, 11, .55); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-call { padding: 11px 18px; background: var(--green); color: #fff; box-shadow: 0 6px 20px rgba(46, 125, 50, .45); }
.btn-call:hover { background: #369139; }

/* ============ ACCUEIL ============ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 120px var(--pad) clamp(90px, 13vh, 140px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 11, 9, .5) 0%, rgba(8, 11, 9, 0) 20%),
              radial-gradient(110% 70% at 0% 72%, rgba(8, 11, 9, .8) 0%, rgba(8, 11, 9, .5) 45%, rgba(8, 11, 9, 0) 78%);
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}
.hero-in { max-width: 880px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: rgba(10, 14, 11, .78); box-shadow: inset 0 0 0 1px var(--line); font: 600 15px var(--display); letter-spacing: .14em; text-transform: uppercase; color: #dbe6d4; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(139, 195, 74, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(139, 195, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(139, 195, 74, 0); } }
h1 { margin: 20px 0 18px; font: 800 clamp(48px, 9.2vw, 128px)/.9 var(--display); text-transform: uppercase; letter-spacing: -.005em; text-shadow: 0 6px 40px rgba(0, 0, 0, .45); }
h1 em { font-style: normal; display: block; background: linear-gradient(100deg, var(--lime-2), var(--lime) 40%, #e9f7d4 60%, var(--lime) 80%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s 2.4s ease-in-out infinite; }
h1 em .w > span { background: inherit; -webkit-background-clip: text; background-clip: text; }
@keyframes shine { 50% { background-position: 100% 0; } }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.split .w > span { display: inline-block; transform: translateY(105%) rotate(4deg); transition: transform 1.1s var(--ease); transition-delay: calc(.35s + var(--i) * .08s); }
html.is-loaded .split .w > span { transform: none; }
.lead { max-width: 640px; font-size: clamp(17px, 1.6vw, 20px); color: #d9e1d4; }
.hero .eyebrow, .hero .lead, .hero .cta, .hero-tags { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
html.is-loaded .hero .eyebrow { opacity: 1; transform: none; transition-delay: .2s; }
html.is-loaded .hero .lead { opacity: 1; transform: none; transition-delay: .75s; }
html.is-loaded .hero .cta { opacity: 1; transform: none; transition-delay: .9s; }
html.is-loaded .hero-tags { opacity: 1; transform: none; transition-delay: 1.05s; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; list-style: none; font: 600 15px var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hero-tags li::before { content: "✦"; color: var(--lime); margin-right: 8px; }
.scroll-hint { position: absolute; right: var(--pad); bottom: 34px; display: flex; align-items: center; gap: 12px; text-decoration: none; font: 600 14px var(--display); letter-spacing: .16em; text-transform: uppercase; color: #dfe6da; opacity: 0; transition: opacity 1s 1.4s; }
html.is-loaded .scroll-hint { opacity: .9; }
.mouse { width: 24px; height: 38px; border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); position: relative; }
.mouse i { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--lime); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 60% { transform: translateY(10px); opacity: 0; } 61% { transform: none; opacity: 0; } }

/* ============ FENÊTRES SUR LE CHANTIER ============ */
.window { position: relative; height: 78vh; min-height: 460px; display: flex; align-items: center; padding: 0 var(--pad); pointer-events: none; }
.step-tag { --y: 0px; display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: center; max-width: 560px; transform: translateY(var(--y)); text-shadow: 0 4px 30px rgba(0, 0, 0, .65), 0 1px 3px rgba(0, 0, 0, .6); }
.step-tag.right { margin-left: auto; }
.step-tag.center { margin-inline: auto; text-align: center; grid-template-columns: 1fr; justify-items: center; }
.step-tag b { grid-row: span 2; font: 800 clamp(86px, 14vw, 170px)/.8 var(--display); color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .85); }
.step-tag.center b { grid-row: auto; -webkit-text-stroke: 0; color: var(--lime); font-size: clamp(60px, 9vw, 100px); }
.step-tag span { font: 800 clamp(30px, 4.4vw, 54px)/.95 var(--display); text-transform: uppercase; }
.step-tag small { margin-top: 10px; font-size: 16px; color: #eef2ea; max-width: 360px; padding: 10px 14px; border-radius: 12px; background: rgba(8, 11, 9, .72); text-shadow: none; }
.step-tag.center small { font: 700 clamp(22px, 3vw, 30px) var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--lime-2); background: rgba(8, 11, 9, .6); max-width: none; }

/* ============ PANNEAUX ============ */
.panel {
  position: relative; width: min(1240px, 100% - 28px); margin: 0 auto; padding: clamp(40px, 6vw, 84px) clamp(20px, 5vw, 70px);
  border-radius: calc(var(--r) + 8px); background: var(--noise), var(--panel);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .07);
  scroll-margin-top: 70px;
}
.panel::before { content: ""; position: absolute; left: 40px; right: 40px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(184, 228, 110, .7), transparent); }
#zone { margin-top: 28px; }
.sec-head { max-width: 760px; margin-bottom: clamp(30px, 4vw, 52px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 15px var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--lime); }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
h2 { margin: 12px 0 14px; font: 800 clamp(38px, 5.6vw, 72px)/.95 var(--display); text-transform: uppercase; }
h2 span { color: var(--lime-2); display: block; }
.sec-head > p:last-child { color: var(--muted); font-size: 18px; }

/* révélations au défilement */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* ============ CARTES SAVOIR-FAIRE ============ */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; padding: 28px 24px 26px; border-radius: var(--r); text-decoration: none;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(139, 195, 74, .14), transparent 45%), linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  box-shadow: inset 0 0 0 1px var(--line);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), box-shadow .4s, opacity 1s var(--ease);
}
.card.in { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.card:hover { box-shadow: inset 0 0 0 1px rgba(139, 195, 74, .45), 0 24px 60px rgba(0, 0, 0, .45); }
.ico { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(140deg, var(--green), var(--green-d)); box-shadow: 0 10px 26px rgba(46, 125, 50, .4), inset 0 1px 0 rgba(255, 255, 255, .25); margin-bottom: 20px; transition: transform .6s var(--ease); }
.card:hover .ico { transform: translateY(-4px) rotate(-6deg); }
.ico svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font: 800 25px/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }
.card-hot { background: radial-gradient(400px circle at var(--mx) var(--my), rgba(184, 228, 110, .2), transparent 45%), linear-gradient(160deg, #1e3a20, #122414); box-shadow: inset 0 0 0 1px rgba(139, 195, 74, .4); }
.card-hot p { color: #c8d6c0; }
.badge { position: absolute; top: 18px; right: 18px; padding: 4px 10px; border-radius: 999px; background: var(--lime); color: #0d1a07; font: 700 12px var(--display); letter-spacing: .14em; text-transform: uppercase; }
.card-cta { display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(150deg, var(--lime-2), var(--lime) 50%, #5f9b2e); color: #0d1a07; }
.card-cta p { color: #1d3410; }
.card-cta .arrow { margin-top: 18px; font: 800 17px var(--display); letter-spacing: .08em; text-transform: uppercase; transition: transform .4s var(--ease); }
.card-cta:hover .arrow { transform: translateX(8px); }

/* ============ AVANT / APRÈS ============ */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ba { --pos: 50%; position: relative; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; user-select: none; touch-action: pan-y; cursor: ew-resize; box-shadow: 0 30px 70px rgba(0, 0, 0, .5), inset 0 0 0 1px var(--line); background: #222; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before .ba-img { filter: saturate(.85) contrast(1.02); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: linear-gradient(var(--lime-2), var(--lime)); box-shadow: 0 0 22px rgba(139, 195, 74, .9); }
.ba-knob {
  position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border: 0; border-radius: 50%; cursor: grab;
  background: radial-gradient(circle at 35% 30%, #c9ee8c, var(--lime) 60%, #5d932c); box-shadow: 0 8px 26px rgba(0, 0, 0, .5), 0 0 0 6px rgba(139, 195, 74, .25);
  display: grid; place-items: center; transition: transform .3s var(--ease), box-shadow .3s;
}
.ba:hover .ba-knob, .ba.drag .ba-knob { transform: scale(1.1); box-shadow: 0 8px 26px rgba(0, 0, 0, .5), 0 0 0 10px rgba(139, 195, 74, .22); }
.ba-knob svg { width: 26px; height: 26px; fill: none; stroke: #0d1a07; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ba-tag { position: absolute; top: 16px; padding: 6px 12px; border-radius: 999px; font: 700 13px var(--display); letter-spacing: .16em; text-transform: uppercase; backdrop-filter: blur(6px); transition: opacity .3s; }
.ba-tag.l { left: 16px; background: rgba(10, 13, 11, .65); }
.ba-tag.r { right: 16px; background: rgba(139, 195, 74, .92); color: #0d1a07; }
.ba figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 18px 16px; font: 700 18px var(--display); letter-spacing: .06em; text-transform: uppercase; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); pointer-events: none; }

/* ============ GALERIE ============ */
.gallery { columns: 3 280px; column-gap: 16px; }
.shot { position: relative; break-inside: avoid; margin-bottom: 16px; border-radius: 18px; overflow: hidden; cursor: zoom-in; background: #1a1e1b; clip-path: inset(0 100% 0 0 round 18px); transition: clip-path 1.25s var(--ease-io); }
.shot.in { clip-path: inset(0 0 0 0 round 18px); }
.shot::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: var(--lime-2); box-shadow: 0 0 24px 4px rgba(139, 195, 74, .7); transform: translateX(-10px); opacity: 0; }
.shot.in::after { animation: sweep 1.25s var(--ease-io); }
@keyframes sweep { 0% { opacity: 1; transform: translateX(0); left: 0; } 99% { opacity: 1; left: 100%; } 100% { opacity: 0; left: 100%; } }
.shot img { width: 100%; transform: scale(1.12); transition: transform 1.6s var(--ease), filter .6s; }
.shot.in img { transform: scale(1); }
.shot:hover img { transform: scale(1.06); filter: brightness(1.08); }
.shot figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(10, 13, 11, .72); backdrop-filter: blur(6px); font: 600 14px var(--display); letter-spacing: .08em; text-transform: uppercase; transform: translateY(12px); opacity: 0; transition: .45s var(--ease); }
.shot:hover figcaption, .shot:focus-within figcaption { transform: none; opacity: 1; }

/* ============ MÉTHODE ============ */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 30px; right: 30px; top: 30px; height: 2px; background: repeating-linear-gradient(90deg, rgba(184, 228, 110, .6) 0 14px, transparent 14px 26px); }
.steps li { position: relative; padding: 0 4px; }
.steps b { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; margin-bottom: 18px; background: var(--asph); box-shadow: inset 0 0 0 2px var(--lime); font: 800 26px var(--display); color: var(--lime-2); }
.steps h3 { font: 800 24px var(--display); text-transform: uppercase; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 16px; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-radius: var(--r); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.values div { padding: 24px 22px; display: grid; gap: 4px; background: rgba(255, 255, 255, .025); }
.values div + div { box-shadow: inset 1px 0 0 var(--line); }
.values b { font: 800 24px var(--display); text-transform: uppercase; color: var(--lime-2); letter-spacing: .04em; }
.values span { color: var(--muted); font-size: 15px; }

/* ============ ZONE ============ */
.zone-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.zone-wrap .sec-head { margin: 0; }
.towns { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; }
.towns li { padding: 9px 15px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); font: 600 16px var(--display); letter-spacing: .05em; transition: background .3s, transform .3s var(--ease); }
.towns li:hover { background: rgba(139, 195, 74, .16); transform: translateY(-2px); }
.towns li.home { background: var(--lime); color: #0d1a07; font-weight: 800; }
.towns li.more { background: none; box-shadow: inset 0 0 0 1px dashed; box-shadow: none; outline: 1px dashed rgba(184, 228, 110, .55); outline-offset: -1px; color: var(--lime-2); font-style: italic; }
.towns-note { grid-column: 2; color: var(--muted); }
.towns-note a { color: var(--lime-2); font-weight: 600; }

/* ============ CONTACT ============ */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 5vw, 70px); }
.contact-info > p { color: var(--muted); font-size: 18px; }
.big-phone { display: block; margin: 28px 0 22px; text-decoration: none; font: 800 clamp(44px, 6vw, 76px)/1 var(--display); letter-spacing: .02em; color: #fff; transition: color .3s, transform .35s var(--ease); transform: translate(var(--mx, 0), var(--my, 0)); }
.big-phone small { display: block; font: 700 14px var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--lime); margin-bottom: 6px; }
.big-phone:hover { color: var(--lime-2); }
.coords { list-style: none; display: grid; gap: 12px; }
.coords li { display: flex; align-items: center; gap: 12px; color: #dfe6da; }
.coords svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form { display: grid; gap: 14px; padding: clamp(20px, 3vw, 34px); border-radius: var(--r); background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font: 600 14px var(--display); letter-spacing: .12em; text-transform: uppercase; color: #cfd8ca; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 15px; border: 0; border-radius: 12px; font: 400 16px var(--font); color: #fff; letter-spacing: 0; text-transform: none;
  background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: box-shadow .3s, background .3s; resize: vertical;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--lime) 50%), linear-gradient(135deg, var(--lime) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.form select option { background: #1a1e1b; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; background-color: rgba(0, 0, 0, .5); box-shadow: inset 0 0 0 2px var(--lime); }
.form .invalid { box-shadow: inset 0 0 0 2px #ef5350; }
.form button { justify-self: start; margin-top: 4px; }
.form button[disabled] { opacity: .7; cursor: progress; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-msg { min-height: 1.4em; font-size: 15px; color: var(--muted); }
.form-msg.ok { color: var(--lime-2); }
.form-msg.err { color: #ff8a80; }

/* ============ PIED DE PAGE ============ */
.foot { margin-top: 28px; padding: 46px var(--pad) 110px; background: var(--noise), linear-gradient(180deg, rgba(8, 11, 9, .9), #080a09); }
.foot-in { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.foot-brand { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 15px; }
.foot-brand img { width: 74px; height: 74px; border-radius: 50%; }
.foot-brand b { color: #fff; font: 800 20px var(--display); text-transform: uppercase; letter-spacing: .04em; }
.foot-brand a { color: #dfe6da; text-decoration: none; }
.foot-slogan { font: 700 clamp(20px, 2.4vw, 28px) var(--display); text-transform: uppercase; color: var(--lime-2); max-width: 420px; line-height: 1.1; }
.sign { max-width: 1240px; margin: 34px auto 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: #7f8a7b; }
.sign a { color: #a3ae9f; text-decoration: none; }

/* ============ COMPTEUR DU CHANTIER + APPEL FLOTTANT ============ */
.hud {
  position: fixed; left: 16px; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 100px);
  padding: 9px 14px 9px 12px; border-radius: 999px; background: rgba(10, 13, 11, .92);
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px rgba(0, 0, 0, .4); font: 600 13px var(--display); letter-spacing: .1em; text-transform: uppercase; color: #dfe6da;
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .5s, transform .5s var(--ease);
}
html.is-loaded.has-scene .hud.show { opacity: 1; transform: none; }
.hud-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff9800; box-shadow: 0 0 10px #ff9800; animation: blink 1s steps(2) infinite; flex: none; }
.hud.done .hud-dot { background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: none; }
.hud-track { width: 70px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; flex: none; }
.hud-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), var(--lime-2)); transform-origin: left; transform: scaleX(0); transition: transform .3s; }
@keyframes blink { 50% { opacity: .3; } }
.fab-call { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 45; width: 60px; height: 60px; border-radius: 50%; place-items: center; background: linear-gradient(135deg, var(--lime-2), var(--lime)); box-shadow: 0 10px 30px rgba(139, 195, 74, .5); }
.fab-call svg { width: 26px; height: 26px; fill: #0d1a07; }
.fab-call::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(139, 195, 74, .6); animation: ping 2.2s infinite; }

/* ============ VISIONNEUSE ============ */
.lb { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(5, 7, 6, .94); backdrop-filter: blur(8px); opacity: 0; transition: opacity .4s; }
.lb.open { opacity: 1; }
.lb[hidden] { display: none; }
.lb figure { max-width: 92vw; max-height: 86vh; display: grid; gap: 10px; justify-items: center; }
.lb img { max-width: 92vw; max-height: 80vh; width: auto; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); transform: scale(.94); transition: transform .5s var(--ease); }
.lb.open img { transform: none; }
.lb figcaption { font: 600 16px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lb button { position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .1); border-radius: 50%; width: 52px; height: 52px; font-size: 30px; line-height: 1; transition: background .3s; }
.lb button:hover { background: var(--green); }
.lb-x { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; margin-top: -26px; }
.lb-next { right: 18px; top: 50%; margin-top: -26px; }

/* ============ ÉCRANS MOYENS ET MOBILES ============ */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .steps::before { display: none; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .values div:nth-child(3) { box-shadow: inset 0 1px 0 var(--line); }
  .values div:nth-child(4) { box-shadow: inset 1px 1px 0 var(--line); }
  .zone-wrap, .contact { grid-template-columns: 1fr; }
  .towns-note { grid-column: auto; }
}
@media (max-width: 1020px) {
  .nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 8px; background: rgba(8, 11, 9, .97); opacity: 0; pointer-events: none; transition: opacity .4s; }
  .nav a { font-size: 30px; padding: 10px 20px; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s var(--ease); }
  .menu-open .nav { opacity: 1; pointer-events: auto; }
  .menu-open .nav a { opacity: 1; transform: none; }
  .menu-open .nav a:nth-child(2) { transition-delay: .05s; } .menu-open .nav a:nth-child(3) { transition-delay: .1s; }
  .menu-open .nav a:nth-child(4) { transition-delay: .15s; } .menu-open .nav a:nth-child(5) { transition-delay: .2s; }
  .burger { display: block; }
}
@media (max-width: 900px) {
  .top-call span { display: none; }
  .top-call { padding: 12px; }
  .ba-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .fab-call { display: grid; }
  .scroll-hint { left: var(--pad); right: auto; bottom: 22px; font-size: 12px; }
  .hero { padding-bottom: 96px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .values div + div { box-shadow: inset 0 1px 0 var(--line); }
  .steps { grid-template-columns: 1fr; }
  .gallery { columns: 2 140px; column-gap: 10px; }
  .shot { margin-bottom: 10px; border-radius: 12px; }
  .shot figcaption { display: none; }
  .window { height: 62vh; min-height: 380px; }
  .step-tag { column-gap: 14px; }
  .step-tag small { font-size: 14px; }
  .hud { bottom: 22px; font-size: 11px; padding: 7px 12px 7px 10px; }
  .hud-track { width: 40px; }
  .brand small { display: none; }
  .brand img { width: 40px; height: 40px; }
  .scroll-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
