/*
Theme Name: kims.webstudio
Theme URI: https://kims.webstudio
Author: Kim Sokserey
Author URI: https://kims.webstudio
Description: Site vitrine bilingue FR/EN pour indépendants à Montréal. Papier, encre, Hostinger.
Version: 3.2.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: kims-webstudio
License: GNU General Public License v2 or later
*/

:root {
  --bg: #f4f1ea;
  --paper: #faf8f3;
  --ink: #1c1b18;
  --ink-soft: #2e2c27;
  --muted: #6b675e;
  --faint: #8a857a;
  --border: #ddd6c8;
  --border-strong: #c4bba8;
  --font-sans: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Newsreader", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: clip; }
html[data-lang="en"] [data-fr] { display: none !important; }
html[data-lang="fr"] [data-en] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, [type="submit"] { font-family: inherit; cursor: pointer; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.75rem;
}
.skip-link:focus { left: 1rem; }

.wrap {
  width: min(72rem, calc(100% - 2.5rem));
  margin-inline: auto;
}
@media (min-width: 768px) {
  .wrap { width: min(72rem, calc(100% - 4rem)); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 0.75rem;
}
.brand, .brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.brand-mark { width: 1.75rem; height: 1.75rem; flex-shrink: 0; }
.nav { display: none; gap: 1.75rem; }
.nav a { font-size: 0.9375rem; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-write { display: none; }

.lang {
  display: inline-flex;
  height: 2.75rem;
  align-items: center;
  border: 1px solid var(--border-strong);
  background: var(--paper);
  border-radius: 0.75rem;
  padding: 0.15rem;
}
.lang button {
  min-width: 2.75rem;
  height: 2.45rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  border-radius: 0.5rem;
}
.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--ink);
  color: var(--paper);
}
.btn:hover { background: var(--ink-soft); }
.btn-sm { min-height: 2.25rem; padding: 0 0.85rem; font-size: 0.75rem; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--paper); }

.kicker {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}
.hero {
  display: grid;
  gap: 2.5rem;
  padding: 2.5rem 0 3rem;
  align-items: end;
}
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 4vw, 4.75rem); margin-top: 1.5rem; }
.lead { margin-top: 1.5rem; max-width: 28rem; font-size: 1.25rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }
.hero-fig img { width: 100%; height: 18rem; object-fit: cover; }

.block { padding: 5rem 0; border-top: 1px solid var(--border); }
.block h2 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.25rem); margin-top: 1rem; }
.muted { color: var(--muted); margin-top: 0.75rem; max-width: 36rem; }
.band { background: var(--paper); }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.offer-grid {
  display: grid;
  gap: 1px;
  margin-top: 3.5rem;
  background: var(--border);
  border: 1px solid var(--border);
}
.offer-grid li { background: var(--bg); padding: 2.5rem; }
.offer-grid .n, .steps .n, .work-cap .n {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--faint);
}
.offer-grid h3, .steps h3 { font-size: 1.5rem; margin-top: 2rem; }
.offer-grid p:last-child, .steps p:last-child {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
}

.work-mosaic {
  display: grid;
  gap: 0.75rem;
  margin-top: 3.5rem;
}
.work-card { position: relative; overflow: hidden; }
.work-card img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card.tall img { aspect-ratio: 3 / 4; min-height: 20rem; }
.work-card:not(.tall) img { aspect-ratio: 4 / 3; }
.work-mosaic.two { grid-template-columns: 1fr; }
.work-mosaic.two .work-card img {
  aspect-ratio: 16 / 9;
  object-position: top;
}
.work-card:hover img { transform: scale(1.06); }
.work-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 27, 24, 0.72), rgba(28, 27, 24, 0.08) 55%, transparent);
  pointer-events: none;
}
.work-cap {
  position: absolute;
  inset: auto 0 0;
  padding: 1.35rem;
  color: var(--paper);
}
.work-cap .n { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.work-cap h3 { font-size: 1.75rem; margin-top: 0.5rem; color: var(--paper); }
.work-cap p { margin-top: 0.25rem; font-size: 0.9375rem; color: color-mix(in srgb, var(--paper) 80%, transparent); }

.steps { display: grid; gap: 2.5rem; margin-top: 3.5rem; }
.steps li { border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.steps h3 { margin-top: 1rem; }

.price-cards {
  display: grid;
  gap: 0.75rem;
  margin-top: 3.5rem;
}
.price-cards > li {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 1.75rem;
}
.price-cards .code, .price-cards .badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.card-top { display: flex; justify-content: space-between; gap: 0.75rem; }
.price-cards h3 { font-size: 1.5rem; margin-top: 1.5rem; }
.price-cards .amount {
  font-family: var(--font-display);
  font-size: 2.6rem;
  margin-top: 1rem;
  font-variant-numeric: tabular-nums;
}
.price-cards .unit { margin-top: 0.5rem; font-size: 0.75rem; color: var(--faint); }
.price-cards ul { margin-top: 2rem; }
.price-cards li li { margin-top: 0.4rem; font-size: 0.9375rem; color: var(--muted); }
.price-cards > li.featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.price-cards > li.featured .code,
.price-cards > li.featured .badge,
.price-cards > li.featured .unit,
.price-cards > li.featured li li { color: color-mix(in srgb, var(--paper) 65%, transparent); }

.care-addon {
  margin-top: 0.75rem;
  padding: 1.75rem 2rem;
  border: 1px solid var(--border);
  background: var(--bg);
}
.care-addon .code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.care-addon h3 { margin-top: 0.75rem; font-size: 1.5rem; }
.care-addon h3 span { font-variant-numeric: tabular-nums; }
.care-addon h3 small { font-size: 0.75rem; color: var(--faint); font-family: var(--font-sans); font-weight: 400; }
.care-addon p { margin-top: 0.75rem; color: var(--muted); max-width: 40rem; }
.addons { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.addons h3 { font-size: 1.5rem; }
.addon-list { margin-top: 2rem; border-block: 1px solid var(--border); }
.addon-list > li {
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.addon-list > li:last-child { border-bottom: 0; }
.addon-list .name { font-size: 0.9375rem; font-weight: 500; }
.addon-list .detail { margin-top: 0.25rem; font-size: 0.9375rem; color: var(--muted); }
.addon-list .delta { font-family: var(--font-mono); font-size: 0.875rem; color: var(--muted); }
.addon-list .total { font-family: var(--font-display); font-size: 1.5rem; }
@media (min-width: 768px) {
  .price-cards { grid-template-columns: 1fr 1fr; }
  .addon-list > li {
    grid-template-columns: 2fr 1fr 1fr;
    align-items: baseline;
  }
  .addon-list .total { text-align: right; }
}

.about-grid, .contact-grid { display: grid; gap: 3rem; }
.about-grid img { width: 100%; height: 18rem; object-fit: cover; }
.about-grid .btn { margin-top: 2rem; }
.mail {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--border-strong);
}

.form { display: grid; gap: 2rem; }
.form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.5rem;
}
.form input, .form textarea, .form select {
  width: 100%;
  min-height: 2.75rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  border-radius: 0;
  padding: 0.4rem 0;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
}
.form textarea { min-height: 7rem; }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.row-2 { display: grid; gap: 2rem; }
.notice { font-size: 0.9375rem; }
.notice.err { color: #8b3a32; }

.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-inner p { font-size: 0.875rem; color: var(--muted); max-width: 28rem; }

.nav-toggle { display: inline-flex; }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--paper); padding: 1rem 0; }
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
}
.mobile-nav .btn { justify-content: center; margin-top: 0.5rem; }

@media (min-width: 768px) {
  .header-inner { height: 4.5rem; }
  .nav { display: flex; }
  .nav-write { display: inline-flex; }
  .nav-toggle { display: none; }
  .hero {
    grid-template-columns: 1fr 1fr;
    min-height: min(88svh, 52rem);
    padding-top: 2rem;
    padding-bottom: 4rem;
  }
  .hero-fig img { height: min(70svh, 38rem); }
  .offer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .work-mosaic.two {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
  .work-card.tall { grid-row: span 2; }
  .work-card.tall img { height: 100%; min-height: 100%; }
  .work-cap { padding: 1.75rem; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .price-list li {
    grid-template-columns: 2fr 1.2fr 2fr;
    align-items: baseline;
    gap: 2rem;
  }
  .price-list .items { text-align: right; }
  .about-grid { grid-template-columns: 5fr 7fr; align-items: center; }
  .about-grid img { height: 28rem; }
  .contact-grid { grid-template-columns: 5fr 7fr; }
  .row-2 { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  box-shadow: 0 10px 30px -20px rgb(28 27 24 / 0.55);
}
.hero-copy > * {
  opacity: 0;
  transform: translate3d(0, 0.9rem, 0);
  animation: hero-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-copy > *:nth-child(1) { animation-delay: 40ms; }
.hero-copy > *:nth-child(2) { animation-delay: 140ms; }
.hero-copy > *:nth-child(3) { animation-delay: 240ms; }
.hero-copy > *:nth-child(4) { animation-delay: 340ms; }
.hero-fig {
  overflow: hidden;
  opacity: 0;
  animation: hero-in 1s cubic-bezier(0.22, 1, 0.36, 1) 180ms forwards;
}
.hero-fig img {
  transform: scale(1.08);
  will-change: transform;
}
@keyframes hero-in {
  to { opacity: 1; transform: none; }
}
.reveal {
  opacity: 0;
  transform: translate3d(0, 1.35rem, 0);
  filter: blur(8px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

.seo-band {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--ink);
  color: var(--paper);
}
.seo-band .kicker.light { color: color-mix(in srgb, var(--paper) 55%, transparent); }
.seo-band h3 { margin-top: 1rem; }
.seo-band > p { margin-top: 1rem; max-width: 40rem; color: color-mix(in srgb, var(--paper) 75%, transparent); }
.seo-band ol {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.seo-band li span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--paper) 45%, transparent);
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
  .seo-band { padding: 3rem; }
  .seo-band ol { grid-template-columns: repeat(3, 1fr); }
}

.work-card.linked { overflow: hidden; border: 1px solid var(--border); background: var(--bg); }
.work-card.linked img { aspect-ratio: 16 / 9; object-position: top; }
.work-meta { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--border); }
.work-meta .n { font-family: var(--font-mono); font-size: 0.75rem; color: var(--faint); }
.work-meta h3 { margin-top: 0.35rem; }
.work-meta p { margin-top: 0.25rem; color: var(--muted); font-size: 0.9375rem; }
.work-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .work-card:hover img { transform: none; }
  .reveal, .hero-copy > *, .hero-fig {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
}

