/* =========================================================
   Atelier Éco Expert — style
   DA : noir anthracite + vert lime ÉCO, interface "diagnostic"
   ========================================================= */
:root {
  --bg: #070908;
  --bg-2: #0c100e;
  --bg-3: #121815;
  --line: rgba(220, 255, 210, .09);
  --line-2: rgba(220, 255, 210, .16);
  --text: #eef3ec;
  --muted: #8e9a91;
  --green: #7bd93a;
  --green-2: #3fae2a;
  --green-glow: rgba(123, 217, 58, .45);
  --grad: linear-gradient(120deg, #3fae2a 0%, #7bd93a 55%, #c4f56a 100%);
  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
#smooth { overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--green); color: #071004; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(90px, 14vw, 180px) 0; position: relative; }
.g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.label { color: var(--green); margin: 0 0 22px; }
.title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(38px, 7vw, 104px);
  line-height: .98;
  letter-spacing: -.035em;
  margin: 0;
  text-transform: uppercase;
}
.section__head { margin-bottom: clamp(48px, 7vw, 90px); }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section__sub { color: var(--muted); max-width: 420px; margin: 22px 0 0; }

/* ---------- Grain + feuille ---------- */
/* grain statique (l'ancien grain animé forçait un rendu plein écran à chaque image) */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; 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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  transform: translateZ(0);
}
/* les animations en boucle se mettent en pause quand leur section est hors écran (classe posée en JS) */
.is-off, .is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }
.leaf-mark svg { width: 100%; height: 100%; display: block; }
.leaf-mark path:first-child { fill: var(--green); }
.leaf-mark path:last-child { fill: var(--green-2); }

/* ---------- Préchargeur ---------- */
.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--bg); }
.loader__grid {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 70%);
}
.loader__box { position: relative; width: min(420px, calc(100vw - 48px)); z-index: 2; }
.loader__logo { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: .04em; margin-bottom: 28px; }
.loader__logo .leaf-mark { width: 34px; height: 28px; filter: drop-shadow(0 0 12px var(--green-glow)); }
.loader__log { list-style: none; margin: 0 0 22px; padding: 0; min-height: 132px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.loader__log li { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.loader__log li b { color: var(--green); font-weight: 500; }
.loader__bar { height: 2px; background: var(--line); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 18px var(--green); }
.loader__meta { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.loader__meta span:last-child { color: var(--green); }
.loader__curtain { position: absolute; left: 0; right: 0; height: 50%; background: var(--bg); z-index: 1; }
.loader__curtain--top { top: 0; }
.loader__curtain--bottom { bottom: 0; }

/* ---------- Curseur ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor__dot { width: 6px; height: 6px; background: var(--green); }
.cursor__ring {
  width: 38px; height: 38px; border: 1px solid rgba(123, 217, 58, .55);
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), background .35s, border-color .35s;
}
.cursor__label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #071004; opacity: 0; transition: opacity .2s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; background: rgba(123, 217, 58, .12); border-color: var(--green); }
.cursor.is-label .cursor__ring { width: 92px; height: 92px; background: var(--green); border-color: var(--green); }
.cursor.is-label .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Boutons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 28px; border-radius: 100px; overflow: hidden;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  transition: color .4s var(--ease), border-color .4s, box-shadow .4s;
  isolation: isolate;
}
.btn span, .btn i { position: relative; z-index: 2; font-style: normal; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--green { background: var(--green); color: #071004; box-shadow: 0 0 0 0 var(--green-glow); }
.btn--green::before { background: #fff; }
.btn--green:hover { box-shadow: 0 10px 40px -8px var(--green-glow); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover { color: var(--bg); }
.btn--sm { padding: 11px 18px; font-size: 12px; }
.btn__arrow { transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--gutter);
  transition: background .4s, backdrop-filter .4s, padding .4s, border-color .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(7, 9, 8, .9); padding-top: 12px; padding-bottom: 12px; border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand .leaf-mark { width: 30px; height: 24px; }
.brand__txt { font-family: var(--f-display); font-weight: 800; font-size: 17px; line-height: 1; letter-spacing: .03em; }
.brand__txt small { display: block; font-family: var(--f-body); font-weight: 500; font-size: 11px; letter-spacing: .04em; color: var(--muted); margin-bottom: 3px; }
.brand__txt b { color: var(--green); }
.nav__links { display: flex; gap: 30px; }
.nav__links a { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.nav__links a:hover { color: var(--text); }
.nav__status { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
/* pulsation : anneau en transform/opacity (au lieu d'un box-shadow animé qui redessine) */
.pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }

/* ---------- Mode léger (tactile) : on retire ce qui coûte sans rien apporter au doigt ---------- */
.lite .grain { display: none; }
.lite .card__glow { display: none; }
.lite .hud__scan { display: none; }
.lite .reviews__rail { mask-image: none; }
.is-closed .pulse { background: #e2563b; }
.is-closed .pulse::after { display: none; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 0 var(--gutter);
  clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path .8s var(--ease); visibility: hidden;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu nav a { font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 10vw, 60px); text-transform: uppercase; letter-spacing: -.03em; line-height: 1.15; }
.menu__tel { font-family: var(--f-mono); color: var(--green); font-size: 18px; }

.nav .btn--sm, .nav__status { white-space: nowrap; }
@media (max-width: 1240px) { .nav__status { display: none; } }
@media (max-width: 1020px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .nav .btn--sm { display: none; }
}

/* ---------- HERO ---------- */
.hero { position: relative; height: 100vh; height: 100svh; }
.hero__stage { position: relative; height: 100%; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #102016 0%, var(--bg) 60%); }
.hero__floor {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 70%; overflow: hidden;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 45%, #000 70%, transparent 100%);
  opacity: .55;
}
/* la grille défile par transform (calque GPU) au lieu de background-position (repaint) */
.hero__floor::before {
  content: ""; position: absolute; left: 0; right: 0; top: -70px; bottom: 0;
  background-image: linear-gradient(rgba(123, 217, 58, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(123, 217, 58, .22) 1px, transparent 1px);
  background-size: 70px 70px;
  animation: floor 2.4s linear infinite; will-change: transform;
}
@keyframes floor { to { transform: translate3d(0, 70px, 0); } }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }

.hud { position: absolute; inset: clamp(76px, 10vh, 100px) var(--gutter) clamp(20px, 4vh, 36px); z-index: 3; pointer-events: none; color: var(--muted); }
.hud__corner { position: absolute; width: 22px; height: 22px; border-color: var(--green); border-style: solid; border-width: 0; opacity: .8; }
.hud__corner--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hud__corner--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hud__corner--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hud__corner--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.hud__tl, .hud__tr, .hud__bl, .hud__br { position: absolute; font-size: 11px; }
.hud__tl { top: 16px; left: 34px; }
.hud__tr { top: 16px; right: 34px; }
.hud__bl { bottom: 16px; left: 34px; display: flex; gap: 22px; }
.hud__br { bottom: 16px; right: 34px; display: flex; align-items: center; gap: 12px; }
.hud__tag { display: inline-block; padding: 2px 7px; border: 1px solid var(--green); color: var(--green); margin-right: 8px; font-size: 10px; }
.gauge { display: flex; flex-direction: column; gap: 2px; }
.gauge span { font-size: 9px; opacity: .7; }
.gauge b { color: var(--text); font-weight: 500; font-size: 13px; }
.scroll-line { width: 1px; height: 38px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-line::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--green); animation: scrolldown 1.6s var(--ease) infinite; }
@keyframes scrolldown { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
.hud__scan { position: absolute; left: 0; right: 0; height: 120px; top: 0; background: linear-gradient(to bottom, transparent, rgba(123, 217, 58, .07), transparent); border-bottom: 1px solid rgba(123, 217, 58, .25); animation: scan 5s linear infinite; will-change: transform; }
@keyframes scan { from { transform: translateY(-120px); } to { transform: translateY(85vh); } }

.hero__content {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: clamp(90px, 15vh, 150px);
  padding: 0 calc(var(--gutter) + 34px);
  display: flex; flex-direction: column; align-items: flex-start;
  pointer-events: none;
}
.hero__content a { pointer-events: auto; }
.eyebrow { color: var(--muted); margin: 0 0 18px; }
.hero__title { margin: 0 0 28px; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: -.035em; line-height: 1; font-size: clamp(34px, 4.6vw, 72px); }
.hero__title .line { display: inline-block; overflow: hidden; padding-bottom: .06em; margin-right: .28em; vertical-align: top; }
@media (max-width: 700px) { .hero__title .line { display: block; margin-right: 0; } }
.hero__title .word { display: inline-block; }
.hero__title .word--green { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__portal { position: absolute; inset: 0; z-index: 6; clip-path: inset(50% 50% 50% 50% round 24px); pointer-events: none; will-change: clip-path; }
.hero__portal img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); }
.hero__portal-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 9, 8, .92) 0%, rgba(7, 9, 8, .25) 55%, rgba(7, 9, 8, .45) 100%); }
.hero__portal-txt { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(40px, 10vh, 100px); max-width: 1100px; }
.hero__portal-txt p { color: var(--green); margin: 0 0 16px; }
.hero__portal-txt h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 4.6vw, 70px); line-height: 1.04; letter-spacing: -.03em; margin: 0; }
.hero__portal-txt em { font-style: normal; color: var(--green); }

@media (max-width: 700px) {
  .hud__tr, .hud__bl .gauge:nth-child(2) { display: none; }
  .hud__tl { left: 22px; font-size: 10px; }
  .hud__bl { left: 22px; }
  .hud__br { right: 22px; }
  .hero__content { padding: 0 calc(var(--gutter) + 6px); bottom: 110px; }
  .eyebrow { font-size: 10px; }
}

/* ---------- Bandeau défilant ---------- */
.marquee { position: relative; z-index: 5; overflow: hidden; border-block: 1px solid var(--line); background: var(--green); color: #071004; transform: rotate(-1.5deg) scale(1.03); margin: 50px 0 0; }
.marquee__track { display: flex; width: max-content; gap: 34px; padding: 18px 0; animation: marquee 30s linear infinite; will-change: transform; }
.marquee span { font-family: var(--f-display); font-weight: 800; font-size: clamp(20px, 3vw, 36px); text-transform: uppercase; letter-spacing: -.02em; white-space: nowrap; }
.marquee i { font-style: normal; font-size: 22px; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro ---------- */
.intro__text { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 3.6vw, 52px); line-height: 1.2; letter-spacing: -.02em; margin: 0; max-width: 1180px; }
.intro__text .w { display: inline-block; }
.split-chars .wd { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-chars .ch { display: inline-block; }
/* le morceau en vert (.g) est animé d'un bloc : on l'autorise quand même à passer à la ligne */
.split-chars .wd:has(> .g) { white-space: normal; max-width: 100%; }
.intro__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.intro__grid .intro__text { font-size: clamp(24px, 3vw, 44px); }
.intro__media { position: relative; padding: 0 0 18% 12%; }
.intro__img { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.intro__img img { width: 100%; height: 100%; object-fit: cover; }
.intro__img--main { position: relative; aspect-ratio: 4 / 3; }
.intro__img--main figcaption { position: absolute; left: 14px; bottom: 12px; padding: 6px 10px; border-radius: 100px; background: rgba(7, 9, 8, .82); font-size: 10px; }
.intro__img--small { position: absolute; left: 0; bottom: 0; width: 34%; aspect-ratio: 3 / 4; box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .85); border-color: rgba(123, 217, 58, .35); }
@media (max-width: 960px) { .intro__grid { grid-template-columns: 1fr; } .intro__media { max-width: 620px; } }

/* ---------- Bande photo pleine largeur ---------- */
.band { position: relative; padding: 0 var(--gutter); }
.band__frame { position: relative; height: clamp(380px, 78vh, 820px); border-radius: var(--radius); overflow: hidden; }
.band__frame img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; object-position: 50% 45%; }
.band__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 9, 8, .9) 0%, rgba(7, 9, 8, .2) 50%, rgba(7, 9, 8, .35) 100%); }
.band__txt { position: absolute; left: 0; right: 0; bottom: clamp(28px, 6vh, 70px); }
.band__txt .mono { color: var(--green); margin: 0 0 14px; }
.band__title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: -.035em; line-height: .98; font-size: clamp(32px, 5.6vw, 88px); margin: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(60px, 9vw, 120px); border-top: 1px solid var(--line); }
.stat { padding: 30px 24px 0 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat + .stat { padding-left: 24px; }
.stat b { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(42px, 6vw, 86px); line-height: 1; letter-spacing: -.04em; }
.stat b small { font-size: .45em; color: var(--green); margin-left: 4px; vertical-align: top; }
.stat > span { display: block; margin-top: 12px; color: var(--muted); font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 26px 12px 26px 0 !important; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 16px !important; }
}

/* ---------- Services ---------- */
.services { background: linear-gradient(to bottom, var(--bg), var(--bg-2)); padding-bottom: clamp(50px, 7vw, 90px); }
.services + .diag { padding-top: clamp(50px, 7vw, 90px); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1200px; }
.card {
  position: relative; padding: 34px 30px 30px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01));
  border: 1px solid var(--line); transform-style: preserve-3d;
  min-height: 460px; display: flex; flex-direction: column;
}
.card--featured { border-color: rgba(123, 217, 58, .35); background: linear-gradient(160deg, rgba(123, 217, 58, .12), rgba(255, 255, 255, .01)); }
.card__glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(123, 217, 58, .2), transparent 45%); }
.card:hover .card__glow { opacity: 1; }
/* banderole de vitrine affichée en entier (l'image donne sa propre hauteur) */
.card__photo { position: relative; margin: -34px -30px 26px; overflow: hidden; border-bottom: 1px solid var(--line); background: #2c2d30; }
.card__photo img { display: block; width: 100%; height: auto; transform-origin: center; transition: transform .9s var(--ease); }
.card__photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -18px 30px -18px rgba(12, 16, 14, .9); pointer-events: none; }
.card:hover .card__photo img { transform: scale(1.06); }
.card__top { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 22px; }
.card__top span:first-child { color: var(--green); }
.card__icon { width: 46px; height: 46px; margin-bottom: 18px !important; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 30px; transform: translateZ(40px); filter: drop-shadow(0 0 14px rgba(123, 217, 58, .5)); }
.card h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.02em; transform: translateZ(30px); }
.card p { color: var(--muted); margin: 0 0 26px; transform: translateZ(20px); }
.card__list { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 10px; }
.card__list li { padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 100px; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; } .card { min-height: 0; } }

/* ---------- Diagnostic ---------- */
.diag { background: var(--bg-2); }
.diag__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: end; }
.diag__head .title { font-size: clamp(36px, 4.4vw, 68px); overflow-wrap: break-word; }
.diag__head > div { min-width: 0; }
.diag__photo { position: relative; margin: 0; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.diag__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 52%; }
.diag__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(123, 217, 58, .14), transparent 50%), linear-gradient(to top, rgba(7, 9, 8, .6), transparent 55%); pointer-events: none; }
.diag__photo figcaption { position: absolute; z-index: 1; left: 14px; bottom: 12px; padding: 6px 10px; border-radius: 100px; background: rgba(7, 9, 8, .82); font-size: 10px; }
@media (max-width: 960px) { .diag__head { grid-template-columns: 1fr; } }
.diag__wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.diag__screen {
  position: relative; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%, rgba(123, 217, 58, .08), transparent 65%), var(--bg);
  aspect-ratio: 16 / 9; min-width: 0;
}
@media (max-width: 700px) { .diag__screen { aspect-ratio: 4 / 3; } .diag__car { left: 2%; right: 2%; } }
.diag__gridbg { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 32px 32px; }
.diag__sweep { position: absolute; top: 0; bottom: 0; width: 30%; left: 0; background: linear-gradient(90deg, transparent, rgba(123, 217, 58, .12), transparent); border-right: 1px solid rgba(123, 217, 58, .5); animation: sweep 4s linear infinite; will-change: transform; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(334%); } }
.diag__car { position: absolute; left: 5%; right: 5%; top: 50%; transform: translateY(-46%); aspect-ratio: 1000 / 400; }
.car { display: block; width: 100%; height: 100%; overflow: visible; }
.car path, .car circle { fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.car__body { filter: drop-shadow(0 0 8px rgba(123, 217, 58, .6)); }
.car__win, .car__wheel--in { stroke-opacity: .55; }
.car__ground { stroke: var(--line-2) !important; stroke-dasharray: 6 8; }
.car .spin { transform-box: fill-box; transform-origin: center; animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hot { position: absolute; left: var(--x); top: var(--y); width: 34px; height: 34px; margin: -17px 0 0 -17px; display: grid; place-items: center; z-index: 3; }
.hot i { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--green); transition: transform .3s var(--ease); }
.hot i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
.hot::before { content: ""; position: absolute; inset: 0; border: 1px solid rgba(123, 217, 58, .5); border-radius: 50%; transform: scale(.4); opacity: 0; transition: transform .4s var(--ease), opacity .4s; }
.hot:hover::before, .hot.is-active::before { transform: scale(1); opacity: 1; }
.hot.is-active i { transform: scale(1.3); background: #fff; }
.diag__hud { position: absolute; right: 18px; top: 16px; display: flex; gap: 10px; color: var(--muted); font-size: 10px; }
.diag__hud span:last-child { color: var(--green); }

.diag__panel { border-radius: var(--radius); border: 1px solid var(--line); padding: 30px; background: linear-gradient(160deg, rgba(255, 255, 255, .04), transparent); display: flex; flex-direction: column; }
.diag__code { color: var(--green); margin: 0 0 18px; }
.diag__panel h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2.2vw, 32px); margin: 0 0 14px; line-height: 1.1; letter-spacing: -.02em; }
.diag__panel > p:not(.mono) { color: var(--muted); margin: 0 0 24px; }
.diag__meter { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-bottom: 22px; }
.diag__meter span { display: block; height: 100%; width: 100%; background: var(--grad); transition: width .8s var(--ease); }
.diag__checks { list-style: none; margin: auto 0 0; padding: 0; font-size: 11px; }
.diag__checks li { padding: 10px 0; border-top: 1px dashed var(--line); color: var(--muted); display: flex; gap: 10px; }
.diag__checks li::before { content: "✓"; color: var(--green); }
@media (max-width: 960px) { .diag__wrap { grid-template-columns: 1fr; } }

/* ---------- Galerie horizontale ---------- */
.gallery { position: relative; background: var(--bg); }
.gallery__pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 90px 0 40px; }
.gallery__head { margin-bottom: 4vh; }
.gallery__head .title { font-size: clamp(34px, 5vw, 76px); }
.gallery__head .label { margin-bottom: 14px; }
.gallery__track { display: flex; gap: 2vw; padding: 0 var(--gutter); width: max-content; align-items: center; will-change: transform; }
.shot { position: relative; margin: 0; flex: 0 0 auto; width: clamp(280px, 40vw, 620px); height: 46vh; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.shot--tall { width: clamp(240px, 28vw, 420px); height: 54vh; }
.shot img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
/* voile sombre en opacité (au lieu d'un filtre grayscale recalculé pendant le défilement) */
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 9, 8, .55), rgba(7, 9, 8, .15)); transition: opacity .6s; pointer-events: none; }
.shot:hover::after { opacity: 0; }
.shot--end::after { display: none; }
.shot figcaption { position: absolute; z-index: 1; left: 16px; bottom: 14px; padding: 6px 10px; border-radius: 100px; background: rgba(7, 9, 8, .82); font-size: 10px; }
.shot--end { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; padding: 40px; background: var(--bg-3); width: clamp(260px, 30vw, 420px); }
.shot--end p { color: var(--green); margin: 0; }
.gallery__progress { margin: 4vh var(--gutter) 0; height: 2px; background: var(--line); }
.gallery__progress span { display: block; height: 100%; width: 0; background: var(--grad); }

@media (max-width: 760px) {
  .gallery__pin { height: auto; padding: 90px 0; }
  .gallery__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .gallery__track::-webkit-scrollbar { display: none; }
  .shot, .shot--tall { width: 78vw; height: 58vh; scroll-snap-align: center; }
  .shot--end { width: 78vw; }
  .gallery__progress { display: none; }
}

/* ---------- Passion ---------- */
.passion__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
/* Cadres aux proportions des photos (equipe = carrée, equipe-enfants = 2048×1733) pour ne couper personne */
.passion__media { position: relative; aspect-ratio: 1 / .95; }
.passion__img { position: absolute; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.passion__img img { width: 100%; height: 100%; object-fit: cover; }
.passion__img--a { width: 58%; aspect-ratio: 1 / 1; left: 0; top: 0; }
.passion__img--b { width: 64%; aspect-ratio: 2048 / 1733; right: 0; bottom: 0; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
.passion__txt .title, .contact .title { font-size: clamp(38px, 5.8vw, 92px); }
.passion__txt p:not(.label) { color: var(--muted); font-size: 17px; margin: 28px 0; max-width: 520px; }
.passion__list { list-style: none; padding: 0; margin: 0; }
.passion__list li { padding: 14px 0; border-top: 1px solid var(--line); }
.passion__list li span { color: var(--green); margin-right: 8px; }
@media (max-width: 960px) { .passion__grid { grid-template-columns: 1fr; } .passion__media { max-width: 620px; } }

/* ---------- Avis ---------- */
.reviews { background: var(--bg-2); overflow: hidden; }
.reviews__rail { margin: 0 calc(var(--gutter) * -1); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.reviews__track { display: flex; gap: 18px; width: max-content; animation: marquee 50s linear infinite; padding: 0 var(--gutter); will-change: transform; }
.reviews__rail:hover .reviews__track { animation-play-state: paused; }
.review { margin: 0; width: clamp(280px, 30vw, 420px); padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.review p { margin: 0; font-size: 18px; line-height: 1.45; }
.review footer { color: var(--green); font-size: 11px; }
.review footer::before { content: "★★★★★  "; letter-spacing: .1em; }

/* ---------- CTA géant ---------- */
.bigcta { border-block: 1px solid var(--line); overflow: hidden; }
.bigcta__link { display: flex; flex-direction: column; align-items: center; padding: clamp(60px, 10vw, 140px) var(--gutter); position: relative; }
.bigcta__link .mono { color: var(--green); margin-bottom: 18px; }
.bigcta__num { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 11vw, 200px); letter-spacing: -.05em; line-height: .9; white-space: nowrap; transition: color .5s var(--ease); }
.bigcta__link::before { content: ""; position: absolute; inset: 0; background: var(--green); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease); z-index: -1; }
.bigcta__link:hover::before { transform: scaleY(1); }
.bigcta__link:hover .bigcta__num, .bigcta__link:hover .mono { color: #071004; }
.bigcta { position: relative; isolation: isolate; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); }
.info-block { margin-top: 40px; }
.info-block p { color: var(--muted); margin: 0 0 8px; }
.info-block a { font-size: clamp(18px, 1.7vw, 22px); font-weight: 500; transition: color .3s; word-break: break-word; }
.info-block a:hover { color: var(--green); }
.info-block--row { display: flex; gap: 40px; flex-wrap: wrap; }
.hours { margin-top: 44px; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.hours__head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); margin: 0 0 12px; gap: 12px; flex-wrap: wrap; }
.hours__live { display: inline-flex; align-items: center; gap: 8px; color: var(--green); }
.hours__live.is-closed { color: #e2563b; }
.hours ul { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px dashed var(--line); color: var(--muted); }
.hours li.is-today { color: var(--text); }
.hours li.is-today span:first-child::before { content: "▸ "; color: var(--green); }
.contact__map { min-height: 420px; }
.map__frame { position: relative; height: 100%; min-height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); padding: 10px; }
/* carte stylisée (SVG statique : aucun coût au défilement) */
.map__static { position: absolute; inset: 10px; border-radius: 12px; overflow: hidden; background: #0b0f0d; }
.map__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map__pin { position: absolute; left: 52%; top: 44%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(7, 9, 8, .9), 0 0 24px rgba(123, 217, 58, .7); }
.map__pin span { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--green); animation: ping 2.2s cubic-bezier(0, 0, .2, 1) infinite; }
.map__card { position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px); padding: 16px 18px; border-radius: 14px; background: rgba(7, 9, 8, .92); border: 1px solid var(--line-2); }
.map__card .mono { color: var(--green); margin: 0 0 6px; font-size: 11px; }
.map__card p:not(.mono) { margin: 0 0 14px; font-size: 15px; line-height: 1.45; }
.map__actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* carte Google chargée à la demande : filtre sombre seulement sur ordinateur (trop lourd sur mobile) */
.map__frame iframe { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); border: 0; border-radius: 12px; background: #0b0f0d; }
@media (hover: hover) and (pointer: fine) { .map__frame iframe { filter: invert(.92) hue-rotate(180deg) saturate(.4) brightness(.9) contrast(1.1); } }
.map__frame .hud__corner { margin: 4px; }
.map__tag { position: absolute; z-index: 2; right: 24px; top: 22px; padding: 6px 10px; background: rgba(7, 9, 8, .85); border: 1px solid var(--green); color: var(--green); font-size: 10px; }
@media (max-width: 960px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { padding: 60px 0 30px; overflow: hidden; }
.footer__mega { font-family: var(--f-display); font-weight: 800; font-size: 10.4vw; line-height: .9; letter-spacing: -.06em; text-align: center; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--line-2); margin-bottom: 40px; }
.footer__mega span { -webkit-text-stroke: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.footer__info { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 44px; margin-bottom: 26px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer__info p { margin: 0 0 10px; }
.footer__info .mono { color: var(--green); font-size: 11px; margin-bottom: 12px; }
.footer__info strong { color: var(--text); font-weight: 600; }
.footer__info address { font-style: normal; }
.footer__info a { transition: color .3s; }
.footer__info a:hover { color: var(--green); }
.footer__about p:last-child { max-width: 520px; line-height: 1.65; }
@media (max-width: 960px) { .footer__info { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__info { grid-template-columns: 1fr; } }
.footer__row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.footer__row p { margin: 0; }
.footer__row a:hover { color: var(--green); }

/* ---------- Bouton d'appel fixe (mobile) ---------- */
.callbar { display: none; }
@media (max-width: 1020px) {
  .callbar {
    position: fixed; z-index: 98; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px;
    background: var(--green); color: #071004; border-radius: 100px;
    box-shadow: 0 12px 40px -10px rgba(123, 217, 58, .6), 0 0 0 1px rgba(255, 255, 255, .15) inset;
    transform: translateY(160%); transition: transform .6s var(--ease);
  }
  .callbar.is-visible { transform: translateY(0); }
  body.menu-open .callbar { transform: translateY(160%); }
  .callbar__icon { width: 44px; height: 44px; border-radius: 50%; background: #071004; display: grid; place-items: center; flex: none; animation: ring 3s ease-in-out infinite; }
  .callbar__icon svg { width: 20px; height: 20px; fill: var(--green); }
  .callbar__txt { display: flex; flex-direction: column; line-height: 1.2; margin-right: auto; }
  .callbar__txt b { font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
  .callbar__txt small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; opacity: .75; }
  .callbar__arrow { font-size: 20px; }
  .footer { padding-bottom: 110px; }
}
@keyframes ring { 0%, 86%, 100% { transform: rotate(0); } 88% { transform: rotate(-14deg); } 90% { transform: rotate(14deg); } 92% { transform: rotate(-10deg); } 94% { transform: rotate(8deg); } }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__portal { clip-path: none; position: relative; height: 70vh; }
  .intro__text .w { opacity: 1; }
}
