/* =========================================================
   DERICE — v12 « ACIER & TEAL »
   Refonte — ATOM Studios

   Variante de la base v11 (sombre / acier). Le teal historique
   #21A6A5 revient comme ACCENT SECONDAIRE — il ne fait que
   ponctuer : boutons primaires, soulignés de nav, tags, eyebrows,
   filets, focus, coches. Le RAL 7035 (#D7D7D7) reste la couleur
   d'IDENTITÉ : logo, wordmark, grandes typos, grandes surfaces.

   Règle de partage, à tenir si le site évolue :
     --accent* (RAL 7035) = structure, identité, aplats larges
     --teal*   (#21A6A5)  = ponctuation, filets, éléments actifs
   ========================================================= */

:root {
  --charcoal: #11161a;
  --charcoal-2: #181f24;
  --steel: #242e35;
  --steel-light: #38454e;
  --line: #28323a;

  /* Identité — RAL 7035 */
  --accent: #d7d7d7;
  --accent-hi: #f2f2f2;
  --accent-deep: #8a9095;

  /* Accent secondaire — teal historique DERICE */
  --teal: #21a6a5;
  --teal-hi: #48cfcb;                     /* lisible sur charbon */
  --teal-deep: #177a79;
  --teal-wash: rgba(33, 166, 165, 0.12);
  --teal-line: rgba(33, 166, 165, 0.42);

  --white: #f4f7f7;
  --gray: #aeb9bd;
  --gray-dim: #76858b;

  --maxw: 1240px;
  --gut: clamp(1.1rem, 4vw, 2.4rem);
  --radius: 4px;
  --t: 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);

  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--charcoal);
  color: var(--gray);
  line-height: 1.6;
  font-size: 1.02rem;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--teal); color: #0d1214; }

/* ---------- Typo helpers ---------- */
.display, h1, h2, h3, .h {
  font-family: var(--display);
  color: var(--white);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.6rem, 7.4vw, 5.4rem); }
h2 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.55rem); }

.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--teal-hi);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--teal);
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--gray); }
.text-teal { color: var(--teal-hi); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section--alt {
  background: var(--charcoal-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
/* filet teal en tête de section alternée — motif récurrent de la variante */
.section--alt::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: min(260px, 40%); height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
}
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.section-head h2 { margin: 0.8rem 0 0.9rem; }

/* diagonal cuts between sections */
.cut-top { clip-path: polygon(0 3.5vw, 100% 0, 100% 100%, 0 100%); }
.cut-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.5vw), 0 100%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--t);
  line-height: 1;
}
.btn--primary { background: var(--teal); color: #08201f; }
.btn--primary:hover {
  background: var(--teal-hi);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -14px var(--teal);
}
.btn--ghost { background: transparent; color: var(--white); border-color: var(--steel-light); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-hi); transform: translateY(-2px); }
.btn .arrow { transition: transform var(--t); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:focus-visible { outline: 2px solid var(--teal-hi); outline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--teal-hi); outline-offset: 3px; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: var(--t);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(13, 18, 21, 0.93);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  padding: 0.65rem 0;
  box-shadow: 0 1px 0 0 var(--teal-line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }

/* Logo : RAL 7035, jamais teal (décision Rémi 04/09/2026) */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--accent); }
.brand__mark { width: 38px; height: 38px; flex: none; fill: var(--accent); transition: var(--t); }
.brand:hover .brand__mark { fill: var(--accent-hi); transform: rotate(30deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.brand__sub {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 0.22rem;
  padding-left: 0.1em;
}
/* le basculement Bâtiment / Industrie se lit au teal du sous-titre */
.brand--industrie .brand__sub { color: var(--teal-hi); }
.header.scrolled .brand__mark { width: 32px; height: 32px; }
.brand--lg .brand__mark { width: 56px; height: 56px; }
.brand--lg .brand__word { font-size: 2.15rem; }
.brand--lg .brand__sub { font-size: 0.8rem; }

.nav { display: flex; align-items: center; gap: 0.3rem; }
.nav a {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--gray);
  padding: 0.5rem 0.95rem;
  position: relative;
  transition: color var(--t);
}
/* soulignés de nav = teal */
.nav a::after {
  content: "";
  position: absolute;
  left: 0.95rem; right: 0.95rem; bottom: 0.2rem;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav a:hover, .nav a.active { color: var(--white); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav .btn { margin-left: 0.8rem; padding: 0.7rem 1.2rem; }
.nav .btn::after { display: none; }

.burger {
  display: none;
  background: none;
  border: 1px solid var(--steel-light);
  border-radius: var(--radius);
  width: 46px; height: 42px;
  cursor: pointer;
  position: relative;
}
.burger:hover { border-color: var(--teal); }
.burger span, .burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 2px;
  background: var(--white);
  transform: translate(-50%, -50%);
  transition: var(--t);
}
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger.open span { background: transparent; }
.burger.open span::before { top: 0; transform: translate(-50%, -50%) rotate(45deg); background: var(--teal); }
.burger.open span::after { top: 0; transform: translate(-50%, -50%) rotate(-45deg); background: var(--teal); }

/* =========================================================
   HERO v12 — composition en deux colonnes
   v11 : photo plein cadre, texte posé en bas.
   v12 : colonne éditoriale sur charbon, tenue par un filet teal
         vertical, face à un panneau photo cerné d'équerres ;
         un rail de matériaux ferme le bloc.
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(8rem, 13vw, 10.5rem) 0 0;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(115% 85% at 88% 8%, rgba(33, 166, 165, 0.13), transparent 62%),
    linear-gradient(180deg, #0d1215 0%, var(--charcoal) 55%);
}
/* trame acier brossé, très basse intensité */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 10px);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.2rem, 5vw, 3.4rem);
  align-items: center;
  width: 100%;
}
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.02fr 0.98fr; } }

.hero__col { position: relative; padding-left: clamp(1.1rem, 2.2vw, 1.9rem); }
.hero__col::before {
  content: "";
  position: absolute; left: 0; top: 0.4rem; bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 55%, transparent 100%);
}
.hero h1 { margin: 1.05rem 0 1.3rem; }
/* la grande typo reste RAL 7035 : le teal ponctue, il n'occupe pas */
.hero h1 .accent { display: block; color: var(--accent); }
.hero p { max-width: 560px; margin-bottom: 2rem; color: var(--white); opacity: 0.9; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__media {
  position: relative;
  isolation: isolate;
  min-height: clamp(300px, 50vw, 520px);
}
/* équerre teal en bas à gauche */
.hero__media::before {
  content: "";
  position: absolute; left: -13px; bottom: -13px; z-index: 2;
  width: 52%; height: 46%;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
}
/* équerre RAL 7035 en haut à droite */
.hero__media::after {
  content: "";
  position: absolute; right: -13px; top: -13px; z-index: 2;
  width: 40%; height: 36%;
  border-right: 1px solid var(--accent-deep);
  border-top: 1px solid var(--accent-deep);
  opacity: 0.7;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url("/assets/dr2025.jpg") center 35% / cover no-repeat;
  filter: saturate(0.72) contrast(1.08);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.hero__overlay {
  position: absolute; inset: 0;
  border-radius: var(--radius);
  background:
    linear-gradient(205deg, rgba(17, 22, 26, 0.08) 0%, rgba(15, 20, 23, 0.6) 60%, rgba(23, 122, 121, 0.34) 100%);
}
.hero__badge {
  position: absolute; left: 0; bottom: 0; z-index: 3;
  background: var(--teal);
  color: #08201f;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  font-size: 0.74rem;
  padding: 0.5rem 1rem;
  border-radius: 0 var(--radius) 0 var(--radius);
}

/* rail de bas de hero : matériaux + invite au défilement */
.hero__rail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem clamp(1.2rem, 3vw, 2.4rem);
  margin-top: clamp(2rem, 4vw, 3.2rem);
  padding-top: 1.1rem;
  padding-bottom: clamp(1.4rem, 3vw, 2.2rem);
  border-top: 1px solid var(--line);
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--gray-dim);
}
.hero__mat { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--gray); }
.hero__mat::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--teal);
  transform: rotate(45deg);
  flex: none;
}
.hero__scroll {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--gray-dim);
}
.hero__scroll::after {
  content: "";
  width: 46px; height: 1px;
  background: linear-gradient(90deg, var(--teal), transparent);
}

/* page hero (interior) */
.pagehero {
  position: relative;
  padding: 11rem 0 4.5rem;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.pagehero::after {
  content: "";
  position: absolute; left: 0; bottom: -1px;
  width: min(300px, 44%); height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
}
.pagehero__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transform: scale(1.05); }
.pagehero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(12, 17, 20, 0.95) 28%, rgba(15, 22, 25, 0.7) 72%, rgba(23, 122, 121, 0.4) 100%);
}
.pagehero h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); margin: 0.9rem 0 0.6rem; }
.pagehero p { max-width: 600px; color: var(--white); opacity: 0.9; }
.crumb { font-size: 0.85rem; color: var(--gray-dim); letter-spacing: 0.05em; }
.crumb a { color: var(--gray); }
.crumb a:hover { color: var(--teal-hi); }

/* ---------- Intro / présentation ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 920px) { .split { grid-template-columns: 1.05fr 0.95fr; } .split--rev > :first-child { order: 2; } }
.media-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.78) contrast(1.06); }
.media-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(13, 18, 20, 0.2), rgba(33, 166, 165, 0.22));
  mix-blend-mode: multiply;
}
/* les tags sont du ressort du teal */
.media-frame__tag {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  background: var(--teal);
  color: #08201f;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.5rem 1rem;
  border-radius: 0 var(--radius) 0 0;
}
.feature-list { margin-top: 1.6rem; display: grid; gap: 1rem; }
.feature-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.feature-list .mark { color: var(--teal-hi); font-family: var(--display); font-weight: 700; flex: none; margin-top: 0.1rem; }
.feature-list strong { color: var(--white); font-family: var(--display); text-transform: uppercase; letter-spacing: 0.04em; display: block; font-weight: 600; }

/* ---------- Métiers grid ---------- */
.metiers { display: grid; gap: 1.1rem; grid-template-columns: repeat(1, 1fr); }
@media (min-width: 560px) { .metiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .metiers { grid-template-columns: repeat(3, 1fr); } }
.tile {
  position: relative;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem 1.7rem;
  overflow: hidden;
  transition: var(--t);
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.tile::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--teal);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--t);
}
.tile::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(33, 166, 165, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity var(--t);
}
.tile:hover { transform: translateY(-5px); border-color: var(--teal-line); background: #1c242a; }
.tile:hover::before { transform: scaleY(1); }
.tile:hover::after { opacity: 1; }
.tile__icon {
  width: 56px; height: 56px;
  margin-bottom: 1.1rem;
  filter: brightness(0) invert(1) opacity(0.85);
  transition: var(--t);
}
.tile:hover .tile__icon { filter: none; transform: scale(1.06); }
.tile h3 { margin-bottom: 0.5rem; }
.tile p { font-size: 0.94rem; }
.tile .num {
  position: absolute; right: 1.2rem; top: 1rem;
  font-family: var(--display); font-weight: 700;
  font-size: 1.1rem; color: var(--steel-light);
  transition: color var(--t);
}
.tile:hover .num { color: var(--teal-hi); }

/* ---------- Stats band ---------- */
.stats {
  background:
    linear-gradient(rgba(11, 15, 17, 0.88), rgba(11, 15, 17, 0.92)),
    url("/assets/derice0561.png") center / cover fixed no-repeat;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
@media (min-width: 800px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; position: relative; }
/* filet teal au-dessus de chaque chiffre */
.stat::before { content: ""; display: block; width: 26px; height: 2px; background: var(--teal); margin: 0 auto 0.9rem; }
.stat__num { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4rem); color: var(--white); line-height: 1; }
.stat__num .text-teal { color: var(--teal-hi); }
.stat__label { text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.75rem; color: var(--gray-dim); margin-top: 0.6rem; font-family: var(--display); }

/* ---------- Bureau étude / blocs image ---------- */
.bandblock {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.6rem, 4vw, 3rem);
}
.bandblock__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.bandblock__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(12, 17, 20, 0.94) 8%, rgba(15, 22, 25, 0.72) 62%, rgba(23, 122, 121, 0.38) 100%);
}
.bandblock__inner { max-width: 560px; }

/* ---------- Galerie réalisations ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.4rem; }
.filters button {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray);
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--t);
}
.filters button:hover { color: var(--white); border-color: var(--teal-line); }
.filters button.active { background: var(--teal); color: #08201f; border-color: var(--teal); }

.gallery { display: grid; gap: 1.1rem; grid-template-columns: repeat(1, 1fr); }
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  transition: var(--t);
}
.card.big { min-height: 360px; }
@media (min-width: 600px) { .card.big { grid-column: span 2; } }
.card__bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transition: transform 0.6s ease;
}
.card.photo .card__bg { filter: saturate(0.8) contrast(1.06); }
/* tuiles sans photo : dégradé acier réchauffé d'un halo teal */
.card.tealtile .card__bg {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(33, 166, 165, 0.3), transparent 62%),
    linear-gradient(135deg, var(--steel) 0%, var(--charcoal-2) 100%);
}
.card__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(11, 14, 15, 0.94) 5%, rgba(11, 14, 15, 0.15) 70%, rgba(33, 166, 165, 0.16) 100%);
  transition: var(--t);
}
.card:hover { border-color: var(--teal-line); }
.card:hover .card__bg { transform: scale(1.07); }
.card:hover .card__overlay { background: linear-gradient(0deg, rgba(17, 22, 26, 0.92) 5%, rgba(33, 166, 165, 0.34) 100%); }
.card__body { padding: 1.4rem; width: 100%; }
/* tags de catégorie = teal */
.card__cat { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.7rem; color: var(--teal-hi); }
.card__title { font-family: var(--display); text-transform: uppercase; color: var(--white); font-weight: 700; font-size: 1.3rem; line-height: 1.05; margin-top: 0.3rem; }
.card__icon { position: absolute; right: 1.2rem; top: 1.2rem; width: 40px; height: 40px; filter: brightness(0) invert(1) opacity(0.65); z-index: 1; transition: var(--t); }
.card:hover .card__icon { opacity: 1; }
.is-hidden { display: none; }

/* ---------- Values / steps ---------- */
.steps { display: grid; gap: 1.1rem; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  position: relative;
  transition: var(--t);
}
.step::before {
  content: "";
  position: absolute; left: 1.6rem; right: 1.6rem; top: -1px;
  height: 2px; background: var(--teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t);
}
.step:hover { border-color: var(--teal-line); transform: translateY(-4px); }
.step:hover::before { transform: scaleX(1); }
.step__n { font-family: var(--display); font-weight: 700; font-size: 2.4rem; color: var(--teal-hi); line-height: 1; }
.step h3 { margin: 0.7rem 0 0.5rem; }

/* ---------- Recrutement / postes ---------- */
.jobs { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .jobs { grid-template-columns: repeat(2, 1fr); } }
.job {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  transition: var(--t);
}
.job:hover { background: #1c242a; transform: translateX(4px); border-left-color: var(--teal-hi); }
.job h3 { font-size: 1.15rem; }
.job span { font-size: 0.85rem; color: var(--gray-dim); }
.job .chev { color: var(--teal-hi); font-size: 1.3rem; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; } }
.form {
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-top: 2px solid var(--teal);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--gray);
  margin-bottom: 0.45rem;
}
.field label .req { color: var(--teal-hi); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  transition: var(--t);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-wash);
}
.field input::placeholder, .field textarea::placeholder { color: var(--gray-dim); }
.form-row { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form .btn { width: 100%; justify-content: center; margin-top: 0.4rem; }

.form-success {
  display: none;
  align-items: center;
  gap: 0.9rem;
  background: var(--teal-wash);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  color: var(--white);
  margin-bottom: 1.3rem;
}
.form-success.show { display: flex; animation: pop 0.4s ease; }
.form-success .dot { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--teal); color: #08201f; display: grid; place-items: center; font-weight: 700; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* Message d'erreur du formulaire (même gabarit que .form-success, teinte alerte) */
.form-error {
  display: none;
  align-items: center;
  gap: 0.9rem;
  background: rgba(214, 90, 60, 0.14);
  border: 1px solid #a8452c;
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  color: var(--white);
  margin-bottom: 1.3rem;
}
.form-error.show { display: flex; animation: pop 0.4s ease; }
.form-error .dot { width: 34px; height: 34px; flex: none; border-radius: 50%; background: #d65a3c; color: #1b0703; display: grid; place-items: center; font-weight: 700; }

/* Pot de miel anti-robots : invisible pour l'humain, présent pour les bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

button[disabled] { opacity: 0.6; cursor: progress; }

.info-block { display: grid; gap: 1.4rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: 0; }
.info-item .ico {
  width: 42px; height: 42px; flex: none;
  border-radius: var(--radius);
  background: var(--teal-wash);
  color: var(--teal-hi);
  display: grid; place-items: center;
  font-size: 1.2rem;
  border: 1px solid var(--teal-line);
}
.info-item h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.info-item a:hover { color: var(--teal-hi); }
.map-frame { margin-top: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-frame iframe { width: 100%; height: 260px; border: 0; filter: grayscale(0.5) contrast(1.1) brightness(0.85); }

/* ---------- Qualibat banner ---------- */
.qualibat {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.6rem 1.9rem;
}
.qualibat img { background: var(--white); padding: 0.5rem 0.7rem; border-radius: var(--radius); height: 60px; width: auto; }
.qualibat p { margin: 0; }

/* ---------- CTA band ---------- */
/* grande surface : acier, pas teal. Le teal se contente du halo et de l'eyebrow. */
.ctaband {
  text-align: center;
  background:
    radial-gradient(85% 130% at 50% 0%, rgba(33, 166, 165, 0.26), transparent 62%),
    linear-gradient(160deg, var(--steel-light) 0%, var(--steel) 45%, var(--charcoal-2) 100%);
}
.ctaband h2 { margin-bottom: 1rem; }
.ctaband .hero__cta { justify-content: center; }
.ctaband p { max-width: 620px; margin: 0 auto 2rem; color: var(--white); opacity: 0.9; }

/* ---------- Footer ---------- */
.footer { background: #0b1013; border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 4.5rem); position: relative; }
.footer::before {
  content: "";
  position: absolute; top: -1px; left: 0;
  width: min(220px, 34%); height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
}
.footer__grid { display: grid; gap: 2.4rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h4 { font-family: var(--display); text-transform: uppercase; color: var(--white); letter-spacing: 0.1em; font-size: 0.95rem; margin-bottom: 1.1rem; }
.footer p, .footer a, .footer li { font-size: 0.95rem; color: var(--gray); }
.footer a:hover { color: var(--teal-hi); }
.footer__brand .brand { margin-bottom: 1.1rem; }
.footer ul { display: grid; gap: 0.55rem; }
.footer__bottom {
  margin-top: 2.8rem; padding: 1.4rem 0; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: var(--gray-dim);
}
.footer__bottom a:hover { color: var(--teal-hi); }
.tag-qualibat { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--teal-hi); font-family: var(--display); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.8rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2,0.7,0.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Mobile nav ---------- */
@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 340px);
    background: var(--charcoal-2);
    border-left: 2px solid var(--teal);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.2rem;
    padding: 6rem 1.6rem 2rem;
    transform: translateX(100%);
    transition: transform var(--t);
    z-index: 90;
  }
  .nav.open { transform: translateX(0); box-shadow: -30px 0 60px -20px #000; }
  .nav a { padding: 0.9rem 0.4rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav a.active { color: var(--teal-hi); }
  .nav .btn { margin: 0.8rem 0 0; justify-content: center; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(8, 11, 12, 0.6); z-index: 80; opacity: 0; pointer-events: none; transition: opacity var(--t); }
  .nav-backdrop.show { opacity: 1; pointer-events: auto; }
}

/* le hero passe en pile sous 960px : la photo repasse derrière le texte */
@media (max-width: 959px) {
  .hero { justify-content: flex-end; padding-top: 7.5rem; }
  .hero__media { order: -1; min-height: clamp(240px, 46vw, 340px); }
  .hero__media::before { width: 40%; height: 40%; }
}

/* ---------- Page mentions légales ---------- */
.legal { max-width: 820px; }
.legal h2 {
  font-size: 1.35rem; margin: 2.4rem 0 0.8rem; color: var(--white);
  display: flex; align-items: center; gap: 0.8rem;
}
.legal h2::before { content: ""; width: 18px; height: 2px; background: var(--teal); flex: none; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--gray); line-height: 1.75; margin-bottom: 1rem; }
.legal a { color: var(--teal-hi); text-decoration: underline; text-underline-offset: 3px; }
.legal .todo { color: #d6a13c; font-style: italic; }

/* =========================================================
   DEUX PÔLES v12 — une seule plaque, fendue par un joint teal
   v11 : deux cartes indépendantes côte à côte.
   v12 : une plaque d'acier unique, séparée en son milieu par un
         joint teal sur lequel est posé l'écrou de la marque.
   ========================================================= */
.poles {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-reset: pole;
}
@media (min-width: 860px) { .poles { grid-template-columns: 1fr 1fr; } }
/* filet de tête : moitié RAL (Bâtiment), moitié teal (Industrie) */
.poles::before {
  content: "";
  position: absolute; left: 0; right: 0; top: -1px;
  height: 2px; z-index: 3;
  background: linear-gradient(90deg, var(--accent) 0 50%, var(--teal) 50% 100%);
}
.poles__nut { display: none; }
@media (min-width: 860px) {
  .poles__nut {
    display: grid; place-items: center;
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--charcoal-2);
    border: 1px solid var(--teal-line);
    z-index: 2;
  }
  .poles__nut svg { width: 24px; height: 24px; fill: var(--teal); }
}
.pole {
  position: relative;
  display: flex; flex-direction: column; gap: 0.9rem;
  padding: clamp(1.7rem, 3vw, 2.6rem);
  transition: background var(--t);
  overflow: hidden;
}
/* numéro de pôle, en tête de colonne */
.pole::before {
  counter-increment: pole;
  content: "0" counter(pole);
  position: relative; z-index: 1;
  font-family: var(--display); font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.24em;
  color: var(--teal-hi);
}
/* lavis teal au survol */
.pole::after {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background: radial-gradient(95% 70% at 50% 100%, var(--teal-wash), transparent 72%);
  opacity: 0;
  transition: opacity var(--t);
}
.pole > * { position: relative; z-index: 1; }
.pole:hover { background: #1c242a; }
.pole:hover::after { opacity: 1; }
/* le joint qui fend la plaque */
.pole:last-child { border-top: 1px solid var(--teal-line); }
@media (min-width: 860px) {
  .pole:last-child { border-top: 0; border-left: 1px solid var(--teal-line); }
}
.pole .brand { pointer-events: none; }
.pole p { font-size: 0.98rem; }
.pole ul { display: grid; gap: 0.35rem; font-size: 0.92rem; }
.pole li { display: flex; gap: 0.6rem; }
.pole li::before { content: "◆"; color: var(--teal); font-size: 0.65em; line-height: 2.1; flex: none; }
.pole .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Certifications (QUALIBAT + ISO 9001) ---------- */
.certs { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .certs { grid-template-columns: 1fr 1fr; } }
.cert {
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
}
.cert__badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 64px; height: 64px; padding: 0 0.9rem; margin-bottom: 1rem;
  border-radius: var(--radius);
  background: var(--white); color: var(--charcoal);
  font-family: var(--display); font-weight: 700; letter-spacing: 0.04em; font-size: 1.05rem;
}
.cert__badge img { height: 44px; width: auto; }
.cert h3 { margin-bottom: 0.5rem; }
.cert p + p { margin-top: 0.7rem; }
.cert ul { margin-top: 0.9rem; display: grid; gap: 0.4rem; font-size: 0.94rem; }
.cert li { display: flex; gap: 0.6rem; }
.cert li::before { content: "—"; color: var(--teal-hi); flex: none; }

/* ---------- Spécifications (page industrie) ---------- */
.specs { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .specs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .specs { grid-template-columns: repeat(3, 1fr); } }
.spec {
  position: relative;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: var(--t);
  overflow: hidden;
}
.spec::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--teal);
  transform: scaleY(0); transform-origin: top;
  transition: transform var(--t);
}
.spec:hover { border-color: var(--teal-line); transform: translateY(-4px); }
.spec:hover::before { transform: scaleY(1); }
.spec__k { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.72rem; color: var(--teal-hi); }
.spec h3 { margin: 0.5rem 0; font-size: 1.25rem; }
.spec p { font-size: 0.94rem; }

/* ---------- Chaîne numérique de fabrication (BE → atelier) ---------- */
.chain { display: grid; gap: 0.8rem; grid-template-columns: 1fr; counter-reset: chain; }
@media (min-width: 760px) { .chain { grid-template-columns: repeat(4, 1fr); } }
.chain__step {
  position: relative;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem 1.4rem;
}
.chain__step::before {
  counter-increment: chain;
  content: "0" counter(chain);
  display: block; margin-bottom: 0.6rem;
  font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: 1;
  color: var(--teal);
}
@media (min-width: 760px) {
  .chain__step:not(:last-child)::after {
    content: "→";
    position: absolute; right: -0.95rem; top: 50%; transform: translateY(-50%);
    color: var(--teal); font-size: 1.2rem; z-index: 1;
  }
}
.chain__step h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.chain__step p { font-size: 0.9rem; }

/* Correctifs (relecture v15) : le CTA de la nav héritait de la couleur des liens ; les ancres passaient sous le header fixe */
.nav .btn--primary, .nav .btn--primary:hover { color: #14181a; }
[id] { scroll-margin-top: 90px; }
