/* Balise IA: winter-morning palette, signage type, one planted stake. */

@font-face {
  font-family: "Overpass";
  src: url("/fonts/overpass-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --neige: #f2f5f7;     /* snow, page background */
  --glace: #dde5eb;     /* ice, rules and quiet surfaces */
  --asphalte: #1d2227;  /* asphalt, text and the night band */
  --gravier: #59636c;   /* gravel, secondary text */
  --balise: #ff5b1a;    /* the stake: used only for the stake and the main button */
  --reflet: #ffffff;    /* reflective band */

  --measure: 64ch;
  --wrap: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

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

body {
  margin: 0;
  background: var(--neige);
  color: var(--asphalte);
  font-family: "Overpass", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  font-weight: 400;
}

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--asphalte);
  color: var(--neige);
  padding: 0.6rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

/* ---------- Header ---------- */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.mark {
  display: inline-block;
  width: 7px;
  height: 1.6em;
  border-radius: 3px 3px 0 0;
  background:
    linear-gradient(var(--balise), var(--balise)) top / 100% 18% no-repeat,
    linear-gradient(var(--reflet), var(--reflet)) 0 18% / 100% 12% no-repeat,
    var(--balise);
  box-shadow: inset 0 0 0 1px rgba(29, 34, 39, 0.08);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.8rem);
  font-size: 1rem;
}
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .lang { color: var(--gravier); }

@media (max-width: 560px) {
  .site-nav .hide-sm { display: none; }
}

/* ---------- Hero: the planted stake ---------- */

.hero {
  position: relative;
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(4.5rem, 10vw, 7.5rem);
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: clamp(18px, 2.4vw, 26px) 1fr;
  column-gap: clamp(1.25rem, 4vw, 3.25rem);
  align-items: stretch;
}

.stake {
  position: relative;
  border-radius: 6px 6px 0 0;
  background: var(--balise);
  margin-bottom: calc(-1 * clamp(4.5rem, 10vw, 7.5rem)); /* reaches into the snowbank */
  transform-origin: bottom;
  animation: plant 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.stake::before,
.stake::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2.4rem;
  background: var(--reflet);
  box-shadow: inset 0 0 0 1px rgba(29, 34, 39, 0.06);
}
.stake::before { top: 2.2rem; }
.stake::after  { top: 6rem; }

@keyframes plant {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.snowbank {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(48px, 7vw, 88px);
  display: block;
  color: var(--glace);
  pointer-events: none;
}

.hero h1 {
  margin: 0 0 1.4rem;
  font-size: clamp(2.45rem, 6.2vw, 4.6rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.025em;
  max-width: 15ch;
}

.lead {
  margin: 0 0 2.2rem;
  max-width: 54ch;
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  color: var(--asphalte);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.6rem;
}

.button {
  display: inline-block;
  padding: 0.95rem 1.5rem 0.85rem;
  border: 0;
  border-radius: 3px;
  background: var(--balise);
  color: var(--asphalte);
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #ff7438; }
.button:active { transform: translateY(1px); }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--ice { background: var(--glace); }
/* two snow-coloured sections in a row share one gap, not two */
.section:not(.section--ice) + .section:not(.section--ice) { padding-top: 0; }

.section h2 {
  position: relative;
  margin: 0 0 2.4rem;
  padding-left: 1.4rem;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.015em;
}
/* a small stake marks where each section starts */
.section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.08em;
  width: 6px;
  height: 0.95em;
  border-radius: 3px 3px 0 0;
  background:
    linear-gradient(var(--reflet), var(--reflet)) 0 30% / 100% 16% no-repeat,
    var(--balise);
}

.intro {
  max-width: var(--measure);
  margin: -1.2rem 0 2.6rem;
  color: var(--gravier);
}

/* Services: two columns of ruled entries, not cards */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.6rem clamp(2rem, 5vw, 4.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.services li {
  padding-top: 1.1rem;
  border-top: 2px solid var(--asphalte);
}
.services h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  line-height: 1.25;
  font-weight: 800;
}
.services p { margin: 0; max-width: 46ch; color: var(--gravier); }

@media (max-width: 720px) {
  .services { grid-template-columns: 1fr; }
}

/* Steps: a real sequence, so it is numbered */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.6rem;
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 800;
}
.steps p { margin: 0; color: var(--gravier); font-size: 1.02rem; }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

/* Commitments: statement on the left, the plain meaning on the right */
.promises { margin: 0; }
.promises div {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 0.4rem 2.5rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--glace);
}
.promises div:last-child { border-bottom: 1px solid var(--glace); }
.promises dt { font-weight: 800; font-size: 1.2rem; line-height: 1.3; }
.promises dd { margin: 0; max-width: 52ch; color: var(--gravier); }

@media (max-width: 720px) {
  .promises div { grid-template-columns: 1fr; }
}

/* Night band: the 5 a.m. plow run */
.night {
  background: var(--asphalte);
  color: var(--neige);
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}
.night .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem 3rem;
}
.night p {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.night :focus-visible { outline-color: var(--neige); }

/* ---------- Contact ---------- */

.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem; }
.page-head h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.page-head p { margin: 0; max-width: var(--measure); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 3rem clamp(2rem, 6vw, 5rem);
  padding: 2.5rem 0 clamp(4rem, 9vw, 6.5rem);
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.form { display: grid; gap: 1.25rem; max-width: 40rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 560px) {
  .form .row { grid-template-columns: 1fr; }
}

.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 1rem; }
.field .hint { color: var(--gravier); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem 0.7rem;
  border: 2px solid var(--asphalte);
  border-radius: 3px;
  background: #fff;
  color: var(--asphalte);
  font: inherit;
  font-size: 1.05rem;
}
.field textarea { min-height: 9.5rem; resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible { outline-offset: 1px; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form .fine { margin: 0; font-size: 0.95rem; color: var(--gravier); max-width: 52ch; }

.status {
  margin: 0;
  padding: 1rem 1.1rem;
  border-left: 6px solid var(--asphalte);
  background: #fff;
  font-weight: 600;
}
.status[hidden] { display: none; }
.status--error { border-left-color: var(--balise); }

.aside h2 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  font-weight: 800;
}
.aside p { margin: 0 0 1.6rem; color: var(--gravier); }
.aside .big { font-size: 1.25rem; font-weight: 800; color: var(--asphalte); }

/* ---------- Prose (privacy) ---------- */

.prose { max-width: var(--measure); padding-bottom: clamp(4rem, 9vw, 6rem); }
.prose h2 { font-size: 1.4rem; font-weight: 800; margin: 2.4rem 0 0.6rem; line-height: 1.2; }
.prose p, .prose li { color: var(--asphalte); }
.prose ul { padding-left: 1.2rem; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 2rem 0 2.5rem;
  font-size: 0.95rem;
  color: var(--gravier);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 2rem;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 1.4rem; }

@media (prefers-reduced-motion: reduce) {
  .stake { animation: none; }
  .button:active { transform: none; }
}
