/* =========================================================
   2C énergies Sàrl — feuille de style
   Palette tirée du logo : vert anis #8CB53D sur noir
   ========================================================= */

@font-face { font-family: "Montserrat"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --ink: #0B0D0A;
  --ink-2: #12160F;
  --ink-3: #1A2016;
  --line: #2B3427;
  --green: #8CB53D;
  --green-hi: #B9E26A;
  --green-deep: #4A6A15;      /* vert lisible sur fond clair */
  --paper: #F1F0E9;
  --paper-2: #E6E5DC;
  --txt: #E8ECE2;
  --txt-mute: #A4AE9B;
  --txt-dark: #141810;
  --txt-dark-mute: #4B5345;
  --red: #D9503A;
  --radius: 14px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Consolas", monospace;
  --header-h: 72px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--txt);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--green); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--green-hi); outline-offset: 3px; border-radius: 6px; }
.section--paper :focus-visible { outline-color: var(--green-deep); }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* ---------- Boutons ---------- */
.btn {
  --bg: transparent; --fg: var(--txt); --bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .8em 1.4em;
  border: 1.5px solid var(--bd); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s, color .25s;
}
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { --bg: var(--green); --fg: var(--ink); --bd: var(--green); }
.btn--primary:hover { box-shadow: 0 0 0 6px rgba(140,181,61,.18), 0 10px 30px -8px rgba(140,181,61,.6); }
.btn--ghost:hover { --bd: var(--green); color: var(--green-hi); }
.btn--small { min-height: 44px; padding: .5em 1.1em; font-size: .9rem; --bd: var(--line); }
.btn--small:hover { --bd: var(--green); }
.btn--block { width: 100%; }

/* ---------- En-tête ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background .35s, backdrop-filter .35s, box-shadow .35s;
}
.top.is-scrolled { background: rgba(11,13,10,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.top__inner { height: 100%; width: min(1280px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.top__logo { flex: none; padding: 6px 0; border-radius: 6px; }
.top__logo img { height: 46px; width: auto; }
.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav__list a {
  position: relative; display: block; padding: 10px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--txt-mute);
  transition: color .2s, background .2s;
}
.nav__list a:hover { color: var(--txt); background: rgba(255,255,255,.05); }
.nav__list a[aria-current="true"] { color: var(--green-hi); }
.nav__list a[aria-current="true"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green);
}
.nav__mobile-extra { display: none; }
.top__call {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  min-height: 44px; padding: 8px 16px; border-radius: 999px;
  background: var(--green); color: var(--ink); font-weight: 700; font-size: .95rem; text-decoration: none;
  transition: box-shadow .25s, transform .25s var(--ease);
}
.top__call svg { width: 18px; height: 18px; fill: currentColor; }
.top__call:hover { transform: translateY(-1px); box-shadow: 0 0 0 5px rgba(140,181,61,.2); }
.burger { display: none; }

.wire-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.wire-progress span {
  display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--green-deep), var(--green), var(--green-hi));
  box-shadow: 0 0 8px rgba(140,181,61,.7);
}

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh;
  padding: calc(var(--header-h) + 32px) 0 72px;
  display: flex; align-items: center;
  background:
    radial-gradient(60% 50% at 75% 45%, rgba(140,181,61,.07), transparent 70%),
    var(--ink);
  overflow: hidden;
}
.hero::before { /* grille de papier millimétré très discrète */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(140,181,61,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,181,61,.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(70% 70% at 60% 50%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(70% 70% at 60% 50%, #000 30%, transparent 85%);
}
.hero__grid {
  position: relative; width: min(1280px, 100% - 40px); margin-inline: auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .82rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--txt-mute);
  margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(140,181,61,.15); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(140,181,61,0); } }

.hero__title { font-weight: 800; font-size: clamp(3.2rem, 8.4vw, 7rem); line-height: .98; letter-spacing: -.035em; margin-bottom: 28px; }
.hero__line { display: block; }
.hero__line--1 { color: var(--txt); font-weight: 300; letter-spacing: -.03em; font-size: .56em; margin-bottom: .08em; }

/* Néon : tube éteint puis allumage en scintillant */
.neon { color: #26301F; white-space: nowrap; }
.neon .ch { display: inline-block; color: #26301F; transition: color .05s; }
.neon.is-lit .ch { animation: tube 1.5s steps(1, end) forwards; animation-delay: var(--d, 0s); }
@keyframes tube {
  0%   { color: #26301F; text-shadow: none; }
  8%   { color: var(--green-hi); text-shadow: 0 0 18px rgba(140,181,61,.9); }
  12%  { color: #26301F; text-shadow: none; }
  20%  { color: var(--green-hi); text-shadow: 0 0 18px rgba(140,181,61,.9); }
  23%  { color: #3a4a2a; text-shadow: none; }
  40%  { color: var(--green-hi); text-shadow: 0 0 22px rgba(140,181,61,.85), 0 0 60px rgba(140,181,61,.35); }
  100% { color: var(--green); text-shadow: 0 0 22px rgba(140,181,61,.55), 0 0 70px rgba(140,181,61,.25); }
}
.neon.is-done .ch { color: var(--green); text-shadow: 0 0 22px rgba(140,181,61,.55), 0 0 70px rgba(140,181,61,.25); animation: none; }
.no-js .neon { color: var(--green); }

.hero__lead { max-width: 34em; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--txt-mute); margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__schema { position: relative; }
.house { width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.plan--dim { color: #2A3324; }
.plan--lit { color: var(--green); }
.labels text { font: 500 11px var(--mono); fill: #46523C; letter-spacing: .04em; }
.hero.is-on .labels text { fill: var(--green); }

#torchCircle { transition: r 1.1s var(--ease); }

.lights .win, .lights .cone, .lights .bulb { opacity: 0; transition: opacity .5s var(--ease); transition-delay: 0s; }
.lights .win { fill: rgba(185,226,106,.16); }
.lights .cone { fill: url(#cone); }
.lights .bulb { fill: var(--green-hi); filter: url(#glow); }
.lights .current use { fill: none; stroke: var(--green-hi); stroke-width: 2.2; stroke-dasharray: 3 14; stroke-linecap: round; opacity: 0; transition: opacity .4s; }
.hero.is-on .lights .win, .hero.is-on .lights .cone, .hero.is-on .lights .bulb { opacity: 1; transition-delay: var(--d, 0s); }
.hero.is-on .lights .current use { opacity: 1; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -17; } }
.hero.is-on .pt-conductor { stroke-dasharray: none; }

.schema__hint { margin: 10px 0 0; text-align: center; font: 400 .85rem/1.4 var(--mono); color: var(--txt-mute); transition: opacity .4s; }
.hint-touch { display: none; }
@media (hover: none) { .hint-desktop { display: none; } .hint-touch { display: inline; } }
.hero.is-on .schema__hint { opacity: 0; }

/* Interrupteur style plaque suisse */
.switch {
  display: flex; align-items: center; gap: 16px;
  margin: 18px auto 0; min-width: 270px; padding: 10px 22px 10px 10px;
  border: 1.5px solid var(--line); border-radius: 18px;
  background: rgba(255,255,255,.02);
  cursor: pointer; text-align: left;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.switch:hover { border-color: var(--green); }
.switch__plate {
  width: 64px; height: 64px; border-radius: 10px; flex: none;
  background: linear-gradient(145deg, #F4F3EE, #D6D5CD);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 6px 14px -6px rgba(0,0,0,.7);
  display: grid; place-items: center; perspective: 200px;
}
.switch__rocker {
  width: 40px; height: 40px; border-radius: 6px;
  background: linear-gradient(180deg, #FFFFFF 0%, #E3E2DA 100%);
  box-shadow: 0 2px 0 rgba(0,0,0,.18), inset 0 -2px 0 rgba(0,0,0,.06);
  transform: rotateX(16deg); transition: transform .25s var(--ease), background .25s;
  display: grid; place-items: center;
}
.switch__mark { width: 14px; height: 3px; border-radius: 2px; background: #B9B8AF; transition: background .25s, box-shadow .25s; }
.switch[aria-pressed="true"] .switch__rocker { transform: rotateX(-16deg); background: linear-gradient(0deg, #FFFFFF 0%, #E3E2DA 100%); }
.switch[aria-pressed="true"] .switch__mark { background: var(--green); box-shadow: 0 0 8px var(--green); }
.switch__text { display: grid; line-height: 1.25; }
.switch__state { font: 500 .75rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--txt-mute); }
.switch__action { font-weight: 700; font-size: 1.05rem; }
.switch[aria-pressed="true"] { border-color: rgba(140,181,61,.5); box-shadow: 0 0 40px -10px rgba(140,181,61,.5); }
.switch[aria-pressed="true"] .switch__state { color: var(--green); }
.switch.is-calling { animation: call 2.2s 2.5s infinite; }
@keyframes call { 0%, 60%, 100% { box-shadow: 0 0 0 0 rgba(140,181,61,0); } 30% { box-shadow: 0 0 0 8px rgba(140,181,61,.22); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 20px; translate: -50% 0;
  width: 30px; height: 48px; border: 1.5px solid var(--line); border-radius: 20px;
  display: grid; justify-items: center; padding-top: 8px;
}
.hero__scroll span { width: 3px; height: 10px; border-radius: 2px; background: var(--green); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section--paper { background: var(--paper); color: var(--txt-dark); }
.section--dark { background: var(--ink); }
.section--storm { background: radial-gradient(80% 60% at 30% 20%, #151B12, var(--ink) 70%); overflow: hidden; }

.sec-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head__num { font: 500 .82rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: 18px; }
.section--paper .sec-head__num { color: var(--green-deep); }
.sec-head h2 { margin-bottom: 22px; }
.sec-head__lead { font-size: 1.15rem; color: var(--txt-dark-mute); max-width: 40em; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Le tableau électrique ---------- */
.panel {
  position: relative;
  background: linear-gradient(180deg, #2A2F27, #1E221C);
  border-radius: 20px; padding: 18px clamp(14px, 2.4vw, 28px) 28px;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 40px 80px -40px rgba(20,24,16,.6);
  color: var(--txt);
}
.panel__bar { display: flex; justify-content: space-between; font: 500 .72rem var(--mono); letter-spacing: .12em; color: #7E8A73; padding: 4px 6px 16px; }
.panel__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.svc {
  position: relative; display: grid; grid-template-columns: 74px 1fr; gap: 20px; align-items: start;
  padding: 26px 22px 26px 18px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.svc:nth-child(-n+3) { border-top: 0; }
.svc::before { /* rail DIN */
  content: ""; position: absolute; left: 18px; width: 74px; top: 62px; height: 14px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, #8B9184 0 6px, #757B6F 6px 12px); opacity: .55;
}
.svc + .svc { border-left: 1px solid rgba(255,255,255,.07); }
.svc:nth-child(3n+1) { border-left: 0; }
.svc__body h3 { margin-bottom: 8px; }
.svc__body p:last-of-type { color: #B4BDAA; font-size: .98rem; margin-bottom: .6em; }
.svc__ref { font: 500 .75rem var(--mono); letter-spacing: .1em; color: var(--green); margin-bottom: 6px; }
.svc__link { font-weight: 600; font-size: .92rem; color: var(--green-hi); text-underline-offset: 4px; }
.svc__link:hover { color: #fff; }

.breaker {
  position: relative; z-index: 1; width: 74px; height: 128px; padding: 0; border: 0; cursor: pointer;
  border-radius: 6px;
  background: linear-gradient(180deg, #FAFAF6, #E2E1D9);
  box-shadow: 0 1px 0 #fff inset, 0 -2px 0 rgba(0,0,0,.08) inset, 0 10px 18px -8px rgba(0,0,0,.6);
  display: grid; justify-items: center; align-content: start; padding-top: 12px;
  transition: transform .2s var(--ease);
}
.breaker:hover { transform: translateY(-2px); }
.breaker::before, .breaker::after { /* vis */
  content: ""; position: absolute; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, #A9A89F 70%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}
.breaker::before { top: -18px; } .breaker::after { bottom: -18px; }
.breaker__rating { font: 600 .7rem var(--mono); color: #3B4134; margin-bottom: 8px; }
.breaker__slot {
  position: relative; width: 30px; height: 56px; border-radius: 5px;
  background: #2C312A; box-shadow: inset 0 3px 6px rgba(0,0,0,.6);
}
.breaker__lever {
  position: absolute; left: 3px; right: 3px; height: 26px; border-radius: 4px;
  background: linear-gradient(180deg, #fff, #D4D3CB);
  box-shadow: 0 2px 3px rgba(0,0,0,.4);
  top: 27px;                         /* OFF : levier en bas */
  transition: top .28s cubic-bezier(.5,-0.4,.5,1.4);
}
.breaker__lever::after { content: ""; position: absolute; left: 6px; right: 6px; top: 11px; height: 3px; border-radius: 2px; background: var(--red); }
.breaker__led { margin-top: 10px; width: 9px; height: 9px; border-radius: 50%; background: #5B2D24; transition: background .3s, box-shadow .3s; }
/* ON (dans le tableau visible) */
.panel.is-live .breaker[aria-pressed="true"] .breaker__lever { top: 3px; transition-delay: calc(var(--i) * 140ms + 200ms); }
.panel.is-live .breaker[aria-pressed="true"] .breaker__lever::after { background: var(--green); }
.panel.is-live .breaker[aria-pressed="true"] .breaker__led { background: var(--green-hi); box-shadow: 0 0 10px var(--green); transition-delay: calc(var(--i) * 140ms + 400ms); }
.panel.is-touched .breaker .breaker__lever, .panel.is-touched .breaker .breaker__led { transition-delay: 0s !important; }
.breaker[aria-pressed="false"] .breaker__led { background: var(--red); box-shadow: 0 0 8px rgba(217,80,58,.7); }
.svc { transition: opacity .3s; }
.svc:has(.breaker[aria-pressed="false"]) .svc__body { opacity: .55; }

.panel__status { min-height: 1.4em; margin: 12px 6px 0; font: 400 .85rem var(--mono); color: #9FAA94; }

/* ---------- Contrôle ---------- */
.ctrl { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.ctrl h2 { margin-bottom: 28px; color: var(--green); }
.big-quote { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 300; line-height: 1.45; margin-bottom: 28px; }
.ticks { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; color: var(--txt-mute); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(140,181,61,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23B9E26A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

.meter {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 30px 80px -40px rgba(140,181,61,.25);
}
.meter__head h3 { margin-bottom: 4px; }
.meter__head p { color: var(--txt-mute); font-size: .95rem; }
.gauge { width: 100%; max-width: 300px; margin: 6px auto 18px; overflow: visible; }
.gauge__track { fill: none; stroke: var(--ink-3); stroke-width: 14; stroke-linecap: round; }
.gauge__fill { opacity: 0; fill: none; stroke: var(--green); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .9s var(--ease), stroke .4s; }
.gauge__fill.is-late { stroke: var(--red); }
.gauge__ticks line { stroke: #3C4735; stroke-width: 2; }
.gauge__needle { stroke: var(--txt); stroke-width: 3; stroke-linecap: round; transform-origin: 120px 120px; transform: rotate(-90deg); transition: transform 1.1s cubic-bezier(.3,1.6,.5,1); }
.gauge__hub { fill: var(--txt); }
.gauge text { font: 500 11px var(--mono); fill: var(--txt-mute); }

.field { display: grid; gap: 6px; margin-bottom: 16px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid #39432F; border-radius: 12px; background: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%238CB53D' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #56653F; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(140,181,61,.2); }
.field input::placeholder, .field textarea::placeholder { color: #6E7866; }
.field__help { font-size: .85rem; color: var(--txt-mute); margin: 0; }
.field__err { margin: 0; font-size: .88rem; font-weight: 600; color: #FF8A75; min-height: 0; }
.field__err:not(:empty)::before { content: "⚠ "; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #FF8A75; }
.field.is-valid input, .field.is-valid textarea { border-color: rgba(140,181,61,.7); }
.field__count { margin: 0; font: 400 .78rem var(--mono); color: var(--txt-mute); text-align: right; }

.check { display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 44px; margin-bottom: 18px; font-size: .95rem; }
.check input { width: 22px; height: 22px; accent-color: var(--green); flex: none; }

.meter__result { border-top: 1px dashed var(--line); padding-top: 18px; }
.meter__big { font-size: clamp(1.8rem, 3.6vw, 2.4rem); font-weight: 800; color: var(--green); margin-bottom: 4px; letter-spacing: -.02em; }
.meter__big.is-late { color: #FF8A75; }
.meter__msg { color: var(--txt); margin-bottom: 10px; }
.meter__note { font-size: .8rem; color: var(--txt-mute); margin: 0; }

/* ---------- Paratonnerres ---------- */
.pt { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.pt__visual { position: relative; display: grid; justify-items: center; gap: 16px; }
.pt__visual svg { width: 100%; max-width: 520px; overflow: visible; }
.pt__text h2 { margin-bottom: 24px; }
.pt__text > p:not(.sec-head__num) { color: var(--txt-mute); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 26px 0 26px; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 60px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.015); }
.steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 50%; translate: 0 -50%;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font: 600 .85rem var(--mono); color: var(--ink); background: var(--green);
}
.steps strong { color: var(--green-hi); }

.bolt { stroke: #F3FFDA; stroke-width: 4; stroke-linejoin: round; filter: url(#glow2); stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.flow { stroke: var(--green-hi); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; filter: url(#glow2); stroke-dasharray: 14 100; stroke-dashoffset: 14; opacity: 0; }
.impact { fill: #F3FFDA; opacity: 0; filter: url(#glow2); }
.ripple { fill: none; stroke: var(--green); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.pt-tags text { fill: #7F8C70; transition: fill .4s; }
.storm-run .pt-tags text { fill: var(--green-hi); }
.storm-run .bolt { animation: strike 2.6s var(--ease) forwards; }
.storm-run .impact { animation: impact 2.6s forwards; }
.storm-run .flow { animation: discharge 2.6s linear forwards; }
.storm-run .ripple { animation: ripple 2.6s forwards; }
.storm-run .ripple--2 { animation-delay: .25s; }
.storm-run .clouds circle { animation: cloudflash 2.6s forwards; }
@keyframes strike { 0% { opacity: 1; stroke-dashoffset: 100; } 9% { stroke-dashoffset: 0; opacity: 1; } 30% { opacity: 1; } 45% { opacity: 0; stroke-dashoffset: 0; } 100% { opacity: 0; stroke-dashoffset: 0; } }
@keyframes impact { 0%, 8% { opacity: 0; r: 4; } 12% { opacity: 1; r: 16; } 40% { opacity: 0; r: 30; } 100% { opacity: 0; } }
@keyframes discharge { 0%, 10% { opacity: 0; stroke-dashoffset: 14; } 12% { opacity: 1; } 62% { opacity: 1; stroke-dashoffset: -96; } 66%, 100% { opacity: 0; stroke-dashoffset: -96; } }
@keyframes ripple { 0%, 60% { opacity: 0; transform: scale(1); } 64% { opacity: .9; } 100% { opacity: 0; transform: scale(6); } }
@keyframes cloudflash { 0%, 8% { fill: #1E2619; } 11% { fill: #56663F; } 22% { fill: #1E2619; } 100% { fill: #1E2619; } }


/* ---------- Bandeau photos ---------- */
.reel { position: relative; background: var(--ink); padding: clamp(80px, 10vw, 130px) 0; overflow: hidden; }
.reel__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.reel__title { font-size: clamp(2.2rem, 5.4vw, 4.4rem); font-weight: 300; letter-spacing: -.03em; }
.reel__title span { font-weight: 800; color: var(--green); }
.reel__hint { margin: 0; font: 400 .85rem var(--mono); color: var(--txt-mute); }
.reel__track {
  list-style: none; margin: 0; display: flex; gap: clamp(14px, 2vw, 26px); align-items: flex-end;
  padding: 0 max(20px, calc((100vw - 1200px) / 2));
  transform: translate3d(var(--x, 0px), 0, 0); will-change: transform;
}
.shot { position: relative; flex: none; width: clamp(260px, 30vw, 440px); margin: 0; }
.shot--wide { width: clamp(300px, 40vw, 600px); }
.shot--tall { width: clamp(220px, 22vw, 330px); }
.shot img {
  width: 100%; height: clamp(260px, 42vw, 500px); object-fit: cover; border-radius: 18px;
  filter: grayscale(1) brightness(.42) contrast(1.2);
  transition: filter .9s var(--ease);
}
.shot::before { /* teinte verte « hors tension » */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: clamp(260px, 42vw, 500px); border-radius: 18px; z-index: 1;
  background: var(--green); mix-blend-mode: color; opacity: .55; pointer-events: none; transition: opacity .9s var(--ease);
}
.shot.is-lit img, .shot:hover img { filter: none; }
.shot.is-lit::before, .shot:hover::before { opacity: 0; }
.shot__cap { display: flex; align-items: center; gap: 10px; margin: 14px 2px 0; font-weight: 600; font-size: .98rem; }
.shot__cap span { font: 500 .75rem var(--mono); color: var(--ink); background: var(--green); border-radius: 6px; padding: 3px 7px; }
.shot.is-lit .shot__cap span { box-shadow: 0 0 14px rgba(140,181,61,.7); }

/* Badge ECAB */
.badge {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 26px; padding: 12px 18px 12px 14px;
  border: 1px solid rgba(140,181,61,.45); border-radius: 14px; background: rgba(140,181,61,.08);
  color: var(--txt) !important; font-size: .98rem; line-height: 1.4;
}
.badge svg { width: 28px; height: 28px; flex: none; color: var(--green-hi); }
.badge strong { color: var(--green-hi); }

/* Fond photo de la section paratonnerres */
.section--storm::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,13,10,.5) 0%, rgba(11,13,10,.8) 45%, var(--ink) 70%),
    linear-gradient(0deg, var(--ink) 0%, transparent 22%, transparent 80%, var(--ink) 100%),
    url("../img/photos/foudre.webp") 20% 30% / cover no-repeat;
  opacity: .9;
}
.section--storm .pt { position: relative; }
.section--storm.flash::before { animation: photoflash 2.6s forwards; }
@keyframes photoflash { 0%, 8% { filter: brightness(1); } 11% { filter: brightness(1.9); } 24%, 100% { filter: brightness(1); } }

/* ---------- Entreprise ---------- */
.ent { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.ent h2 { margin-bottom: 26px; }
.ent__text > p:not(.sec-head__num) { font-size: 1.12rem; color: var(--txt-dark-mute); max-width: 36em; }
.values { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.values li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; background: #fff; border-radius: 14px; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 30px -24px rgba(0,0,0,.4); }
.values__ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: var(--green); font-size: 1.05rem; }
.values strong { display: block; color: var(--txt-dark); }
.values li span:last-child { color: var(--txt-dark-mute); font-size: .98rem; line-height: 1.5; }

.plate {
  position: relative; margin: 0;
  background: linear-gradient(135deg, #D9DBD3 0%, #F4F5F0 35%, #C9CBC2 60%, #EEEFEA 100%);
  border-radius: 12px; padding: 34px 30px 22px;
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,0,0,.12), 0 30px 60px -30px rgba(0,0,0,.45);
  transform: rotate(-1.5deg);
  transition: transform .5s var(--ease);
}
.plate:hover { transform: rotate(0deg) translateY(-4px); }
.plate__screws i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #8F918A 75%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.plate__screws i::after { content: ""; position: absolute; left: 2px; right: 2px; top: 5.5px; height: 1px; background: rgba(0,0,0,.45); transform: rotate(35deg); }
.plate__screws i:nth-child(1) { left: 12px; top: 12px; } .plate__screws i:nth-child(2) { right: 12px; top: 12px; }
.plate__screws i:nth-child(3) { left: 12px; bottom: 12px; } .plate__screws i:nth-child(4) { right: 12px; bottom: 12px; }
.plate__head { background: var(--ink); border-radius: 8px; padding: 18px; display: grid; place-items: center; margin-bottom: 20px; }
.plate__head img { width: 190px; height: auto; }
.plate__grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border: 1.5px solid #8E9188; border-radius: 6px; overflow: hidden; }
.plate__grid div { padding: 10px 12px; border-bottom: 1px solid #A9ABA3; }
.plate__grid div:nth-child(odd) { border-right: 1px solid #A9ABA3; }
.plate__grid div:nth-last-child(-n+2) { border-bottom: 0; }
.plate__grid dt { font: 500 .66rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #555A50; }
.plate__grid dd { margin: 2px 0 0; font: 600 .92rem var(--mono); color: #1B1E18; }
.plate__cap { margin-top: 14px; text-align: center; font: 500 .7rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #5D6257; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact h2 { margin-bottom: 22px; }
.contact__lead { color: var(--txt-mute); font-size: 1.12rem; margin-bottom: 34px; max-width: 30em; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card {
  display: grid; gap: 4px; height: 100%; padding: 20px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--ink-2); text-decoration: none;
  transition: border-color .25s, transform .25s var(--ease), background .25s;
}
.card:hover { border-color: var(--green); transform: translateY(-3px); background: var(--ink-3); }
.card__k { font: 500 .75rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.card__v { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.card__v--sm { font-size: 1rem; word-break: break-word; }

.form { background: var(--ink-2); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3vw, 36px); }
.form h3 { margin-bottom: 6px; }
.form__intro { font-size: .88rem; color: var(--txt-mute); margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row .field { margin-bottom: 4px; }
#contact-help { margin: 0 0 18px; }
#contact-help.is-error { color: #FF8A75; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chips legend { margin-bottom: 8px; padding: 0; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1.5px solid #39432F; border-radius: 999px; font-size: .92rem; font-weight: 600; transition: all .2s; }
.chips label:hover span { border-color: var(--green); }
.chips input:checked + span { background: var(--green); border-color: var(--green); color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--green-hi); outline-offset: 2px; }
.form__note { font-size: .82rem; color: var(--txt-mute); margin: 14px 0 0; }
.form__status { margin: 12px 0 0; font-weight: 600; color: var(--green-hi); }
.form__status:empty { display: none; }

/* ---------- Pied de page ---------- */
.foot { background: #070806; border-top: 1px solid var(--line); padding: 64px 0 28px; font-size: .95rem; color: var(--txt-mute); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot__grid img { width: 170px; height: auto; margin-bottom: 14px; }
.foot__slogan { color: var(--green); font-weight: 600; }
.foot__k { font: 500 .75rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--txt); margin-bottom: 10px; }
.foot a { text-decoration: none; display: inline-block; padding: 3px 0; }
.foot a:hover { color: var(--green-hi); text-decoration: underline; text-underline-offset: 4px; }
.foot__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .85rem; }
.foot__bottom p { margin: 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; translate: -50% 0;
  width: min(460px, calc(100% - 32px));
  padding: 16px 18px; border-radius: 16px; background: #1B2117; border: 1px solid var(--green);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8);
  display: flex; gap: 14px; align-items: center; justify-content: space-between;
  animation: toastIn .4s var(--ease);
}
.toast[hidden] { display: none; }
.toast p { margin: 0; font-size: .95rem; }
.toast .btn { min-height: 44px; padding: .4em 1em; flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .nav__list a { padding: 10px 10px; font-size: .9rem; }
  .top__call span { display: none; }
  .top__call { padding: 8px 12px; }
  .panel__grid { grid-template-columns: repeat(2, 1fr); }
  .svc:nth-child(-n+3) { border-top: 1px solid rgba(255,255,255,.07); }
  .svc:nth-child(-n+2) { border-top: 0; }
  .svc + .svc { border-left: 1px solid rgba(255,255,255,.07); }
  .svc:nth-child(3n+1) { border-left: 1px solid rgba(255,255,255,.07); }
  .svc:nth-child(2n+1) { border-left: 0; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .top__logo img { height: 40px; }
  .burger {
    display: inline-flex; align-items: center; gap: 10px; margin-left: 4px;
    min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-weight: 600; font-size: .9rem;
  }
  .burger__lines, .burger__lines::before, .burger__lines::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), background .3s; }
  .burger__lines { position: relative; }
  .burger__lines::before, .burger__lines::after { content: ""; position: absolute; left: 0; }
  .burger__lines::before { top: -6px; } .burger__lines::after { top: 6px; }
  .burger[aria-expanded="true"] .burger__lines { background: transparent; }
  .burger[aria-expanded="true"] .burger__lines::before { transform: translateY(6px) rotate(45deg); }
  .burger[aria-expanded="true"] .burger__lines::after { transform: translateY(-6px) rotate(-45deg); }
  .top__call { margin-left: auto; }

  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0;
    background: rgba(11,13,10,.98); backdrop-filter: blur(10px);
    padding: 24px 20px 40px; display: flex; flex-direction: column; justify-content: space-between;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s;
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ease), visibility 0s; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { font-size: 1.6rem; font-weight: 700; padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--txt); }
  .nav__list a[aria-current="true"]::after { left: auto; right: 8px; top: 50%; bottom: auto; margin: -3px 0 0; width: 8px; height: 8px; }
  .nav__mobile-extra { display: grid; gap: 14px; margin-top: 32px; }
  .nav__mail { text-align: center; color: var(--txt-mute); padding: 10px; }
  body.menu-open { overflow: hidden; }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 28px); padding-bottom: 80px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__schema { max-width: 560px; width: 100%; margin-inline: auto; }
  .hero__scroll { display: none; }

  .ctrl, .pt, .ent, .contact { grid-template-columns: 1fr; }
  .reel__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .reel__viewport::-webkit-scrollbar { display: none; }
  .reel__track { transform: none !important; padding: 0 20px; width: max-content; }
  .shot { scroll-snap-align: center; width: 78vw; }
  .shot--wide { width: 86vw; } .shot--tall { width: 62vw; }
  .shot img, .shot::before { height: 62vw; max-height: 460px; }
  .section--storm::before { background: linear-gradient(180deg, rgba(11,13,10,.55) 0%, rgba(11,13,10,.85) 40%, var(--ink) 65%), url("../img/photos/foudre.webp") 30% 20% / cover no-repeat; }
  .pt__visual { order: 2; }
  .plate { transform: none; max-width: 520px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { width: calc(100% - 32px); }
  .hero__grid { width: calc(100% - 32px); }
  .top__inner { width: calc(100% - 24px); gap: 10px; }
  .burger__label { display: none; }
  .burger { padding: 8px 12px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .eyebrow { font-size: .72rem; margin-bottom: 20px; }
  .panel { border-radius: 16px; padding: 14px 10px 18px; }
  .panel__grid { grid-template-columns: 1fr; }
  .svc, .svc:nth-child(n) { border-left: 0 !important; border-top: 1px solid rgba(255,255,255,.07); grid-template-columns: 62px 1fr; gap: 16px; padding: 24px 10px; }
  .svc:first-child { border-top: 0; }
  .svc::before { left: 10px; width: 62px; }
  .breaker { width: 62px; height: 112px; }
  .breaker__slot { height: 50px; width: 28px; }
  .breaker__lever { height: 22px; top: 25px; }
  .panel.is-live .breaker[aria-pressed="true"] .breaker__lever { top: 3px; }
  .breaker__lever::after { top: 9px; }
  .cards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .plate { padding: 30px 18px 18px; }
  .plate__grid { grid-template-columns: 1fr; }
  .plate__grid div:nth-child(odd) { border-right: 0; }
  .plate__grid div:nth-last-child(2) { border-bottom: 1px solid #A9ABA3; }
  .foot__grid { grid-template-columns: 1fr; }
  .switch { width: 100%; }
}

/* Mouvement réduit : tout reste lisible, sans animation */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .neon .ch, .neon { color: var(--green); }
  .reel__viewport { overflow-x: auto; }
  .reel__track { transform: none !important; width: max-content; }
}

@media print {
  .top, .hero__schema, .hero__scroll, .pt__visual, .toast, .form { display: none !important; }
  body, .section--dark, .section--storm, .hero, .foot { background: #fff !important; color: #000 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
