/* ==========================================================================
   Kehrlein Électricité — style.css
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --pierre: #F2EEE4;
  --deep: #E7E0D0;
  --slate: #1C2733;
  --copper: #B2703F;
  --sage: #9CAF88;
  --line: rgba(28, 39, 51, .14);

  --serif: "Playfair Display", Georgia, serif;
  --sans: Inter, Arial, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--pierre);
  color: var(--slate);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1240px; margin: auto; padding: 0 6vw; }

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.35rem;
  line-height: 1.15;
}

.eyebrow {
  font-family: var(--mono);
  color: var(--copper);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 1.5rem;
}
.label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* ---------- Header ---------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 6vw;
  border-bottom: 1px solid var(--line);
  gap: 2rem;
}
.logo img {
  height: 78px;
  max-width: 190px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
nav {
  display: flex;
  gap: 2rem;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .09em;
}
nav a { opacity: .6; }
nav a:hover { opacity: 1; }

.actions { display: flex; gap: .7rem; align-items: center; }

/* Language switch (FR | EN) — was missing */
.lang-switch {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-right: .6rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
}
.lang-switch a { opacity: .5; }
.lang-switch a:hover { opacity: 1; }
.lang-switch a.active { opacity: 1; border-bottom: 1px solid var(--copper); }
.lang-switch span { opacity: .3; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: 1px solid var(--slate);
  padding: .68rem 1.15rem;
  border-radius: 50px;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.btn.dark { background: var(--slate); color: var(--pierre); }
.btn.sage { background: var(--sage); border-color: var(--sage); color: white; }

/* ---------- Hero (home) + detail hero (service pages) ---------- */
.hero,
.detail-hero,
.page-hero {
  background: var(--slate);
  color: var(--pierre);
}
.hero { padding: 6rem 6vw; }
.detail-hero,
.page-hero { padding: 5rem 6vw; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 5rem;
  align-items: end;
}
.hero h1,
.detail-hero h1,
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 1.02;
  max-width: 13ch;
}
/* Detail-page titles are longer sentences: wider measure, smaller size */
.detail-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  max-width: 20ch;
}
.hero-copy,
.detail-hero p,
.page-hero p {
  font-size: 1.02rem;
  line-height: 1.75;
  font-weight: 300;
  opacity: .85;
  max-width: 48ch;
}
.hero-copy p { margin-bottom: 1rem; }
.detail-hero p,
.page-hero p { margin-top: 1.5rem; }

/* ---------- Offers (home) ---------- */
.offers { padding: 5.5rem 6vw; }

.section-head,
.detail-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}
.offer {
  background: var(--pierre);
  padding: 3rem;
  min-height: 440px;
  display: flex;
  flex-direction: column;
}
.offer:first-child { background: #EAE4D6; }
.offer-number {
  font-family: var(--mono);
  color: var(--copper);
  font-size: .78rem;
  margin-bottom: 3rem;
}
.offer h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.offer p {
  line-height: 1.7;
  font-weight: 300;
  max-width: 48ch;
  opacity: .8;
}
.offer ul {
  list-style: none;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}
.offer li {
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
}
.offer .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Band + Zone (home) ---------- */
.band { background: var(--deep); padding: 5rem 6vw; }
.zone { padding: 5rem 6vw; }

.band-grid,
.zone-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
}
.band p,
.zone p {
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 1rem;
}

.langs { display: flex; gap: .7rem; margin-top: 1.5rem; }
.lang {
  font-family: var(--mono);
  border: 1px solid var(--line);
  padding: .45rem .75rem;
  font-size: .7rem;
}

/* Credentials block (zone) — was missing; design is a first pass */
.credentials {
  border-left: 1px solid var(--line);
  padding-left: 2rem;
  font-size: .85rem;
  line-height: 1.9;
  font-weight: 300;
}
.credentials strong { font-weight: 500; }

/* ---------- Detail pages (électricité / assistance technique) ---------- */
.services { padding: 5rem 6vw; }
.service-list { border-top: 1px solid var(--slate); }

/* HTML uses .service-row / .service-number / h3 (CSS previously had .service / .service-num / h2) */
.service-row,
.service {
  display: grid;
  grid-template-columns: 65px 1fr 2fr;
  gap: 2rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}
.service-number,
.service-num {
  font-family: var(--mono);
  color: var(--copper);
}
.service-row h3,
.service h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.25;
}
.service-row p,
.service p {
  line-height: 1.65;
  font-weight: 300;
  opacity: .75;
}

.note { background: var(--deep); padding: 4rem 6vw; }
.note-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.note p { line-height: 1.75; font-weight: 300; margin-bottom: 1rem; }

.cta {
  background: var(--slate);
  color: var(--pierre);
  padding: 4rem 6vw;
  text-align: center;
}
.cta h2 { margin-bottom: 1rem; }
.cta p {
  opacity: .75;
  line-height: 1.7;
  margin: 0 auto 1.5rem;
  max-width: 55ch;
}
.cta .btn.dark { background: var(--pierre); color: var(--slate); border-color: var(--pierre); }

/* ---------- Footer ---------- */
footer {
  background: var(--slate);
  color: var(--pierre);
  padding: 3rem 6vw;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: .5rem;
}
.footer-col { font-size: .82rem; line-height: 1.8; opacity: .75; }
footer a { border-bottom: 1px solid var(--copper); }

/* Footer bottom row — was missing */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(242, 238, 228, .15);
  font-size: .72rem;
  opacity: .6;
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  nav { display: none; }

  .hero-grid,
  .section-head,
  .detail-head,
  .band-grid,
  .zone-grid,
  .note-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .offer-grid { grid-template-columns: 1fr; }
  .offer { min-height: 0; }

  .service-row,
  .service { grid-template-columns: 45px 1fr; }
  .service-row p,
  .service p { grid-column: 2; }

  .credentials { border-left: 0; padding-left: 0; }

  header { padding: 1rem 5vw; }
  /* was `.btn:first-child`, which stopped matching once .lang-switch became first child */
  .actions .btn.sage { display: none; }
}