/* Colocation-Lille.net — feuille de style unique, sans build (pas de Node sur l'hébergement).
   Les couleurs doivent rester synchronisées avec StyleguideController::PALETTE (contrastes testés). */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: optional;
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: optional;
  src: url("../fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --primary: #1D4E89;
  --primary-dark: #143A67;
  --accent: #B83C0D;
  --accent-soft: #FBEADF;
  --ink: #1B2430;
  --muted: #586374;
  --line: #D8DEE6;
  --surface: #F6F4F0;
  --white: #FFFFFF;
  --success: #1C7445;
  --success-soft: #E2F3E9;
  --danger: #B42318;

  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgb(27 36 48 / .06), 0 4px 16px rgb(27 36 48 / .06);
  --gutter: 16px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: .15em; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: baseline; gap: 0; text-decoration: none; font-weight: 800; font-size: 1.375rem; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.logo__coloc { color: var(--ink); }
.logo__sep { color: var(--accent); padding-inline: .06em; }
.logo__city { color: var(--primary); }
.logo__tld { color: var(--muted); font-weight: 600; font-size: .7em; margin-left: .08em; }
.logo--stacked { flex-direction: column; align-items: flex-start; line-height: 1; text-transform: uppercase; letter-spacing: .06em; font-size: 1.125rem; }
.logo--stacked .logo__city { font-size: 1.9em; letter-spacing: -.01em; }
.logo-mark { width: 40px; height: 40px; flex: none; }

/* ---------- En-tête et pied ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 8px 24px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.site-nav a:hover { color: var(--primary); text-decoration: underline; }
/* Bouton d'appel à l'action de l'en-tête : texte blanc (la règle .site-nav a ci-dessus l'emportait), plus compact, détaché des liens. */
.site-nav .btn { color: var(--white); min-height: 40px; padding: 8px 18px; margin-left: 8px; }
.site-nav .btn:hover { color: var(--white); background: #9A320B; text-decoration: none; }
.site-footer { background: var(--primary-dark); color: var(--white); margin-top: 64px; padding-block: 40px; font-size: .9375rem; }
.site-footer a { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__nav { margin-block: 24px; }
.site-footer__title { font-weight: 700; margin: 16px 0 8px; }
.site-footer__nav a { display: inline-block; min-height: 24px; }
.site-footer__legal { margin-top: 24px !important; padding-top: 16px !important; border-top: 1px solid rgba(255,255,255,.25); }

.env-banner { background: var(--accent); color: var(--white); text-align: center; font-size: .875rem; font-weight: 700; padding: 4px var(--gutter); }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb { font-size: .875rem; color: var(--muted); padding-block: 12px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: var(--radius-sm); border: 2px solid transparent; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; }
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-dark); color: var(--white); }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: #9A320B; color: var(--white); }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--ghost:hover { background: var(--primary); color: var(--white); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 700; line-height: 1.5; }
.badge--fresh { background: var(--success-soft); color: var(--success); }
.badge--pro { background: #E4ECF6; color: var(--primary); }
.badge--featured { background: var(--accent-soft); color: var(--accent); }
.badge--flatmate { background: var(--accent-soft); color: var(--accent); }
.badge--complete { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.badge--off { background: #ECEEF1; color: var(--muted); }

/* ---------- Cartes d'annonce ---------- */
.card { position: relative; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
/* Toute la carte (photo comprise) est cliquable : le lien du titre s'étend sur la carte, un seul lien pour les lecteurs d'écran. */
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card:focus-within { outline: 3px solid var(--primary); outline-offset: 2px; }
.card__title a:focus-visible { outline: none; }
@media (hover: hover) {
  .card:hover { box-shadow: 0 2px 4px rgb(27 36 48 / .08), 0 10px 28px rgb(27 36 48 / .12); transform: translateY(-2px); }
  .card:hover .card__title a { text-decoration: underline; }
}
.card__media { aspect-ratio: 4 / 3; background: #E8E4DD; }
.card__body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.card__title { font-size: 1.0625rem; margin: 0; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--primary); text-decoration: underline; }
.card__price { color: var(--accent); font-weight: 800; font-size: 1.25rem; }
.card__price small { color: var(--muted); font-weight: 600; font-size: .8125rem; }
.card__meta { color: var(--muted); font-size: .875rem; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ---------- Formulaires ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .9375rem; }
.field .hint { color: var(--muted); font-size: .875rem; }
.input, .select { width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--muted); border-radius: var(--radius-sm); }
.input:focus { border-color: var(--primary); outline: 3px solid rgb(29 78 137 / .25); outline-offset: 0; }
.field--error .input { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: .875rem; font-weight: 600; }

/* ---------- Encadrés ---------- */
.notice { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: var(--radius-sm); }
.promise { display: inline-flex; align-items: center; gap: 8px; background: var(--success-soft); color: var(--success); font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: .9375rem; }

/* ---------- Accueil ---------- */
.hero { padding-block: 40px 32px; }
.hero p.lead { font-size: 1.1875rem; color: var(--muted); max-width: 46ch; }
.search-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 720px) { .search-box { grid-template-columns: 2fr 1fr auto; align-items: end; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.chips a:hover { border-color: var(--primary); color: var(--primary); }

.section { padding-block: 32px; }

/* ---------- Guide de style ---------- */
.sg-swatches { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.sg-swatch { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sg-swatch__color { height: 72px; border-bottom: 1px solid var(--line); }
.sg-swatch__body { padding: 10px 12px; font-size: .875rem; }
.sg-swatch__body code { font-size: .8125rem; }
.sg-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; font-size: .9375rem; }
.sg-table th, .sg-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.sg-table-wrap { overflow-x: auto; }
.sg-sample { display: inline-block; padding: 4px 10px; border-radius: var(--radius-sm); font-weight: 700; }
.sg-panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.sg-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sg-dark { background: var(--primary-dark); color: var(--white); }
.sg-dark .logo__coloc { color: var(--white); }
.sg-dark .logo__city { color: #A9C6EA; }
.sg-dark .logo__tld { color: #C9D3DF; }
.ok { color: var(--success); font-weight: 700; }
.ko { color: var(--danger); font-weight: 700; }
.field--flush { margin: 0; }
.mt { margin-top: 32px; }

/* Utilitaires de couleur (guide de style : pas de style inline, CSP stricte). */
.bg-primary { background: var(--primary); } .fg-primary { color: var(--primary); }
.bg-primary-dark { background: var(--primary-dark); } .fg-primary-dark { color: var(--primary-dark); }
.bg-accent { background: var(--accent); } .fg-accent { color: var(--accent); }
.bg-accent-soft { background: var(--accent-soft); } .fg-accent-soft { color: var(--accent-soft); }
.bg-ink { background: var(--ink); } .fg-ink { color: var(--ink); }
.bg-muted { background: var(--muted); } .fg-muted { color: var(--muted); }
.bg-line { background: var(--line); } .fg-line { color: var(--line); }
.bg-surface { background: var(--surface); } .fg-surface { color: var(--surface); }
.bg-white { background: var(--white); } .fg-white { color: var(--white); }
.bg-success { background: var(--success); } .fg-success { color: var(--success); }
.bg-success-soft { background: var(--success-soft); } .fg-success-soft { color: var(--success-soft); }
.bg-danger { background: var(--danger); } .fg-danger { color: var(--danger); }
.sg-type-scale p { margin: 0 0 8px; }
.fs-sm { font-size: .875rem; } .fs-base { font-size: 1.0625rem; } .fs-lg { font-size: 1.1875rem; }
.fw-400 { font-weight: 400; } .fw-600 { font-weight: 600; } .fw-800 { font-weight: 800; }

/* ---------- Pages de liste ---------- */
.page-head { padding-block: 24px 8px; }
.lead { font-size: 1.1875rem; color: var(--muted); max-width: 60ch; }
.layout-search { display: grid; gap: 24px; }
@media (min-width: 960px) { .layout-search { grid-template-columns: 280px 1fr; align-items: start; } }
.filters { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 14px; }
.filters__checks { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.filters__checks label { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: .9375rem; }
.filters__checks input { width: 20px; height: 20px; accent-color: var(--primary); }
.filters__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.results-count { font-size: 1.125rem; margin-bottom: 16px; }
.empty { background: var(--white); border-radius: var(--radius); padding: 20px; }
.card__media--empty { background: linear-gradient(135deg, #E8E4DD, #F1EEE9); }
img.card__media { width: 100%; height: auto; object-fit: cover; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 0; }
.pagination a, .pagination span { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 12px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.pagination span[aria-current] { background: var(--primary); color: var(--white); border-color: var(--primary); }
.mt-sm { margin-top: 12px; }
details > summary { cursor: pointer; font-weight: 700; color: var(--primary); min-height: 44px; display: flex; align-items: center; }
.chips--static li { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .9375rem; }

/* ---------- Texte éditorial ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.faq { max-width: 72ch; margin-top: 32px; }
.faq details { background: var(--white); border-radius: var(--radius-sm); padding: 4px 16px; margin-bottom: 8px; }
.faq details p { margin: 0 0 12px; }
.cta { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-top: 32px; }
.steps ol { padding-left: 1.3em; max-width: 72ch; }
.steps li { margin-bottom: .6em; }

/* ---------- Fiche annonce ---------- */
.listing__head { padding-top: 16px; }
.listing__price { font-size: 1.75rem; font-weight: 800; color: var(--accent); margin: 0 0 4px; }
.listing__price small { font-size: .9375rem; color: var(--muted); font-weight: 600; }
.listing__where { color: var(--muted); margin-bottom: 8px; }
.listing__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery { display: grid; gap: 8px; grid-auto-flow: column; grid-auto-columns: minmax(85%, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); margin-block: 16px; }
.gallery__item { display: block; scroll-snap-align: start; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; }
.gallery__item:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .25s ease; }
@media (hover: hover) { .gallery__item:hover img { transform: scale(1.03); } }

/* Visionneuse plein écran (gallery.js) */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgb(12 16 22 / .94); display: grid; grid-template-rows: auto 1fr auto; color: var(--white); }
.lightbox[hidden] { display: none; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gutter); font-weight: 600; }
.lightbox__stage { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 var(--gutter); overflow: hidden; touch-action: none; }
/* Gestes gérés par gallery.js (pincement, double-tap, déplacement, balayage). */
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-sm); user-select: none; -webkit-user-drag: none; cursor: zoom-in; transform-origin: center; transition: transform .15s ease-out; will-change: transform; }
.lightbox--zoomed .lightbox__img { cursor: grab; transition: none; }
.lightbox--zoomed .lightbox__caption { visibility: hidden; }
.lightbox__caption { text-align: center; padding: 10px var(--gutter) 16px; font-size: .9375rem; color: #D5DAE1; }
.lightbox__btn { background: rgb(255 255 255 / .12); color: var(--white); border: 0; border-radius: 999px; width: 44px; height: 44px; font-size: 1.5rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lightbox__btn:hover, .lightbox__btn:focus-visible { background: rgb(255 255 255 / .25); outline: none; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
@media (max-width: 719px) { .lightbox__nav { display: none; } }
.no-scroll { overflow: hidden; }
@media (min-width: 960px) { .gallery { grid-auto-columns: minmax(48%, 1fr); } }
.listing__layout { display: grid; gap: 24px; }
@media (min-width: 960px) { .listing__layout { grid-template-columns: 1fr 340px; align-items: start; } }
.listing__main > section { background: var(--white); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.listing__main > .notice { margin-bottom: 16px; }
.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
@media (min-width: 600px) { .facts { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
.panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.panel h2 { font-size: 1.25rem; }
.h3 { font-size: 1.125rem !important; }
.share__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* ---------- Formulaires longs ---------- */
.narrow { max-width: 760px; }
.submit-form fieldset.panel { border: 0; margin: 0 0 16px; }
.submit-form legend { font-size: 1.25rem; font-weight: 800; padding: 0; margin-bottom: 12px; float: left; width: 100%; }
.submit-form legend + * { clear: both; }
.field-row { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .field-row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
fieldset.checks { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
fieldset.checks legend { font-size: .9375rem; font-weight: 700; margin-bottom: 6px; float: none; }
fieldset.checks label, label.check { display: flex; gap: 8px; align-items: flex-start; font-size: .9375rem; }
fieldset.checks input, label.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--primary); }
textarea.input { min-height: 120px; resize: vertical; }
.req { color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error-summary { border: 3px solid var(--danger); background: var(--white); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; }
.error-summary h2 { font-size: 1.125rem; color: var(--danger); }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary a { color: var(--danger); font-weight: 600; }
.thumbs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.thumbs img { width: 120px; height: 90px; object-fit: cover; border-radius: var(--radius-sm); }
.rent-control { margin-top: 8px; }
.btn--lg { min-height: 52px; padding-inline: 28px; font-size: 1.0625rem; }
.choice-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-block: 16px; }
@media (min-width: 720px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice { display: grid; gap: 6px; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); }
.choice strong { font-size: 1.25rem; color: var(--primary); }
.choice:hover { border-color: var(--primary); color: var(--ink); }
[hidden] { display: none !important; }
.notice--ok { background: var(--success-soft); border-left-color: var(--success); color: var(--ink); margin-bottom: 16px; }
.actions { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }

/* ---------- Administration ---------- */
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 16px; font-weight: 600; }
form.inline { display: inline; margin-left: auto; }
.linklike { background: none; border: 0; padding: 0; color: var(--primary); text-decoration: underline; font: inherit; cursor: pointer; min-height: 44px; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.stat { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 4px; }
.stat__n { font-size: 1.75rem; font-weight: 800; color: var(--primary); }
.stat__l { color: var(--muted); font-size: .875rem; }
.agency__logo { width: 240px; max-width: 100%; height: auto; margin-bottom: 8px; }
.btn--block { display: flex; width: 100%; }

/* ---------- Pages quartier ---------- */
.prose-block { max-width: 72ch; }
.prose-block h2 { margin-top: 1.6em; }
.facts-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.fact-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.fact-card h3 { font-size: 1.0625rem; color: var(--muted); margin-bottom: 4px; }
.fact-card__big { font-size: 2rem; font-weight: 800; color: var(--primary); margin: 0 0 4px; line-height: 1.1; }
.bars { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.bars li { display: grid; grid-template-columns: 7.5em 1fr 3em; gap: 8px; align-items: center; font-size: .875rem; }
.bars__track { background: #ECEEF1; border-radius: 999px; height: 10px; overflow: hidden; }
.bars__fill { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.bars__value { text-align: right; font-weight: 700; }
.dpe { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dpe__item { border-radius: var(--radius-sm); padding: 6px 2px; text-align: center; display: grid; font-size: .8125rem; }
.dpe__class { font-weight: 800; font-size: 1rem; }
.dpe--a { background: #009C6D; color: #fff; } .dpe--b { background: #52B153; color: #fff; } .dpe--c { background: #A5CC74; color: #1B2430; }
.dpe--d { background: #F4E70F; color: #1B2430; } .dpe--e { background: #F0B40F; color: #1B2430; } .dpe--f { background: #EB8235; color: #1B2430; }
.dpe--g { background: #B12C1F; color: #fff; }
.sources { margin-top: 12px; max-width: 90ch; }
.zone-map-layout { display: grid; gap: 24px; }
@media (min-width: 960px) { .zone-map-layout { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.zone-map { margin: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; }
.zone-map > svg { width: 100%; height: auto; display: block; }
.zone-map__outline { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; }
.zone-map__stop text { font: 700 13px var(--font); }
.campus-list { padding-left: 1.2em; }
.w-0 { width: 0%; } .w-1 { width: 1%; } .w-2 { width: 2%; } .w-3 { width: 3%; } .w-4 { width: 4%; } .w-5 { width: 5%; } .w-6 { width: 6%; } .w-7 { width: 7%; } .w-8 { width: 8%; } .w-9 { width: 9%; }
.w-10 { width: 10%; } .w-11 { width: 11%; } .w-12 { width: 12%; } .w-13 { width: 13%; } .w-14 { width: 14%; } .w-15 { width: 15%; } .w-16 { width: 16%; } .w-17 { width: 17%; } .w-18 { width: 18%; } .w-19 { width: 19%; }
.w-20 { width: 20%; } .w-21 { width: 21%; } .w-22 { width: 22%; } .w-23 { width: 23%; } .w-24 { width: 24%; } .w-25 { width: 25%; } .w-26 { width: 26%; } .w-27 { width: 27%; } .w-28 { width: 28%; } .w-29 { width: 29%; }
.w-30 { width: 30%; } .w-31 { width: 31%; } .w-32 { width: 32%; } .w-33 { width: 33%; } .w-34 { width: 34%; } .w-35 { width: 35%; } .w-36 { width: 36%; } .w-37 { width: 37%; } .w-38 { width: 38%; } .w-39 { width: 39%; }
.w-40 { width: 40%; } .w-41 { width: 41%; } .w-42 { width: 42%; } .w-43 { width: 43%; } .w-44 { width: 44%; } .w-45 { width: 45%; } .w-46 { width: 46%; } .w-47 { width: 47%; } .w-48 { width: 48%; } .w-49 { width: 49%; }
.w-50 { width: 50%; } .w-51 { width: 51%; } .w-52 { width: 52%; } .w-53 { width: 53%; } .w-54 { width: 54%; } .w-55 { width: 55%; } .w-56 { width: 56%; } .w-57 { width: 57%; } .w-58 { width: 58%; } .w-59 { width: 59%; }
.w-60 { width: 60%; } .w-61 { width: 61%; } .w-62 { width: 62%; } .w-63 { width: 63%; } .w-64 { width: 64%; } .w-65 { width: 65%; } .w-66 { width: 66%; } .w-67 { width: 67%; } .w-68 { width: 68%; } .w-69 { width: 69%; }
.w-70 { width: 70%; } .w-71 { width: 71%; } .w-72 { width: 72%; } .w-73 { width: 73%; } .w-74 { width: 74%; } .w-75 { width: 75%; } .w-76 { width: 76%; } .w-77 { width: 77%; } .w-78 { width: 78%; } .w-79 { width: 79%; }
.w-80 { width: 80%; } .w-81 { width: 81%; } .w-82 { width: 82%; } .w-83 { width: 83%; } .w-84 { width: 84%; } .w-85 { width: 85%; } .w-86 { width: 86%; } .w-87 { width: 87%; } .w-88 { width: 88%; } .w-89 { width: 89%; }
.w-90 { width: 90%; } .w-91 { width: 91%; } .w-92 { width: 92%; } .w-93 { width: 93%; } .w-94 { width: 94%; } .w-95 { width: 95%; } .w-96 { width: 96%; } .w-97 { width: 97%; } .w-98 { width: 98%; } .w-99 { width: 99%; }
.w-100 { width: 100%; } 
/* En-tête de page quartier : photo de rue en filigrane */
.zone-hero { position: relative; overflow: hidden; border-radius: var(--radius); margin: 16px 0 8px; background: var(--primary-dark); color: var(--white); }
.zone-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: saturate(.7); }
.zone-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(20 58 103 / .92) 0%, rgb(20 58 103 / .55) 60%, rgb(20 58 103 / .25) 100%); }
.zone-hero__content { position: relative; z-index: 1; padding: 28px 20px 24px; max-width: 760px; }
@media (min-width: 720px) { .zone-hero__content { padding: 40px 40px 32px; } }
.zone-hero h1 { color: var(--white); }
.zone-hero .lead { color: #E6ECF4; }
.zone-hero .promise { background: rgb(255 255 255 / .92); }
.zone-hero__stats { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .9375rem; color: #E6ECF4; }
.zone-hero__stats strong { color: var(--white); font-size: 1.25rem; }
.zone-hero__credit { position: relative; z-index: 1; margin: 0; padding: 0 24px 10px; font-size: .75rem; color: #C9D3DF; text-align: right; }
.zone-hero__credit a { color: #C9D3DF; }

.zone-map__line { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.zone-map__line--tram { stroke-width: 3.5; }
.zone-map__poi { stroke: #fff; stroke-width: 1; }
.map-legend { list-style: none; padding: 0; margin: 10px 0 6px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8125rem; }
.map-legend li { display: flex; align-items: center; gap: 6px; }
.map-legend svg { flex: none; display: inline-block; }

/* Accueil : bandeau photo (beffroi à droite, texte et recherche à gauche) */
.home-hero .zone-hero__content { max-width: 820px; }
.home-hero__img { object-position: 70% 30%; }
.home-hero .search-box { box-shadow: 0 4px 24px rgb(0 0 0 / .25); }
.home-hero .search-box label { color: var(--ink); }

/* ---------- Commentaires des pages quartier ---------- */
.comment-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.comment { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; }
.comment__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: 6px; }
.comment__author { color: var(--primary-dark); }
.comment__profile { color: var(--muted); font-size: .9375rem; }
.comment__date { margin-left: auto; color: var(--muted); font-size: .875rem; }
.comment__body { margin: 0 0 6px; overflow-wrap: anywhere; }
.comment__report { margin: 0; font-size: .8125rem; }
.comment__report a { color: var(--muted); }
.comment-form > summary { cursor: pointer; font-weight: 700; color: var(--primary); }
.comment-form[open] > summary { margin-bottom: 12px; }
.break-all { overflow-wrap: anywhere; }

/* ---------- Bloc « L'essentiel » et chiffres clés (plan GEO) ---------- */
.essentials { margin-block: 12px; padding: 12px 16px; border-left: 4px solid var(--accent); background: rgba(255,255,255,.92); color: var(--text, #1B2430); border-radius: var(--radius-sm); }
.essentials__title { font-size: 1rem; margin: 0 0 4px; }
.essentials p { margin: 0; font-size: .9375rem; line-height: 1.5; }
.updated { font-size: .875rem; margin: 4px 0 0; opacity: .85; }
.key-figures caption { text-align: left; font-weight: 700; padding-bottom: 8px; }
.key-figures th { width: 40%; }
.sort-button { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: inherit; cursor: pointer; text-align: left; min-height: 24px; }
.sort-button::after { content: " ↕"; opacity: .5; }
th[aria-sort="ascending"] .sort-button::after { content: " ↑"; opacity: 1; }
th[aria-sort="descending"] .sort-button::after { content: " ↓"; opacity: 1; }

/* Actualités */
.news__kicker { font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 6px; }
.news__figure { margin: 20px 0; }
.news__figure img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.news__figure figcaption { margin-top: 6px; }
.news .prose { max-width: none; }
.prose table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; font-size: .9375rem; margin: 1em 0; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.encadre { margin: 1.5em 0; }
.encadre > :first-child { margin-top: 0; }
.encadre > :last-child { margin-bottom: 0; }
.news-list { list-style: none; padding: 0; display: grid; gap: 24px; }
.news-list__item { display: grid; gap: 12px; }
.news-list__item img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.news-list__title { font-size: 1.25rem; margin: 4px 0; }
@media (min-width: 640px) { .news-list__item { grid-template-columns: 240px 1fr; align-items: start; } }

/* Validation des annonces saisies pour une agence */
.thumb-cover { object-fit: cover; border-radius: 4px; }
.owner-validation__photo { width: 100%; height: auto; border-radius: var(--radius); display: block; margin-bottom: 12px; }
.listing__cta { margin-top: 12px; }
.nowrap { white-space: nowrap; }
