:root {
  --ink: #101820;
  --muted: #53616b;
  --line: #dfe7eb;
  --paper: #ffffff;
  --soft: #f4f7f6;
  --yellow: #f4c430;
  --teal: #0e6f73;
  --green: #257a4f;
  --shadow: 0 18px 55px rgba(16, 24, 32, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  padding: 0 clamp(18px, 5vw, 64px);
  color: #ffffff;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header[data-scrolled="true"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(16, 24, 32, 0.08);
  backdrop-filter: blur(14px);
}

.brand,
.nav,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 6px;
  color: var(--ink);
  background: var(--yellow);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: currentColor;
  font-size: 0.75rem;
  opacity: 0.76;
}

.nav {
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.95rem;
}

.nav a,
.header-call {
  transition: opacity 160ms ease;
}

.nav a:hover,
.header-call:hover {
  opacity: 0.72;
}

.header-call {
  padding: 10px 15px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-weight: 750;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #ffffff;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("/assets/hero-electricite-chantier.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.88) 0%, rgba(16, 24, 32, 0.64) 48%, rgba(16, 24, 32, 0.32) 100%),
    linear-gradient(0deg, rgba(16, 24, 32, 0.84) 0%, rgba(16, 24, 32, 0.1) 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  padding: 150px clamp(20px, 5vw, 64px) 54px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(3.3rem, 8vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 42px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  white-space: nowrap;
}

.button.primary {
  color: var(--ink);
  background: var(--yellow);
}

.button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.09);
}

.button.outline {
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(100%, 900px);
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.16);
}

.hero-facts div {
  min-height: 98px;
  padding: 18px;
  background: rgba(16, 24, 32, 0.52);
}

.hero-facts dt {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  font-weight: 800;
}

.band {
  background: var(--soft);
}

.section,
.band {
  padding: clamp(58px, 8vw, 108px) 0;
}

.section-inner {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
}

.intro-grid,
.split,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 7vw, 86px);
  align-items: start;
}

.intro-grid p,
.contact-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-heading.compact {
  align-items: start;
}

.section-heading .section-kicker {
  color: var(--teal);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 256px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.service-card p,
.steps p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-icon {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--teal);
  font-weight: 900;
}

.work-section {
  background: #101820;
  color: #ffffff;
}

.work-section .section-kicker {
  color: var(--yellow);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.work-item {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.work-grid img {
  width: 100%;
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
}

.work-grid figcaption {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 16px 18px 18px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
}

.photo-choice {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.photo-choice:hover,
.photo-choice:focus-visible {
  border-color: var(--yellow);
  background: rgba(244, 196, 48, 0.2);
}

.photo-choice[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--yellow);
  background: var(--yellow);
}

.photo-dialog {
  width: min(920px, calc(100vw - 28px));
  max-height: min(88vh, 900px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #101820;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.36);
}

.photo-dialog::backdrop {
  background: rgba(16, 24, 32, 0.72);
}

.photo-dialog img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  background: #101820;
}

.photo-dialog p {
  margin: 0;
  padding: 16px 18px 18px;
  color: #ffffff;
  font-weight: 800;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(16, 24, 32, 0.82);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.steps {
  display: grid;
  gap: 12px;
}

.steps div {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.steps div:last-child {
  border-bottom: 1px solid var(--line);
}

.steps span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  color: var(--paper);
  background: var(--teal);
  font-weight: 900;
}

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

.contact-panel {
  padding: 30px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  font-style: normal;
}

.big-call {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--teal);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
}

.contact-panel p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .site-header {
    height: 70px;
    gap: 14px;
  }

  .nav {
    display: none;
  }

  .header-call {
    padding: 9px 12px;
    font-size: 0.9rem;
  }

  .hero-content {
    padding-top: 118px;
  }

  .hero-facts,
  .intro-grid,
  .split,
  .contact-grid,
  .service-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .service-icon {
    margin-bottom: 24px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 0 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .header-call {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-content {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-facts div {
    min-height: 76px;
    padding: 14px;
  }

  .button {
    width: 100%;
  }

  .section-inner {
    width: min(100% - 32px, 1180px);
  }

  .contact-panel {
    padding: 22px;
  }

  .site-footer {
    display: block;
  }

  .site-footer p + p {
    margin-top: 8px;
  }
}
