/* ============================================================
   SEBI — home.css
   Refonte « industriel bold » — page d'accueil
   Bleu nuit · or électrique · typo massive · diagonales
   ============================================================ */

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--txt);
  background-color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--volt);
  outline-offset: 3px;
}

::selection {
  background: var(--volt);
  color: var(--ink);
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- TOKENS ---------- */
:root {
  /* fonds */
  --ink: #0A111E;
  --ink-2: #0E1726;
  --ink-3: #152136;
  --line: rgba(244, 246, 250, 0.09);
  --line-strong: rgba(244, 246, 250, 0.18);

  /* accent */
  --volt: #F5A623;
  --volt-hot: #FFC04D;
  --volt-dim: rgba(245, 166, 35, 0.14);

  /* section claire */
  --paper: #EDE8DC;
  --paper-2: #E2DCCC;
  --ink-on-paper: #131A28;

  /* texte */
  --txt: #F2F5FA;
  --txt-dim: #97A3B8;
  --txt-faint: #5C6A82;

  /* métiers */
  --c-elec: #F5A623;
  --c-plumb: #4C9AFF;
  --c-access: #2BD588;
  --c-lock: #FF5C5C;
  --c-rope: #FF8A3D;

  /* typo */
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* layout */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- UTILITIES ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--volt);
}

.required { color: var(--c-lock); }

/* bande hazard — or/transparent 45° */
.hazard {
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--volt) 0 14px,
    transparent 14px 28px
  );
  opacity: 0.85;
}

/* rubalise vivante sur le bandeau urgence */
.urgence .hazard {
  animation: hazardSlide 2.4s linear infinite;
}
@keyframes hazardSlide {
  to { background-position: -39.6px 0; }
}

/* grain global */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.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='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- SCROLL REVEAL (progressif, gated JS) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
html.js .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
html.js .reveal:nth-child(2) { transition-delay: 0.07s; }
html.js .reveal:nth-child(3) { transition-delay: 0.14s; }
html.js .reveal:nth-child(4) { transition-delay: 0.21s; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.header.scrolled {
  background: rgba(10, 17, 30, 0.92);
  border-bottom-color: var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.nav__logo img {
  display: block;
  height: 52px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav__link {
  position: relative;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--txt-dim);
  transition: color 0.2s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--volt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav__link:hover,
.nav__link.active {
  color: var(--txt);
}
.nav__link:hover::after,
.nav__link.active::after {
  transform: scaleX(1);
}

.nav__phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--txt);
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line-strong);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav__phone .icon { color: var(--volt); }
.nav__phone:hover {
  border-color: var(--volt);
  color: var(--volt-hot);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--volt);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.65rem 1.3rem;
  transition: background 0.2s ease, transform 0.2s var(--ease);
}
.nav__cta:hover {
  background: var(--volt-hot);
  transform: translateY(-2px);
}

.nav__toggle {
  display: none;
  color: var(--txt);
  padding: 0.4rem;
  margin-left: auto;
  z-index: 1002;
}
.nav__toggle-close { display: none; }

/* overlay mobile plein écran */
.nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
body.nav-open .nav__overlay {
  opacity: 1;
  visibility: visible;
}
body.nav-open { overflow: hidden; }
body.nav-open .nav__toggle-open { display: none; }
body.nav-open .nav__toggle-close { display: block; }

.nav__overlay-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  counter-reset: navnum;
}

.nav__overlay-link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--txt);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
  counter-increment: navnum;
}
.nav__overlay-link::before {
  content: counter(navnum, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--volt);
  letter-spacing: 0.1em;
}
.nav__overlay-link:active { color: var(--volt); }

.nav__overlay-foot {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.nav__overlay-foot a {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--txt-dim);
}
.nav__overlay-foot a strong { color: var(--volt); font-weight: 600; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 3rem);
  overflow: hidden;
  isolation: isolate;
}

/* grille blueprint */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black 30%, transparent 100%);
}

/* façade blueprint animée — de la cave au toit */
.hero__facade {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: clamp(1rem, 5vw, 6rem);
  transform: translateY(calc(-52% + var(--plx, 0px)));
  width: clamp(320px, 30vw, 460px);
  height: auto;
  will-change: transform;
}

.hero__facade .fd {
  stroke: rgba(244, 246, 250, 0.30);
  stroke-width: 1.5;
}
.hero__facade .fg--2 .fd {
  stroke: rgba(244, 246, 250, 0.18);
}
.hero__facade .fd--dash {
  stroke-dasharray: 5 6 !important;
  stroke: rgba(244, 246, 250, 0.22);
}
.hero__facade .fd--volt {
  stroke: rgba(245, 166, 35, 0.55);
}
.hero__facade .fd-node {
  fill: var(--ink);
  stroke: rgba(245, 166, 35, 0.65);
  stroke-width: 1.5;
}
.hero__facade .fd-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  fill: var(--txt-faint);
}

/* dessin progressif au chargement */
html.js .hero__facade .fd {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: facadeDraw 1.4s var(--ease) forwards;
}
html.js .hero__facade .fg--2 .fd { animation-delay: 0.5s; }
html.js .hero__facade .fg--3 .fd { animation-delay: 1s; }

html.js .hero__facade .fd-node,
html.js .hero__facade .fd-label {
  opacity: 0;
  animation: facadeFade 0.6s ease 1.6s forwards;
}

@keyframes facadeDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes facadeFade {
  to { opacity: 1; }
}

/* impulsion lumineuse (pilotée par home.js — scénario dépannage)
   --mcur : couleur du métier en cours / --wc : couleur figée par fenêtre */
.fd-pulse {
  fill: var(--mcur, var(--volt));
  filter: drop-shadow(0 0 8px var(--mcur, var(--volt)))
          drop-shadow(0 0 18px var(--mcur, var(--volt)));
  opacity: 0;
}

/* scénario dépannage : panne → intervention → rétabli */
.fd-win {
  transition: fill 0.5s ease, stroke 0.5s ease;
}
/* les états du scénario court-circuitent l'animation de dessin */
.fd-win.is-panne,
.fd-win.is-fixed {
  stroke-dasharray: none !important;
  stroke-dashoffset: 0 !important;
}
.fd-win.is-panne {
  animation: winFlicker 0.55s steps(2, jump-none) infinite !important;
}
.fd-win.is-fixed {
  stroke: var(--wc, var(--volt)) !important;
  fill: var(--wc, var(--volt));
  fill-opacity: 0.22;
  filter: drop-shadow(0 0 6px var(--wc, var(--volt)));
}
@keyframes winFlicker {
  from { stroke: rgba(255, 92, 92, 0.95); fill: rgba(255, 92, 92, 0.22); }
  to   { stroke: rgba(244, 246, 250, 0.12); fill: transparent; }
}

.fd--volt.is-live {
  stroke: var(--mcur, var(--volt-hot)) !important;
  filter: drop-shadow(0 0 6px var(--mcur, var(--volt)));
}

.fd-status {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: var(--mcur, var(--volt));
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vh, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vh, 4.5rem);
}

.hero__topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  margin-bottom: 0.75rem;
}

.hero__topline .mono-label {
  line-height: 1.8;
}

.hero__topline .sep {
  flex: 1;
  height: 1px;
  background: var(--line-strong);
  min-width: 40px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 11.5vw, 10.5rem);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.hero__title em {
  font-style: normal;
  color: var(--volt);
}

/* ligne « sous tension » avec contour */
.hero__title .stroke {
  color: transparent;
  -webkit-text-stroke: 2px var(--txt);
}

.hero__sub {
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--txt-dim);
}
.hero__sub strong { color: var(--txt); font-weight: 600; }

.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

/* boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.95rem 1.8rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease), border-color 0.2s ease;
}

.btn--volt {
  background: var(--volt);
  color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.btn--volt:hover {
  background: var(--volt-hot);
  transform: translateY(-2px);
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--txt);
}
.btn--ghost:hover {
  border-color: var(--volt);
  color: var(--volt-hot);
}

.btn--lg {
  font-size: 1.3rem;
  padding: 1.1rem 2.2rem;
}

/* badges techniques hero */
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.hero__meta li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-dim);
}
.hero__meta li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--volt);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.hero__meta img {
  height: 26px;
  width: auto;
}

/* ============================================================
   MARQUEE MÉTIERS
   ============================================================ */
.marquee {
  position: relative;
  border-block: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
  padding: 0.9rem 0;
}

.marquee__track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--txt-dim);
  white-space: nowrap;
}
.marquee__item .icon { color: var(--volt); }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   MÉTIERS — ACCORDÉON 01-05
   ============================================================ */
.metiers {
  position: relative;
  padding: clamp(4.5rem, 10vh, 8rem) 0 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.section-head__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.section-head__desc {
  max-width: 60ch;
  color: var(--txt-dim);
}

.metier {
  border-top: 1px solid var(--line);
  --mc: var(--volt);
}
.metier:last-child { border-bottom: 1px solid var(--line); }

.metier__heading {
  margin: 0;
  font: inherit;
}

.metier__bar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(1.1rem, 2.5vh, 1.6rem) var(--gutter);
  text-align: left;
  transition: background 0.25s ease;
}
.metier__bar:hover { background: var(--ink-2); }

.metier__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--mc);
}

.metier__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 3.6rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 0.25s ease, transform 0.3s var(--ease);
}
.metier__bar:hover .metier__name { transform: translateX(8px); }
.metier[data-open] .metier__name { color: var(--mc); }

.metier__hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--txt-faint);
}

.metier__plus {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.metier__plus::before,
.metier__plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--txt);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), background 0.25s ease;
}
.metier__plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.metier[data-open] .metier__plus {
  background: var(--mc);
  border-color: var(--mc);
}
.metier[data-open] .metier__plus::before,
.metier[data-open] .metier__plus::after {
  background: var(--ink);
}
.metier[data-open] .metier__plus::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

/* panneau dépliant — grid rows trick */
.metier__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.metier[data-open] .metier__panel {
  grid-template-rows: 1fr;
}
.metier__panel-inner {
  overflow: hidden;
}

.metier__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-bottom: clamp(1.8rem, 4vh, 3rem);
  padding-top: 0.5rem;
}

.metier__desc {
  color: var(--txt-dim);
  margin-bottom: 1.4rem;
  max-width: 52ch;
}

.metier__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
}
.metier__chips li {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line-strong);
  color: var(--txt);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.metier__chips li:hover {
  border-color: var(--mc);
  color: var(--mc);
}

.metier__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.metier__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mc);
  padding: 0.7rem 0;
}
.metier__more .icon { transition: transform 0.25s var(--ease); }
.metier__more:hover .icon { transform: translateX(6px); }

.metier__media {
  position: relative;
  min-height: 260px;
  overflow: hidden;
}
.metier__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}
.metier__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 55%, color-mix(in srgb, var(--mc) 55%, transparent));
  mix-blend-mode: multiply;
}
.metier__media-num {
  position: absolute;
  right: 0.75rem;
  bottom: 0;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.5rem, 9vw, 8rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.65);
}

/* ============================================================
   CHIFFRES XXL
   ============================================================ */
.stats {
  padding: clamp(4.5rem, 10vh, 8rem) 0;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem var(--gutter);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--volt);
}

.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 8vw, 7.5rem);
  line-height: 0.9;
  color: var(--txt);
  font-variant-numeric: tabular-nums;
}
.stat__num .unit { color: var(--volt); }

.stat__label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--txt-dim);
}

/* ============================================================
   ZONE D'INTERVENTION — section claire blueprint
   ============================================================ */
.zone {
  position: relative;
  background: var(--paper);
  color: var(--ink-on-paper);
  padding: clamp(4.5rem, 10vh, 8rem) 0;
  clip-path: polygon(0 0, 100% 3.5vw, 100% 100%, 0 calc(100% - 3.5vw));
  margin-block: -1px;
}

@supports not (clip-path: polygon(0 0)) {
  .zone { clip-path: none; }
}

/* grille blueprint claire */
.zone::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(19, 26, 40, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 26, 40, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}

.zone .container { position: relative; }

.zone .mono-label { color: #B07910; }

.zone__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.zone__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.zone__desc {
  color: rgba(19, 26, 40, 0.72);
  max-width: 50ch;
  margin-bottom: 2rem;
}

.zone__depts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(19, 26, 40, 0.18);
}

.zone__dept {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid rgba(19, 26, 40, 0.18);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s ease, padding-left 0.25s var(--ease);
}
.zone__dept code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: #B07910;
}
.zone__dept:hover,
.zone__dept.is-hot {
  background: rgba(245, 166, 35, 0.16);
  padding-left: 0.9rem;
}

.zone__cert {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(19, 26, 40, 0.2);
  background: rgba(255, 255, 255, 0.5);
  max-width: 460px;
}
.zone__cert img { height: 56px; width: auto; }
.zone__cert strong { display: block; font-size: 0.95rem; }
.zone__cert p { font-size: 0.85rem; color: rgba(19, 26, 40, 0.65); }

/* carte SVG */
.zone__map svg {
  width: 100%;
  height: auto;
  display: block;
}

.dept {
  fill: rgba(19, 26, 40, 0.06);
  stroke: rgba(19, 26, 40, 0.45);
  stroke-width: 1.5;
  transition: fill 0.25s ease;
  cursor: pointer;
}
.dept:hover,
.dept.is-hot {
  fill: rgba(245, 166, 35, 0.55);
}
.dept--home {
  fill: rgba(245, 166, 35, 0.75);
  stroke: #B07910;
}

.dept-label {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  fill: rgba(19, 26, 40, 0.75);
  pointer-events: none;
}
.dept-label--home { fill: #131A28; }

/* allumage en cascade des départements (one-shot au scroll) */
.dept.lit {
  fill: rgba(245, 166, 35, 0.5);
}

/* siège Gagny — point pulsant */
.map-hq__dot {
  fill: var(--volt);
  stroke: #131A28;
  stroke-width: 2;
}
.map-hq__ring {
  fill: none;
  stroke: #B07910;
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: hqPulse 2.6s ease-out infinite;
}
.map-hq__ring--2 {
  animation-delay: 1.3s;
}
@keyframes hqPulse {
  0%   { transform: scale(1);   opacity: 0.9; }
  100% { transform: scale(3.2); opacity: 0; }
}
.map-hq__label {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: #131A28;
}

/* ============================================================
   URGENCE — bandeau hazard
   ============================================================ */
.urgence {
  position: relative;
  background: var(--ink-2);
  overflow: hidden;
}

.urgence__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding-block: clamp(2.5rem, 6vh, 4rem);
}

.urgence__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.95;
  text-transform: uppercase;
}
.urgence__title em {
  font-style: normal;
  color: var(--volt);
}

.urgence__sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-dim);
  margin-top: 0.6rem;
}

.urgence__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  color: var(--ink);
  background: var(--volt);
  padding: 0.7rem 1.6rem;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  transition: background 0.2s ease, transform 0.2s var(--ease);
}
.urgence__phone:hover {
  background: var(--volt-hot);
  transform: translateY(-3px);
}

/* ============================================================
   AGENCE
   ============================================================ */
.agence {
  padding: clamp(4.5rem, 10vh, 8rem) 0;
}

.agence__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: stretch;
}

.agence__cards {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}

.agence__card {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 0.25rem;
  border-bottom: 1px solid var(--line);
}
.agence__card .icon {
  color: var(--volt);
  margin-top: 0.2rem;
}
.agence__card strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--txt-dim);
  margin-bottom: 0.3rem;
}
.agence__card p, .agence__card a {
  font-size: 1.05rem;
  color: var(--txt);
}
.agence__card a:hover { color: var(--volt-hot); }

.agence__map {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--line-strong);
  background: var(--ink-2);
}
.agence__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.9);
}

.agence__map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-align: center;
  padding: 1.5rem;
}
.agence__map-placeholder .icon { color: var(--volt); }
.agence__map-note {
  font-size: 0.8rem;
  color: var(--txt-faint);
  max-width: 40ch;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: 0 0 clamp(4.5rem, 10vh, 8rem);
}

.faq__list {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__question {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.3rem 0.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 600;
  transition: color 0.2s ease;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question:hover { color: var(--volt-hot); }

.faq__num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--volt);
  letter-spacing: 0.1em;
}

.faq__chevron {
  transition: transform 0.3s var(--ease);
  color: var(--txt-dim);
}
.faq__item[open] .faq__chevron { transform: rotate(90deg); color: var(--volt); }

.faq__answer {
  padding: 0 0.25rem 1.5rem calc(0.25rem + 0.74rem + 2.2rem);
  color: var(--txt-dim);
  max-width: 75ch;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  position: relative;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  padding: clamp(4.5rem, 10vh, 8rem) 0;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 70% at 80% 10%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 80% 10%, black, transparent 75%);
  pointer-events: none;
}

.contact .container { position: relative; }

.contact__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

/* formulaire industriel */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-dim);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(10, 17, 30, 0.55);
  border: 1px solid var(--line-strong);
  color: var(--txt);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--txt-faint);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--volt);
  background: rgba(10, 17, 30, 0.85);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--c-lock);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2397A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.form-group select option {
  background: var(--ink-2);
  color: var(--txt);
}

.form-group input[type="file"] {
  padding: 0.7rem;
  border-style: dashed;
  font-size: 0.85rem;
  color: var(--txt-dim);
}

.form-hint {
  font-size: 0.78rem;
  color: var(--txt-faint);
}

.form-group--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
}
.form-group--checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  accent-color: var(--volt);
  flex-shrink: 0;
}
.form-group--checkbox label {
  font-family: var(--font-body);
  font-size: 0.88rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--txt-dim);
}
.form-group--checkbox a {
  color: var(--volt);
  text-decoration: underline;
}

.btn--full {
  width: 100%;
  margin-top: 1.25rem;
}

.btn--loading {
  pointer-events: none;
  opacity: 0.65;
}

.form-feedback {
  margin-top: 1rem;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 500;
}
.form-feedback.success {
  padding: 0.9rem 1.1rem;
  background: rgba(43, 213, 136, 0.12);
  border: 1px solid var(--c-access);
  color: #7FF2C0;
}
.form-feedback.error {
  padding: 0.9rem 1.1rem;
  background: rgba(255, 92, 92, 0.1);
  border: 1px solid var(--c-lock);
  color: #FFA3A3;
}

/* aside contact */
.contact__aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.contact__card {
  border: 1px solid var(--line-strong);
  padding: 1.5rem;
}
.contact__card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}
.contact__card ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.contact__card li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.98rem;
  color: var(--txt-dim);
}
.contact__card li .icon { color: var(--volt); }
.contact__card li a:hover { color: var(--volt-hot); }

.contact__card--urgence {
  background: var(--volt);
  color: var(--ink);
  border: none;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
.contact__card--urgence h3 { color: var(--ink); }
.contact__card--urgence p {
  font-size: 0.95rem;
  color: rgba(10, 17, 30, 0.75);
  margin-bottom: 1.2rem;
}
.contact__card--urgence .btn {
  background: var(--ink);
  color: var(--volt);
}
.contact__card--urgence .btn:hover {
  background: var(--ink-2);
  transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--ink);
  overflow: hidden;
}

.footer__wordmark {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 18vw, 17rem);
  line-height: 0.85;
  text-transform: uppercase;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 246, 250, 0.12);
  user-select: none;
  pointer-events: none;
  margin-top: 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem var(--gutter);
  padding-block: 3rem;
}

.footer__brand img { height: 48px; width: auto; margin-bottom: 1rem; }
.footer__brand p {
  font-size: 0.92rem;
  color: var(--txt-dim);
  max-width: 34ch;
}

.footer__social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.footer__social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  color: var(--txt-dim);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer__social a:hover {
  border-color: var(--volt);
  color: var(--volt);
}

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--volt);
  margin-bottom: 1rem;
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer__col a, .footer__col li {
  font-size: 0.92rem;
  color: var(--txt-dim);
}
.footer__col a:hover { color: var(--txt); }

.footer__legal {
  border-top: 1px solid var(--line);
  padding-block: 1.2rem;
  font-size: 0.78rem;
  color: var(--txt-faint);
  text-align: center;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  border-top: 1px solid var(--line);
  padding-block: 1.2rem 1.4rem;
  font-size: 0.85rem;
  color: var(--txt-dim);
}
.footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer__bottom-links a:hover { color: var(--volt-hot); }

/* ============================================================
   BARRE D'APPEL MOBILE
   ============================================================ */
.callbar { display: none; }

@media (max-width: 767px) {
  .callbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
    background: rgba(10, 17, 30, 0.96);
    border-top: 1px solid var(--line-strong);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .callbar__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .callbar__btn--call {
    background: var(--volt);
    color: var(--ink);
  }
  .callbar__btn--devis {
    border: 1px solid var(--line-strong);
    color: var(--txt);
  }
  .footer { padding-bottom: 76px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
  .hero__facade { opacity: 0.45; }
  .metier__grid { grid-template-columns: 1fr; }
  .metier__media { min-height: 220px; }
  .zone__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__aside { position: static; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem var(--gutter); }
  .agence__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }

  .hero { min-height: 92svh; }
  .hero__facade { display: none; }
  .hero__meta { gap: 0.7rem 1.4rem; }

  .metier__bar {
    grid-template-columns: auto 1fr auto;
  }
  .metier__hint { display: none; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .urgence__inner { justify-content: center; text-align: center; }

  .footer__bottom { justify-content: center; text-align: center; }
}

@media (max-width: 479px) {
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .stat__num { font-size: 3.2rem; }
  .zone__depts { grid-template-columns: 1fr; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
