/* =========================================================
   Jallet Innov'Elec — feuille de style
   Palette issue du logo : noir, doré, vert
   ========================================================= */

/* Polices hébergées sur le site (aucun appel à Google) */
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/cinzel-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/cinzel-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/montserrat-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/montserrat-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


:root {
  --black: #0b0c0e;
  --black-2: #111317;
  --black-3: #181b20;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);

  --gold: #c8894a;
  --gold-light: #e0a868;
  --gold-soft: rgba(200, 137, 74, .14);
  --green: #6fa344;
  --green-light: #8cc45c;
  --green-soft: rgba(111, 163, 68, .14);

  --text: #f3f1ec;
  --muted: #a3a6ad;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --serif: "Cinzel", "Trajan Pro", Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; }

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

.text-gold { color: var(--gold); }
.text-green { color: var(--green-light); }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }

/* ---------- Typo commune ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-radius: 2px;
}

.section { padding: clamp(80px, 11vw, 130px) 0; position: relative; }
.section--alt { background: var(--black-2); border-block: 1px solid var(--line); }

.section__head { max-width: 720px; margin-bottom: 56px; }
.section__title {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.18;
  letter-spacing: .01em;
}
.section__lead { margin: 0; color: var(--muted); font-size: 1.06rem; }

/* ---------- Boutons ---------- */
.btn {
  --bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--bg);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  --bg: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a1206;
  box-shadow: 0 10px 30px -10px rgba(200, 137, 74, .7);
}
.btn--gold:hover { box-shadow: 0 16px 40px -12px rgba(224, 168, 104, .85); }
.btn--green {
  --bg: linear-gradient(135deg, var(--green-light), var(--green));
  color: #0c1506;
  box-shadow: 0 10px 30px -10px rgba(111, 163, 68, .7);
}
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn--sm { padding: 11px 20px; font-size: .74rem; }
.btn--block { width: 100%; }

/* ---------- En-tête ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled,
.header--solid {
  background: var(--black);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.header__logo { flex: none; }
.header__logo img { height: 44px; width: auto; max-width: none; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav__link {
  position: relative;
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: #d6d5d1;
  transition: color .2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: #fff; }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.burger { display: none; background: none; border: 0; padding: 10px; }
.burger span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 0 130px;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 15%, rgba(111, 163, 68, .16), transparent 60%),
    radial-gradient(800px 500px at 10% 90%, rgba(200, 137, 74, .14), transparent 60%),
    var(--black);
}
.hero::after { /* rappel du liseré bleu-blanc-rouge du logo */
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: min(420px, 60%);
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #2b4bd8 20%, #fff 50%, #e0312f 80%, transparent);
  opacity: .5;
}
.hero__circuit { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.trace { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 3.2s var(--ease) forwards; }
.trace--gold { stroke: var(--gold); }
.trace--green { stroke: var(--green); animation-delay: .4s; }
.trace--dim { stroke: rgba(255, 255, 255, .18); animation-delay: .8s; }
.nodes circle { fill: var(--gold-light); opacity: 0; animation: pop .5s ease forwards 2.2s, pulse 3s ease-in-out infinite 2.8s; }
.nodes circle:nth-child(even) { fill: var(--green-light); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }
@keyframes pulse { 50% { opacity: .35; } }

.hero__inner { position: relative; z-index: 1; }
.hero__title {
  max-width: 900px;
  margin: 0 0 26px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.hero__lead { max-width: 620px; margin: 0 0 40px; color: #c3c4c7; font-size: clamp(1rem, 1.4vw, 1.14rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 54px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .88rem; }
.hero__badges li { display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--green { background: var(--green-light); box-shadow: 0 0 12px var(--green); }
.dot--gold { background: var(--gold-light); box-shadow: 0 0 12px var(--gold); }

.hero__scroll { position: absolute; left: 50%; bottom: 34px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--line-strong); border-radius: 14px; z-index: 1; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--gold); border-radius: 2px; animation: scroll 1.8s ease-in-out infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@keyframes fade { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Cartes ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  position: relative;
  padding: 34px 30px;
  background: linear-gradient(180deg, var(--black-3), var(--black-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(200, 137, 74, .35); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.card p { margin: 0 0 20px; color: var(--muted); font-size: .95rem; }
.card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: var(--gold-soft);
  color: var(--gold-light);
  font-size: 1.5rem;
}
.card__icon svg, .feature svg, .contact__ic svg, .fab svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card__title { margin: 0 0 12px; font-size: 1.18rem; font-weight: 600; }
.card__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.card__list li { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: .75rem; color: #c9c9c6; }
.card--cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background:
    radial-gradient(400px 220px at 100% 0%, rgba(111, 163, 68, .22), transparent 70%),
    radial-gradient(400px 220px at 0% 100%, rgba(200, 137, 74, .22), transparent 70%),
    var(--black-3);
  border-color: rgba(200, 137, 74, .3);
}
.card--cta .card__title { font-family: var(--serif); font-size: 1.4rem; }

/* ---------- Deux pôles ---------- */
.poles { position: relative; z-index: 2; margin-top: -60px; }
.poles__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pole {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 28px;
  background: var(--black-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), border-color .35s;
}
.pole:hover { transform: translateY(-4px); }
.pole--gold:hover { border-color: rgba(200, 137, 74, .5); }
.pole--green:hover { border-color: rgba(140, 196, 92, .5); }
.pole__icon { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 16px; font-size: 1.5rem; }
.pole__icon svg { fill: currentColor; }
.pole--gold .pole__icon { background: var(--gold-soft); color: var(--gold-light); }
.pole--green .pole__icon { background: var(--green-soft); color: var(--green-light); }
.pole__body { flex: 1; min-width: 0; }
.pole__body strong { display: block; margin-bottom: 4px; font-size: 1.08rem; }
.pole__body span { color: var(--muted); font-size: .9rem; }
.pole__arrow { font-size: 1.4rem; color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.pole--gold:hover .pole__arrow { color: var(--gold-light); transform: translateX(4px); }
.pole--green:hover .pole__arrow { color: var(--green-light); transform: translateX(4px); }

/* ---------- Sous-titres de section ---------- */
.subhead { max-width: 720px; margin: 90px 0 36px; }
.subhead__title { margin: 0 0 14px; font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; }
.eyebrow--green { color: var(--green-light); }
.eyebrow--green::before { background: linear-gradient(90deg, var(--gold), var(--green)); }

/* ---------- Domotique KNX ---------- */
.knx { background: radial-gradient(800px 420px at 100% 0%, rgba(111, 163, 68, .14), transparent 60%), var(--black-2); }
.knx__intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: 70px; align-items: center; margin-bottom: 60px; }
.knx__text .section__lead { margin-bottom: 30px; }
.knx__badge {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: clamp(36px, 5vw, 60px) clamp(28px, 4vw, 50px);
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 30px 80px -30px rgba(111, 163, 68, .55), 0 0 0 1px rgba(140, 196, 92, .35);
  text-align: center;
}
.knx__badge img { width: min(100%, 360px); height: auto; }
.knx__badge p { margin: 0; max-width: 320px; color: #4a5058; font-size: .9rem; font-weight: 500; }
.domo__steps { display: grid; gap: 14px; margin-bottom: 34px; }
.domo__steps div { padding: 18px 22px; border-left: 3px solid var(--green); background: var(--green-soft); border-radius: 0 12px 12px 0; }
.domo__steps strong { display: block; margin-bottom: 4px; }
.domo__steps span { color: var(--muted); font-size: .92rem; }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--black-3); }
.project img { width: 100%; height: 100%; object-fit: cover; }
.project figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; background: linear-gradient(transparent, rgba(11, 12, 14, .92)); font-weight: 600; }
.project--empty { display: grid; place-content: center; justify-items: center; gap: 12px; border: 1px dashed rgba(140, 196, 92, .35); background: rgba(111, 163, 68, .05); color: var(--muted); font-size: .88rem; }
.project--empty svg { font-size: 2rem; color: var(--green-light); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }

.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 30px 12px;
  background: var(--black-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  font-size: .88rem;
  font-weight: 500;
  transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.feature svg { font-size: 2rem; color: var(--green-light); }
.feature:hover { border-color: rgba(140, 196, 92, .45); background: var(--green-soft); transform: translateY(-4px); }

/* ---------- Méthode ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; counter-reset: s; position: relative; }
.steps::before {
  content: "";
  position: absolute;
  top: 28px; left: 28px; right: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--green));
  opacity: .5;
}
.step { position: relative; }
.step__num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 26px;
  border-radius: 50%;
  background: var(--black);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--serif);
  font-weight: 700;
  position: relative;
  box-shadow: 0 0 0 8px var(--black-2);
}
.step:nth-child(even) .step__num { border-color: var(--green); color: var(--green-light); }
.step h3 { margin: 0 0 10px; font-size: 1.08rem; }
.step p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- Réalisations ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shot {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
}
.shot--wide { grid-column: span 2; aspect-ratio: auto; min-height: 280px; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s var(--ease); }
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(11, 12, 14, .92));
  transition: opacity .3s;
}
.shot__label {
  position: absolute;
  left: 22px; bottom: 18px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #fff;
}
.shot__label::after { content: "↗"; color: var(--gold-light); transition: transform .3s var(--ease); }
.shot:hover img { transform: scale(1.05); }
.shot:hover .shot__label::after { transform: translate(3px, -3px); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(5, 6, 8, .92);
  backdrop-filter: blur(6px);
  animation: fade .3s ease;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 1200px; }
.lightbox img { max-height: 80vh; margin: auto; border-radius: 10px; background: #fff; }
.lightbox figcaption { margin-top: 14px; text-align: center; color: var(--muted); }
.lightbox__close { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--black-3); font-size: 1.6rem; line-height: 1; }

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; align-items: center; }
.about__visual {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(111, 163, 68, .16), transparent 65%);
}
.about__visual::before, .about__visual::after {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px dashed rgba(200, 137, 74, .35);
  animation: spin 60s linear infinite;
}
.about__visual::after { inset: 18%; border-color: rgba(111, 163, 68, .35); animation-direction: reverse; animation-duration: 45s; }
@keyframes spin { to { transform: rotate(360deg); } }
.about__visual img { position: relative; z-index: 1; width: 70%; height: auto; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(111, 163, 68, .25)); }
.about__text p { color: var(--muted); }
.about__text strong { color: var(--text); font-weight: 600; }
.about__list { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.about__list li { display: flex; align-items: center; gap: 14px; }
.about__list li::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238cc45c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ---------- Contact ---------- */
.contact { background: radial-gradient(700px 400px at 0% 0%, rgba(200, 137, 74, .1), transparent 60%), var(--black); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: start; }
.contact__list { margin: 40px 0 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.contact__list li { display: flex; align-items: center; gap: 18px; }
.contact__list small { display: block; color: var(--muted); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.contact__list a { font-weight: 600; overflow-wrap: anywhere; transition: color .2s; }
.contact__list a:hover { color: var(--gold-light); }
.contact__ic { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--gold-soft); color: var(--gold-light); font-size: 1.35rem; }

.form {
  padding: clamp(26px, 4vw, 42px);
  background: var(--black-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}
.form { grid-template-columns: minmax(0, 1fr); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span { font-size: .8rem; font-weight: 600; color: #cfcfcb; letter-spacing: .04em; }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--black);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.field input.is-invalid, .field textarea.is-invalid { border-color: #e06a5a; }
.field textarea::placeholder { color: #6d7077; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .84rem; cursor: pointer; transition: all .2s; }
.chip input:checked + span { background: var(--green-soft); border-color: var(--green-light); color: var(--green-light); }
.chip input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.form__note { margin: 0; min-height: 1.4em; font-size: .88rem; color: var(--green-light); text-align: center; }
.form__note.is-error { color: #e98a7c; }
.form__legal { margin: -4px 0 0; color: #7d8087; font-size: .76rem; line-height: 1.5; text-align: center; }
.form__legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.form__legal a:hover { color: var(--gold-light); }

/* ---------- Pages légales ---------- */
.legal { padding: 150px 0 100px; background: radial-gradient(700px 360px at 90% 0%, rgba(111, 163, 68, .1), transparent 60%), var(--black); }
.legal__inner { max-width: 820px; }
.legal__back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px; color: var(--muted); font-size: .88rem; transition: color .2s; }
.legal__back:hover { color: var(--gold-light); }
.legal h1 { margin: 0 0 12px; font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15; }
.legal__date { margin: 0 0 50px; color: var(--muted); font-size: .9rem; }
.legal__toc { margin: 0 0 50px; padding: 24px 28px; background: var(--black-2); border: 1px solid var(--line); border-radius: var(--radius); }
.legal__toc strong { display: block; margin-bottom: 10px; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.legal__toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 30px; color: var(--muted); font-size: .92rem; }
.legal__toc a:hover { color: var(--gold-light); }
.legal section { padding-top: 10px; margin-bottom: 44px; }
.legal h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 16px; font-size: 1.3rem; font-weight: 600; }
.legal h2 span { color: var(--gold); font-family: var(--serif); font-size: 1rem; }
.legal h3 { margin: 24px 0 8px; font-size: 1.02rem; font-weight: 600; }
.legal p, .legal li { color: #c3c4c7; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.legal__card { display: grid; grid-template-columns: max-content 1fr; gap: 10px 26px; margin: 0; padding: 24px 28px; background: var(--black-2); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; }
.legal__card dt { color: var(--muted); font-size: .88rem; }
.legal__card dd { margin: 0; font-weight: 500; }
.legal__table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.legal__table th, .legal__table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: #c3c4c7; }
.legal__table th { color: var(--gold); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.legal__scroll { overflow-x: auto; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; font-size: .8rem; }
.footer__legal a { color: #7d8087; }
.footer__legal a:hover { color: var(--gold-light); }

/* ---------- Pied de page ---------- */
.footer { padding: 40px 0; border-top: 1px solid var(--line); background: #08090a; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.footer__logo { height: 38px; width: auto; max-width: none; flex: none; object-fit: contain; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 26px; font-size: .88rem; color: var(--muted); }
.footer__nav a:hover { color: var(--gold-light); }
.footer__copy { margin: 0; color: #6d7077; font-size: .82rem; }

/* ---------- Bouton d'appel mobile ---------- */
.fab {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 40;
  display: none;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-light), var(--green));
  color: #0c1506;
  font-size: 1.5rem;
  box-shadow: 0 12px 30px -8px rgba(111, 163, 68, .8);
}

/* ---------- Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .nav { gap: 24px; }
  .nav__link { font-size: .82rem; }
}

@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .knx__intro, .about, .contact__grid { grid-template-columns: minmax(0, 1fr); gap: 50px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .knx__badge { max-width: 480px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .steps::before { display: none; }
  .about__visual { max-width: 360px; margin-inline: auto; width: 100%; }
}

@media (max-width: 860px) {
  .burger { display: block; position: relative; z-index: 2; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    background: rgba(11, 12, 14, .97);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__link { font-family: var(--serif); font-size: 1.5rem; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .fab { display: grid; }
  .footer { padding-bottom: 100px; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .header__inner { height: 72px; }
  .header__logo img { height: clamp(28px, 9.5vw, 36px); }
  .footer__logo { height: clamp(28px, 9.5vw, 38px); }
  .cards, .gallery, .steps, .form__row { grid-template-columns: minmax(0, 1fr); }
  .shot--wide { grid-column: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .poles__grid, .projects { grid-template-columns: minmax(0, 1fr); }
  .poles { margin-top: -30px; }
  .pole { padding: 20px; gap: 16px; }
  .subhead { margin-top: 70px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__scroll { display: none; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__nav, .footer__legal { justify-content: center; }
  .legal { padding-top: 120px; }
  .legal__toc ol { columns: 1; }
  .legal__card { grid-template-columns: 1fr; gap: 2px; }
  .legal__card dd { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .trace { stroke-dashoffset: 0; }
  .nodes circle { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
