:root {
  --pierre: #f4f2ed;
  --encre: #1c1b19;
  --orange: #b4410c;
  --orange-clair: #f08a4b;
  --vert: #14532d;
  --vert-fond: #dcfce7;
  --ligne: #ddd9d0;
  --blanc: #fff;
  --gris: #6f6a62;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pierre);
  color: var(--encre);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv05";
}
h1, h2, .marque {
  font-family: Archivo, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-size: 1.75rem; margin: 0.2rem 0 0.35rem; }
h2 { font-size: 1.2rem; margin: 0 0 0.7rem; }
a { color: var(--orange); }
a:hover { text-decoration: none; }
.skip {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background: var(--blanc);
  padding: 0.4rem 0.7rem;
}
.skip:focus { top: 0.5rem; z-index: 5; }
.barre { background: var(--encre); color: var(--blanc); }
.barre-inner, .page { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; }
.barre-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  min-height: 56px;
  padding: 0.4rem 0;
}
.marque {
  color: var(--blanc);
  text-decoration: none;
  font-size: 1.15rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.marque-ca { color: #F08A4B; }
.nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
.nav a { color: var(--blanc); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--orange-clair); }
.page { padding: 1rem 0 3rem; }
.fil {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.4rem;
  max-width: 100%;
  color: var(--gris);
  font-size: 0.92rem;
  line-height: 1.4;
  margin: 0 0 1.25rem;
}
.fil a, .fil span[aria-current] { display: inline; }
.fil a { color: var(--gris); text-decoration: none; }
.fil .sep { color: #b7b2a8; }
.fil span[aria-current] { color: var(--encre); }
.layout { display: grid; gap: 1rem; }
.carte-bloc, .cadenas, .annonce, .carte {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.pastilles { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; }
.logo-dispo {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  margin-right: 0.35rem;
  flex: none;
}
.logo-dispo-lg { width: 28px; height: 28px; border-radius: 7px; }
.cadenas h2, .marque-dispo { display: flex; align-items: center; gap: 0.6rem; }
.cadenas h2 .logo-dispo, .marque-dispo .logo-dispo { margin-right: 0; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}
.pill-vert { background: var(--vert-fond); color: var(--vert); }
.pill-gris, .pill-neutre { background: #eceae4; color: #3f3c37; }
.sous-titre, .mention, .usage, .disclaimer { color: var(--gris); }
.intro { max-width: 68ch; }
.coords { padding-left: 1.1rem; }
.statuts { display: flex; flex-wrap: wrap; gap: 0.8rem; font-weight: 600; }
.ouvert { color: var(--vert); }
.carte { display: flex; flex-direction: column; gap: 0.6rem; min-height: 140px; background: #e7e4dc; }
.carte a, .disclaimer a { display: inline-flex; align-items: center; min-height: 44px; }
.carte-label { font-weight: 600; }
.annonce { border-color: #e7c3b2; }
.carte-bloc-tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.heures td { text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.matieres { min-width: 36rem; }
.usage { display: block; font-size: 0.88rem; }
.tags, .depots, .docs, .proches { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.tags { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.tags li, .depots li {
  border: 1px solid var(--ligne);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
}
.depots li, .proches a { display: flex; flex-direction: column; gap: 0.15rem; }
.proches { grid-template-columns: 1fr; }
.proches a {
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--ligne);
  border-radius: 12px;
  padding: 0.8rem;
  min-height: 44px;
}
.proches a:hover { border-color: var(--encre); }
.cadenas { border-style: dashed; }
.cadenas ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.photos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.8rem; }
.photos img { border-radius: 12px; object-fit: cover; background: #e7e4dc; max-width: 100%; }
.logo { width: 96px; height: 96px; }
.form label, .form legend { display: block; font-weight: 600; margin: 0.7rem 0 0.25rem; }
.form input, .form select, .form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--ligne);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  color: inherit;
  background: var(--blanc);
}
.form textarea { min-height: 8rem; }
.form button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 0.9rem;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  color: var(--blanc);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.form button:hover, .btn:hover { filter: brightness(1.05); }
.estime { margin: 0.8rem 0 0; }
.estime div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; }
.estime dt { color: var(--gris); }
.estime dd { margin: 0; font-weight: 600; }
.lien-secondaire { margin: 0.6rem 0 0; }
.btn-secondaire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 0;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--ligne);
  border-radius: 10px;
  background: var(--blanc);
  color: var(--encre);
  font-weight: 600;
  text-decoration: none;
}
.btn-secondaire:hover { border-color: var(--encre); }
.segment { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 0.45rem; }
.segment button {
  min-height: 44px;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--ligne);
  background: var(--blanc);
  color: var(--encre);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.segment button[aria-pressed="true"] { background: var(--encre); color: var(--blanc); border-color: var(--encre); }
.segment a, .segment span[aria-current] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--ligne);
  background: var(--blanc);
  color: var(--encre);
  font-weight: 600;
  text-decoration: none;
}
.segment a[aria-current], .segment span[aria-current] {
  background: var(--encre);
  color: var(--blanc);
  border-color: var(--encre);
}
.segment-tri { margin: 0 0 0.85rem; }
.gerer {
  margin-top: 1.25rem;
  padding: 1.1rem;
  background: #1c1b19;
  color: #f4f2ed;
  border-radius: 12px;
}
.gerer h2 { margin: 0; font-size: 1.05rem; color: #fff; }
.gerer p { margin: 0.4rem 0 0; color: #d6d1c7; font-size: 0.95rem; }
.gerer .btn { gap: 0.4rem; }
.disclaimer { font-size: 0.92rem; }
.banner {
  background: var(--vert-fond);
  color: var(--vert);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  margin: 0 0 1rem;
}
.banner-err { background: #fde8e2; color: #7a2a0c; }
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.choix { font-weight: 500; min-height: 44px; display: flex; align-items: center; gap: 0.45rem; }
.choix input { width: auto; min-height: 1.1rem; }
.etroit { max-width: 40rem; }
.lien-hub { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.55rem; }
.lien-hub a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  padding: 0.7rem 0.9rem;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}
.lien-hub a:hover { border-color: var(--encre); }
.lien-mort {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--ligne);
  border-radius: 12px;
  color: var(--gris);
}
.lien-hub span { color: var(--gris); font-variant-numeric: tabular-nums; }
.pagination { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--ligne);
  background: var(--blanc);
  text-decoration: none;
  color: inherit;
}
.faq h3 { font-size: 1rem; margin: 1rem 0 0.25rem; }
section { margin-top: 2.5rem; }
.carte-cadre {
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  background: #e7e4dc;
  border: 1px solid var(--ligne);
}
.carte-quebec { height: 420px; }
.carte-regions { height: 480px; }
.carte-cadre .maplibregl-map { height: 100%; }
.legende { color: var(--gris); font-size: 0.92rem; margin: 0.45rem 0 0; }
.legende-carte {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  padding: 0.6rem 0 0;
  margin: 0;
  color: var(--gris);
  font-size: 0.88rem;
}
.legende-carte li { display: inline-flex; align-items: center; gap: 0.4rem; }
.legende-carte .pastille {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(28, 27, 25, 0.18);
}
.source-carte { margin: 0.25rem 0 0; color: var(--gris); font-size: 0.82rem; }
.suite-carte { margin-top: 1.25rem; }
.popup-region .maplibregl-popup-content { pointer-events: none; padding: 0.4rem 0.65rem; }
.popup-region .maplibregl-popup-tip { pointer-events: none; }
.carte-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.7rem 0 0; }
.infos { display: grid; gap: 0.85rem 1.5rem; margin: 0; }
.infos div { min-width: 0; }
.infos dt { color: var(--gris); font-size: 0.82rem; margin: 0 0 0.15rem; }
.infos dd { margin: 0; }
.infos-large { grid-column: 1 / -1; }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0.8rem 0 0; }
.chips span, .chips a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 32px;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ligne);
  color: inherit;
  text-decoration: none;
  font-size: 0.92rem;
}
.chips a span { border: 0; background: transparent; padding: 0; min-height: 0; color: var(--gris); }
.recherche, .grille-regions, .grille-cartes, .grille-types, .cartes-sites {
  list-style: none;
  padding: 0;
  margin: 0;
}
.recherche {
  display: grid;
  gap: 0.8rem;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1.25rem;
}
.recherche button { margin-top: 0; }
.grille-regions, .grille-cartes, .cartes-sites { display: grid; gap: 0.75rem; }
.grille-regions a, .grille-regions .lien-mort, .grille-cartes a, .cartes-sites a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-height: 72px;
  padding: 0.85rem 0.95rem;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}
.cartes-sites a:hover, .cartes-sites a:focus-visible {
  border-color: #b9b4a8;
  box-shadow: 0 8px 18px rgba(28, 27, 25, 0.07);
}
.cartes-sites a.carte-ligne {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.cartes-sites .texte { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.badge-km {
  flex: none;
  border: 1px solid var(--ligne);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  color: var(--gris);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}
.cartes-une { grid-template-columns: 1fr; }
.cartes-une .lieu { color: var(--gris); }
.grille-index {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  align-items: stretch;
  gap: 0.75rem;
}
.grille-index > li { display: flex; min-width: 0; }
.grille-index > li > a,
.grille-index > li > .lien-mort,
.grille-index > li > .carte-region {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex: 1 1 auto;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
  height: auto;
  padding: 1rem;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}
.grille-index > li > a:hover, .grille-index > li > a:focus-visible {
  border-color: #b9b4a8;
  box-shadow: 0 8px 18px rgba(28, 27, 25, 0.07);
}
.grille-index > li > .lien-mort,
.grille-index > li > .carte-vide { color: var(--gris); }
.grille-index .compte, .grille-index .villes, .grille-index .phrase, .grille-index .compteurs {
  color: var(--gris);
  font-size: 0.92rem;
}
.grille-index .compteurs { font-size: 0.88rem; line-height: 1.35; }
.grille-index .compte { font-variant-numeric: tabular-nums; }
.grille-index > li > a .compte,
.grille-index > li > .lien-mort .compte { margin-top: auto; }
.grille-index .carte-region .villes { margin-top: auto; }
.grille-index .carte-region .entete {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
  min-width: 0;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}
.grille-index .carte-region .nom {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  line-height: 1.3;
}
.grille-index .carte-region a.entete:hover .nom,
.grille-index .carte-region a.entete:focus-visible .nom { color: var(--orange); }
.grille-index .villes a {
  color: var(--gris);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.grille-index .villes a:hover,
.grille-index .villes a:focus-visible { color: var(--orange); }
.grille-index > li > a strong { max-width: 100%; }
.icone, .grille-types svg, .grille-index svg.icone { width: 28px; height: 28px; color: var(--orange); }
.hero-site .compte-sites { color: var(--gris); font-variant-numeric: tabular-nums; }
.avant-apres, .benefices { display: grid; gap: 0.75rem; }
.apercu, .benefices li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1rem;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 12px;
}
.apercu-apres { border-color: #14532d; }
.apercu-legende { margin: 0; color: var(--gris); font-size: 0.82rem; }
.apercu-masque { color: var(--gris); }
.benefices { list-style: none; padding: 0; margin: 0; }
.etapes { margin: 0; padding-left: 1.2rem; display: grid; gap: 1.25rem; }
.etapes li { padding-left: 0.2rem; }
.etapes span, .benefices span { color: var(--gris); }
.suggestions { list-style: none; padding: 0; margin: 0.6rem 0 0; display: grid; gap: 0.4rem; }
.suggestions a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  align-items: center;
  padding: 0.55rem 0.8rem;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}
.suggestions a:hover, .suggestions a:focus-visible { border-color: #b9b4a8; }
.suggestions span { color: var(--gris); }
.pied { border-top: 1px solid var(--ligne); padding: 1.5rem 0 2.5rem; color: var(--gris); font-size: 0.92rem; }
.pied-inner { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; }
.pied nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; }
.pied a { color: var(--gris); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.pied a:hover { color: var(--encre); }
.pied-marque { display: flex; align-items: center; gap: 0.45rem; margin: 0.8rem 0 0; }
.grille-regions a span, .grille-regions .lien-mort span, .grille-types a span { color: var(--gris); font-size: 0.92rem; }
.grille-types { display: grid; gap: 0.75rem; }
.grille-types a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 140px;
  padding: 1rem;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}
.grille-types svg { width: 28px; height: 28px; color: var(--orange); }
.cartes-edu { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.75rem; }
.cartes-edu article {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
  padding: 1rem;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 12px;
}
.cartes-edu h2 { font-size: 1.05rem; margin: 0; }
.cartes-edu p { margin: 0; }
.cartes-edu .liens { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin-top: auto; }
.cartes-edu .liens a { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.cartes-sites a strong, .apercu strong {
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-feature-settings: "cv05";
  letter-spacing: 0;
}
.cadenas p { margin: 0.35rem 0 0; }
.disclaimer { font-size: 0.88rem; margin-top: 2rem; }
.barre-prix {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
@media (max-width: 899px) {
  body { padding-bottom: 5rem; }
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (min-width: 700px) {
  .grille-regions, .grille-cartes, .cartes-edu, .grille-index, .avant-apres, .benefices { grid-template-columns: 1fr 1fr; }
  .grille-types { grid-template-columns: 1fr 1fr; }
  .infos { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .colonne { position: sticky; top: 1rem; }
  .proches, .cartes-sites { grid-template-columns: 1fr 1fr; }
  .cartes-une { grid-template-columns: 1fr; }
  .carte-cadre { height: 320px; }
  .carte-cadre.carte-regions { height: 560px; }
  .barre-prix { display: none; }
  body { padding-bottom: 0; }
  h1 { font-size: 2.4rem; }
  section { margin-top: 3rem; }
  .recherche { grid-template-columns: 1fr 1fr auto; align-items: end; }
}
@media (min-width: 1000px) {
  .grille-regions, .cartes-edu, .grille-index, .benefices { grid-template-columns: 1fr 1fr 1fr; }
  .grille-types { grid-template-columns: 1fr 1fr 1fr; }
}
