/* La Porte du Web du Nord (PDWDN) — agency site
   Local Overpass only. No CDN. DRAFT — not deployed.
   Palette: menthe / deep / ink / cream / seuil — distinct from demos.
   Boutique restraint: polish + clarity, not density. */

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

:root {
  --menthe: #5BC67A;
  --deep: #30924C;
  --ink: #173B21;
  --cream: #F7F1E3;
  --seuil: #FFD150;
  --blanc: #FFFFFF;
  --muted: rgba(23, 59, 33, 0.7);
  --line: rgba(23, 59, 33, 0.12);
  --shadow: 0 12px 36px rgba(23, 59, 33, 0.1);
  --radius: 4px;
  --max: 68rem;
  --pad: 1.25rem;
  --header-h: 3.75rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3,
.lockup, .btn, .site-nav a, .eyebrow, .tag,
.chips li, .sample-link, .sample-sector, .credit,
.footer-nav a, .nav-toggle {
  font-family: Overpass, "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
}
h1, h2, .lockup-name, .lockup-tab, .lockup-compact { font-weight: 900; }

img, picture { max-width: 100%; display: block; }
img { height: auto; object-fit: cover; }
a { color: inherit; }
:focus-visible {
  outline: 3px solid var(--seuil);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -5rem;
  z-index: 400;
  background: var(--ink);
  color: var(--cream);
  padding: 0.55rem 0.95rem;
  font-weight: 800;
  text-decoration: none;
  font-family: Overpass, system-ui, sans-serif;
}
.skip:focus { top: 0.5rem; }

.wrap {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}
.wrap.narrow { width: min(42rem, calc(100% - 2 * var(--pad))); }

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep);
  font-weight: 900;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(91, 198, 122, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--ink);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
  position: relative;
}
.lockup {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.lockup-mark { width: 2.15rem; height: 2.15rem; flex-shrink: 0; }
.lockup-text { display: flex; flex-direction: column; gap: 0.12rem; line-height: 1; }
.lockup-name {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--blanc);
}
.lockup-tab {
  display: inline-block;
  align-self: flex-start;
  background: var(--seuil);
  color: var(--ink);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  padding: 0.15rem 0.36rem;
}
.lockup-compact {
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--seuil);
  padding: 0.3rem 0.5rem;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.55rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cream);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] {
  background: var(--seuil);
  border-color: var(--seuil);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: var(--ink); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--ink);
  border-bottom: 3px solid var(--menthe);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.35s var(--ease), opacity 0.25s, visibility 0.25s;
}
.site-nav.is-open {
  max-height: 22rem;
  opacity: 1;
  visibility: visible;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 1rem;
}
.site-nav a {
  display: block;
  color: var(--cream);
  text-decoration: none;
  padding: 0.85rem var(--pad);
  font-size: 1.05rem;
  font-weight: 900;
  border-bottom: 1px solid rgba(247, 241, 227, 0.1);
}
.site-nav a:hover { color: var(--seuil); }
.site-nav .nav-cta {
  margin: 0.5rem var(--pad) 0;
  width: calc(100% - 2 * var(--pad));
  box-sizing: border-box;
  text-align: center;
  color: var(--ink);
  background: var(--seuil);
  border-bottom: 0;
}

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .lockup-compact { display: none; }
  .site-nav {
    position: static;
    max-height: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: 0;
    flex: 1;
  }
  .site-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.1rem;
    padding: 0;
  }
  .site-nav a {
    color: var(--ink);
    padding: 0.4rem 0.7rem;
    border: 0;
    font-size: 0.82rem;
    border-radius: var(--radius);
  }
  .site-nav a:hover {
    color: var(--blanc);
    background: rgba(23, 59, 33, 0.16);
  }
  .site-nav .nav-cta {
    margin: 0 0 0 0.4rem;
    width: auto;
    padding: 0.45rem 0.85rem;
  }
  .site-nav .nav-cta:hover {
    background: var(--blanc);
    color: var(--ink);
  }
}
@media (max-width: 879px) {
  .lockup-text { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  padding: 0.9rem 1.25rem;
  min-height: 3rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-seuil {
  background: var(--seuil);
  color: var(--ink);
  border-color: var(--seuil);
}
.btn-seuil:hover { background: #ffe07a; border-color: #ffe07a; }
.btn-ink {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.btn-ink:hover { background: var(--deep); border-color: var(--deep); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(247, 241, 227, 0.5);
}
.btn-ghost:hover { background: rgba(247, 241, 227, 0.14); }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(82vh, 40rem);
  display: grid;
  align-items: end;
  color: var(--cream);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 59, 33, 0.22) 0%, rgba(23, 59, 33, 0.5) 45%, rgba(23, 59, 33, 0.9) 100%),
    linear-gradient(90deg, rgba(23, 59, 33, 0.45) 0%, transparent 60%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.5rem;
}
.hero-copy > * { max-width: 36rem; }
.hero-eyebrow { color: var(--menthe); }
.hero h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.9rem, 5.5vw, 2.95rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--blanc);
}
.hero-lead {
  margin: 0;
  font-size: 1.08rem;
  color: rgba(247, 241, 227, 0.92);
}

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--blanc); }
.section-head { margin-bottom: 2rem; max-width: 38rem; }
.section h2,
.ink-band h2,
.about-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 3.2vw, 1.95rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}
.section-lead a {
  color: var(--deep);
  font-weight: 700;
}

/* Services cards — calm */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
@media (min-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; }
}
.card {
  background: var(--blanc);
  padding: 1.35rem 1.2rem;
  border-left: 5px solid var(--menthe);
}
.section-alt .card { background: var(--cream); }
.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
}
.card p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--muted);
}
.card .tag {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deep);
}

/* Steps */
.steps {
  display: grid;
  gap: 0.9rem;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  background: var(--cream);
  padding: 1.25rem 1.15rem 1.25rem 3.6rem;
  position: relative;
  border-left: 5px solid var(--seuil);
}
.section-alt .step { background: var(--cream); }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.95rem;
  top: 1.15rem;
  width: 1.85rem;
  height: 1.85rem;
  background: var(--ink);
  color: var(--seuil);
  font-family: Overpass, system-ui, sans-serif;
  font-weight: 900;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.step p { margin: 0; font-size: 0.96rem; color: var(--muted); }

/* Who */
.ink-band {
  background: var(--ink);
  color: var(--cream);
  padding: 4rem 0;
}
.ink-band .eyebrow { color: var(--menthe); }
.ink-band h2 { color: var(--blanc); }
.ink-band p {
  margin: 0;
  max-width: 36rem;
  color: rgba(247, 241, 227, 0.88);
  font-size: 1.05rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  background: rgba(91, 198, 122, 0.14);
  color: var(--cream);
  padding: 0.45rem 0.8rem;
  font-size: 0.88rem;
  border: 1px solid rgba(91, 198, 122, 0.4);
  border-radius: var(--radius);
}

/* Portfolio examples */
.sample-grid {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 760px) {
  .sample-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
.sample-card {
  display: flex;
  flex-direction: column;
  background: var(--blanc);
  border: 2px solid var(--ink);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.sample-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.sample-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.sample-body {
  padding: 1.15rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.sample-sector {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deep);
}
.sample-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}
.sample-body p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  flex: 1;
}
.sample-link {
  font-size: 0.88rem;
  color: var(--deep);
}
.sample-card:hover .sample-link { color: var(--ink); }

/* About */
.about-band {
  background: var(--menthe);
  color: var(--ink);
  padding: 4rem 0;
}
.about-band .eyebrow { color: var(--ink); }
.about-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.about-visual {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}
.about-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.about-copy p {
  margin: 0 0 1.25rem;
  max-width: 34rem;
  font-size: 1.05rem;
}
@media (min-width: 880px) {
  .about-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
  }
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 780px) {
  .contact-grid {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
    gap: 2rem;
  }
}
.contact-panel {
  background: var(--blanc);
  border-left: 5px solid var(--seuil);
  padding: 1.5rem 1.25rem;
}
.contact-panel h3 {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deep);
}
.contact-panel h3:not(:first-child) { margin-top: 1.25rem; }
.contact-panel p { margin: 0; font-size: 1.02rem; }
.contact-panel a {
  font-family: Overpass, system-ui, sans-serif;
  font-weight: 900;
  color: var(--deep);
  text-decoration: none;
}
.contact-panel a:hover { text-decoration: underline; }

.form {
  background: var(--blanc);
  padding: 1.5rem 1.25rem;
  border-left: 5px solid var(--menthe);
  display: grid;
  gap: 0.95rem;
}
.field-hint {
  font-size: 0.85em;
  font-weight: 800;
  color: var(--deep);
  text-transform: none;
  letter-spacing: 0;
}
.form label {
  display: grid;
  gap: 0.3rem;
  font-family: Overpass, system-ui, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  font-weight: 900;
}
.form input {
  font: inherit;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  padding: 0.7rem 0.75rem;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  width: 100%;
  border-radius: var(--radius);
}
.form input:focus {
  outline: 3px solid var(--seuil);
  outline-offset: 1px;
}
.form-status {
  margin: 0;
  font-family: Overpass, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--deep);
  min-height: 1.25rem;
}
.form-status[data-tone="err"] { color: #8a1f1f; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 2.75rem 0 3rem;
}
.footer-inner {
  display: grid;
  gap: 1.75rem;
}
.footer-lockup { width: min(100%, 22rem); }
.credit {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}
.footer-meta p {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  opacity: 0.92;
}
.footer-meta a {
  font-family: Overpass, system-ui, sans-serif;
  font-weight: 900;
  color: var(--seuil);
  text-decoration: none;
}
.footer-meta a:hover { text-decoration: underline; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  margin-top: 1rem;
}
.footer-nav a {
  font-size: 0.85rem;
  color: var(--menthe);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--seuil); }
@media (min-width: 760px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
  }
}


/* Single editorial photo break — calm, not dense */
.photo-band {
  margin: 0;
  padding: 0;
  line-height: 0;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.photo-band img {
  width: 100%;
  max-height: 22rem;
  object-fit: cover;
  object-position: center 40%;
}
@media (min-width: 880px) {
  .photo-band img { max-height: 26rem; }
}
