/* Canin Grand Montréal, refonte v2. Fonts are loaded separately. */
:root {
  --cream: #f6f1e8;
  --paper: #fffcf7;
  --ink: #1c1915;
  --muted: #53493f;
  --line: #e2d6c6;
  --terracotta: #9a3b1a;
  --terracotta-hover: #7c2e14;
  --terracotta-soft: #f6e4da;
  --moss: #2f4a36;
  --moss-soft: #e4eee6;
  --gold: #c9a24a;
  --focus: #8a6a14;
  --shadow: 0 8px 28px rgba(28, 25, 21, 0.08);
  --radius: 16px;
  --max: 1160px;
  --header-h: 3.6rem;
  --font: "Source Sans 3", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --serif: "Fraunces", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  font-size: 1.0625rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta); }
a:hover { color: var(--terracotta-hover); }
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  padding: 0.55rem 0.9rem;
  z-index: 40;
  border-radius: 8px;
}

/* Header */
.site-header {
  background: rgba(255, 252, 247, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.2rem;
  min-height: var(--header-h);
  padding: 0.35rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.brand-sub { font-size: 0.75rem; color: var(--muted); }
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.85rem;
  font-size: 0.95rem;
}
nav a {
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
nav a:hover, nav a[aria-current="page"] {
  color: var(--terracotta);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.lang {
  font-size: 0.88rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--cream);
  flex: none;
}
.lang:hover { border-color: var(--terracotta); color: var(--terracotta); }

@media (max-width: 840px) {
  .site-header { padding-bottom: 0.15rem; }
  .header-inner { flex-wrap: wrap; row-gap: 0; padding: 0.45rem 0 0.2rem; align-items: center; }
  .brand { min-width: 0; }
  .brand-sub { display: none; }
  .lang { margin-left: auto; }
  nav { flex: 1 0 100%; order: 3; }
  nav ul { gap: 0 0.85rem; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  nav a { min-height: 44px; white-space: nowrap; }
}

/* Hero */
.hero-split {
  display: grid;
  gap: 1.5rem;
  padding: 1.4rem 0 0.4rem;
  align-items: center;
}
@media (min-width: 880px) {
  .hero-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.2rem;
    padding: 1.8rem 0 0.6rem;
  }
}
.hero-split h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 5.2vw, 3.15rem);
  line-height: 1.12;
  margin: 0 0 0.7rem;
  letter-spacing: -0.02em;
}
.hero-split .lede {
  font-size: 1.12rem;
  max-width: 38rem;
  margin: 0 0 0.4rem;
  color: var(--muted);
}
.hero-photo {
  margin: 0;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 240px;
  background: #2a3a2c;
}
@media (min-width: 880px) {
  .hero-photo { min-height: 400px; }
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% 40%;
  aspect-ratio: 4 / 5;
}
@media (min-width: 880px) {
  .hero-photo img { aspect-ratio: 4 / 5; min-height: 400px; }
}
.hero-photo figcaption {
  position: absolute;
  right: 0.7rem;
  bottom: 0.55rem;
  margin: 0;
  font-size: 0.72rem;
  color: #fff;
  background: rgba(28, 25, 21, 0.45);
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
}
.hero-photo figcaption a { color: #fff; }

/* Search */
.filters {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
  box-shadow: var(--shadow);
}
.filters.sticky-search {
  position: sticky;
  top: calc(var(--header-h) + 0.35rem);
  z-index: 20;
  margin-top: 1rem;
}
.filters-row {
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 800px) {
  .filters-row {
    grid-template-columns: 1.5fr 1fr 1fr auto;
    align-items: end;
  }
}
label.field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 0.82rem;
  font-weight: 600;
}
input[type="search"], select, input[type="text"], input[type="email"], input[type="tel"], textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
textarea { min-height: 8rem; resize: vertical; }
.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 44px;
}
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--terracotta); }
.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--terracotta);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  min-height: 44px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--terracotta-hover); color: #fff; }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.ghost:hover { background: var(--cream); color: var(--ink); }
.btn.big { padding: 0.8rem 1.3rem; }

.stats-line { margin: 1rem 0 0.4rem; color: var(--muted); font-size: 0.98rem; }

/* Service shortcuts */
.services-home {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
  margin: 1.3rem 0 0.2rem;
}
@media (min-width: 800px) {
  .services-home { grid-template-columns: repeat(4, 1fr); }
}
.service-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-height: 44px;
}
.service-tile:hover { border-color: #d3b9a0; }
.service-tile span.ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--terracotta-soft);
  color: var(--terracotta);
  display: grid;
  place-items: center;
  flex: none;
}
.service-tile .ico.garderie { background: var(--moss-soft); color: var(--moss); }
.service-tile .ico.pension { background: #efe6d6; color: #6a4a22; }
.service-tile .ico.parc { background: #e7efe8; color: var(--moss); }
.service-tile strong { display: block; font-family: var(--serif); font-size: 1.12rem; font-weight: 600; }
.service-tile span { color: var(--muted); font-size: 0.9rem; }

/* Cards */
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  padding: 0.8rem 0 2rem;
}
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}
a.card:hover { border-color: #d3b9a0; }
.card h2, .card h3 {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.25;
}
.meta { color: var(--muted); font-size: 0.95rem; }
.price-line {
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--cream);
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
  margin-top: 0.15rem;
}
.pills { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.2rem; }
.pill {
  font-size: 0.75rem;
  font-weight: 650;
  background: var(--cream);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.pill.cert {
  background: var(--moss-soft);
  color: var(--moss);
}

.map-frame {
  height: min(68vh, 640px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 1rem 0 2rem;
  background: #d8d3ca;
}
.map-frame .leaflet-container { height: 100%; width: 100%; font-family: var(--font); }

.page { padding: 1.6rem 0 3rem; }
.page h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  margin: 0 0 0.7rem;
  line-height: 1.15;
}
.page h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  margin: 1.4rem 0 0.6rem;
}
.prose { max-width: 42rem; }
.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.crumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.7rem; }
.crumb a { color: inherit; }

.listing-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .listing-grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}
.panel h2 { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 0.7rem; }
.dl { display: grid; gap: 0.7rem; }
.dl div dt { font-size: 0.8rem; color: var(--muted); font-weight: 650; }
.dl div dd { margin: 0.1rem 0 0; }
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.2rem;
}
.source-list, .sources-quiet {
  font-size: 0.85rem;
  color: var(--muted);
}
.source-list { list-style: none; padding: 0; margin: 0; }
.source-list li { margin-bottom: 0.3rem; }
.sources-quiet { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }

.form { display: grid; gap: 0.8rem; max-width: 36rem; }
.form-note {
  background: #fff7e8;
  border: 1px solid #ead7a8;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
}
.form-ok {
  background: var(--moss-soft);
  border: 1px solid #b7d0b1;
  border-radius: 12px;
  padding: 0.8rem 1rem;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  background: #efe8dc;
}
.footer-grid {
  display: grid;
  gap: 1.4rem 2rem;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer h2 {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 0.45rem;
  font-weight: 600;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0.2rem 0; }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-copy { margin-top: 1.4rem; font-size: 0.88rem; }
.muted { color: var(--muted); }
.empty {
  padding: 1.4rem 1rem;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.leaflet-popup-content { margin: 0.7rem 0.85rem; }
.leaflet-popup-content a { font-weight: 650; }

@media (max-width: 799px) {
  .filters-row .check { grid-column: 1 / -1; }
}

.services-heading, .results-heading {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 1.4rem 0 0.75rem;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}
.results-heading { margin-top: 1.1rem; }
