/* Relevons-nous — feuille de style unique, mobile d'abord */

:root {
  --paper: #f6f4ef;
  --paper-2: #efece4;
  --surface: #ffffff;
  --ink: #13161c;
  --ink-2: #3c424d;
  --muted: #646b78;
  --line: rgba(19, 22, 28, .10);
  --line-2: rgba(19, 22, 28, .18);

  --need: #c2410c;
  --need-strong: #9a3412;
  --need-weak: #fdeee6;
  --help: #0f766e;
  --help-strong: #115e59;
  --help-weak: #e1f3ef;

  --ring: rgba(15, 118, 110, .35);
  --shadow-sm: 0 1px 2px rgba(19, 22, 28, .05), 0 4px 14px rgba(19, 22, 28, .05);
  --shadow: 0 1px 2px rgba(19, 22, 28, .06), 0 14px 40px rgba(19, 22, 28, .09);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  --font-display: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fill: #13161c;          /* fonds pleins « encre » (boutons, pastilles, bulles) */
  --on-fill: #ffffff;
  --deep: #13161c;          /* pied de page et bandeaux sombres, sombres dans les deux thèmes */
  --glass: rgba(246, 244, 239, .92);
  --glass-chip: rgba(255, 255, 255, .94);
  --map-bg: #e8e6df;
  --warn-bg: #fff7e0; --warn-fg: #7a5200;
  --ok-bg: #dcfce7; --ok-fg: #166534;
  color-scheme: light;

  --gutter: 16px;
  --topbar-h: 64px;
}
/* Thème sombre : choisi dans le menu ou le pied de page (clair, sombre, ou automatique selon le système). */
:root[data-theme="dark"] {
  --paper: #0f1114;
  --paper-2: #16191e;
  --surface: #1b1f25;
  --ink: #eceef1;
  --ink-2: #c3c8d0;
  --muted: #9aa1ad;
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .20);

  --need: #d4561c;
  --need-strong: #f6a57f;
  --need-weak: #2c1a12;
  --help: #0f8a7f;
  --help-strong: #74d6c8;
  --help-weak: #0f2b28;

  --ring: rgba(116, 214, 200, .40);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 4px 14px rgba(0, 0, 0, .25);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 40px rgba(0, 0, 0, .45);

  --fill: #eceef1;
  --on-fill: #13161c;
  --deep: #07080a;
  --glass: rgba(15, 17, 20, .90);
  --glass-chip: rgba(27, 31, 37, .94);
  --map-bg: #1a1d22;
  --warn-bg: #2e2510; --warn-fg: #f3d27a;
  --ok-bg: #12301d; --ok-fg: #8ee0a8;
  color-scheme: dark;
}
:root[data-theme="dark"] .only-light, :root:not([data-theme="dark"]) .only-dark { display: none !important; }


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 480 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.025em; margin: 0; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fill); color: var(--on-fill); padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 650; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-ink { background: var(--fill); color: var(--on-fill); }
.btn-need { background: var(--need); color: #fff; }
.btn-need:hover { background: var(--need-strong); }
.btn-help { background: var(--help); color: #fff; }
.btn-help:hover { background: var(--help-strong); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-text { background: none; border: 0; padding: 0; min-height: 0; color: var(--muted); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.btn-text:hover { color: var(--ink); transform: none; }
.btn[disabled] { opacity: .55; cursor: wait; transform: none; }

/* ---------- En-tête ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--glass);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: var(--topbar-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--surface); cursor: pointer; }
.nav {
  display: none; position: absolute; top: var(--topbar-h); left: 0; right: 0;
  flex-direction: column; gap: 4px; padding: 12px var(--gutter) 18px;
  background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.nav.open { display: flex; }
.nav > a:not(.btn) { padding: 12px 4px; text-decoration: none; font-weight: 550; border-bottom: 1px solid var(--line); }
.nav .btn { margin-top: 8px; }
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 22px; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav > a:not(.btn) { padding: 6px 0; border: 0; font-size: 15px; color: var(--ink-2); }
  .nav > a:not(.btn):hover { color: var(--ink); }
  .nav .btn { margin-top: 0; }
  .nav .btn-need { margin-left: 4px; }
  .nav .btn-help { margin-left: -12px; }
}
@media (min-width: 900px) and (max-width: 1139px) { .nav .btn { display: none; } }

/* ---------- Barre mobile ---------- */
.mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.mobilebar .btn { padding: 0 10px; font-size: 14px; }
body.has-mobilebar { padding-bottom: 76px; }
body:not(.has-mobilebar) .mobilebar { display: none; }
@media (min-width: 900px) { .mobilebar { display: none !important; } body.has-mobilebar { padding-bottom: 0; } }

/* ---------- Typo commune ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--help); box-shadow: 0 0 0 4px var(--help-weak); }
.eyebrow.need { color: var(--need); background: var(--need-weak); border-color: transparent; }
.eyebrow.help { color: var(--help); background: var(--help-weak); border-color: transparent; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 60ch; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.section { padding: 56px 0; }

/* ---------- Accueil : hero ---------- */
.hero { padding: 36px 0 24px; }
.hero-grid { display: grid; gap: 28px; }
.hero h1 { font-size: clamp(2.5rem, 8vw, 4.6rem); margin: 18px 0 18px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.hl { background: linear-gradient(transparent 60%, var(--help-weak) 60%, var(--help-weak) 92%, transparent 92%); padding: 0 .04em; }
.cta-duo { display: grid; gap: 12px; margin-top: 26px; }
.cta {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 18px; border-radius: var(--r-lg); color: #fff; text-decoration: none;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cta-need { background: var(--need); }
.cta-help { background: var(--help); }
.cta-ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .16); }
.cta-ico svg { width: 26px; height: 26px; }
.cta strong { display: block; font-family: var(--font-display); font-size: 21px; letter-spacing: -0.02em; line-height: 1.15; }
.cta small { display: block; font-size: 14px; opacity: .9; margin-top: 2px; }
.cta-arrow { margin-left: auto; width: 22px; height: 22px; opacity: .85; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; color: var(--ink-2); font-size: 14px; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--help); }

.stats-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); align-self: start; }
.stats-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.stats-head p { font-weight: 650; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--help); }
.live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--paper); border-radius: var(--r-md); padding: 14px; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 6vw, 2.5rem); line-height: 1; letter-spacing: -0.03em; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.3; }
.stat.need b { color: var(--need); }
.stat.help b { color: var(--help); }
.stats-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

@media (min-width: 900px) {
  .hero { padding: 64px 0 40px; }
  .hero-grid { grid-template-columns: 1.45fr 1fr; gap: 48px; align-items: center; }
  .cta-duo { grid-template-columns: 1fr 1fr; }
  .stats-card { padding: 26px; }
}

/* ---------- Accueil : carte + liste ---------- */
.explore { padding: 28px 0 48px; }
.explore-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.explore-head p { color: var(--muted); margin-top: 6px; }
.seg { display: inline-flex; padding: 4px; background: var(--paper-2); border-radius: 999px; gap: 2px; }
.seg button, .seg label {
  border: 0; background: none; cursor: pointer; padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: 14px; color: var(--ink-2); white-space: nowrap;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg .k-need[aria-pressed="true"] { color: var(--need); }
.seg .k-help[aria-pressed="true"] { color: var(--help); }

.toolbar { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 12px; }
.toolbar .combo { grid-column: 1 / -1; }
@media (min-width: 700px) { .toolbar { grid-template-columns: minmax(0, 360px) auto auto 1fr; } .toolbar .combo { grid-column: auto; } }
.select {
  appearance: none; min-height: 46px; padding: 0 38px 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2313161c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  font-weight: 550; font-size: 14.5px; cursor: pointer;
}
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 calc(var(--gutter) * -1) 6px; padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .chips { flex-wrap: wrap; overflow: visible; margin: 0 0 6px; padding: 2px 0 10px; } }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer;
  font-size: 14px; font-weight: 550; color: var(--ink-2); user-select: none;
}
.chip svg { width: 16px; height: 16px; }
.chip[aria-pressed="true"], .chip:has(input:checked) { background: var(--fill); border-color: var(--fill); color: var(--on-fill); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 2px; }

.explore-grid { display: grid; gap: 14px; }
.map-wrap { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--map-bg); height: 56vh; min-height: 320px; max-height: 560px; }
.map-wrap > .map { position: absolute; inset: 0; } /* plus spécifique que .maplibregl-map */
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); }
.legend { position: absolute; left: 10px; top: 10px; z-index: 2; display: flex; gap: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; background: var(--glass-chip); border-radius: 999px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow-sm); }
.legend i { width: 10px; height: 10px; border-radius: 50%; }
.list-wrap { display: flex; flex-direction: column; min-height: 0; }
.list-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.cards { display: grid; gap: 10px; }
.more { margin-top: 12px; }
@media (min-width: 900px) {
  .explore-grid { grid-template-columns: 1.4fr 1fr; height: 640px; }
  .map-wrap { height: 100%; max-height: none; }
  .list-wrap { height: 100%; }
  .cards-scroll { overflow-y: auto; padding-right: 6px; flex: 1; overscroll-behavior: contain; }
}

/* ---------- Cartes d'annonce ---------- */
.card {
  display: block; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 16px 14px 20px; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--help); }
.card.k-besoin::before { background: var(--need); }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.card.is-active { border-color: var(--ink); box-shadow: var(--shadow); }
.card h3 { font-size: 18px; margin: 8px 0 4px; letter-spacing: -0.015em; line-height: 1.2; }
.card .excerpt { color: var(--ink-2); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 650; background: var(--paper-2); color: var(--ink-2); line-height: 1.4; }
.badge.k-besoin { background: var(--need-weak); color: var(--need-strong); }
.badge.k-aide { background: var(--help-weak); color: var(--help-strong); }
.badge.urgent { background: var(--fill); color: var(--on-fill); }
.badge.resolved { background: var(--ok-bg); color: var(--ok-fg); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta svg { width: 15px; height: 15px; }
.empty { background: var(--surface); border: 1.5px dashed var(--line-2); border-radius: var(--r-md); padding: 26px 20px; text-align: center; color: var(--ink-2); }
.empty strong { display: block; font-family: var(--font-display); font-size: 19px; margin-bottom: 6px; color: var(--ink); }
.empty .btn { margin-top: 14px; }

/* Popup carte */
.maplibregl-popup-content { border-radius: 14px !important; padding: 14px 16px !important; box-shadow: var(--shadow) !important; font-family: var(--font-body); max-width: 260px; }
.pop h4 { font-size: 16px; margin: 6px 0 4px; line-height: 1.25; }
.pop p { font-size: 13px; color: var(--muted); }
.pop a { display: inline-block; margin-top: 8px; font-weight: 650; font-size: 14px; color: var(--ink); }
.maplibregl-ctrl-attrib { font-size: 11px; }

/* ---------- Comment ça marche ---------- */
.steps { display: grid; gap: 12px; margin-top: 24px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--fill); color: var(--on-fill); font-family: var(--font-display); font-weight: 800; margin-bottom: 14px; }
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 15px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Bandeaux ---------- */
.band { border-radius: var(--r-lg); padding: 26px; display: grid; gap: 16px; align-items: center; }
.band h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); }
.band p { margin-top: 8px; }
.band-safety { background: var(--surface); border: 1px solid var(--line); }
.band-safety ul { display: grid; gap: 8px; margin-top: 14px; }
.band-safety li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.band-safety li svg { flex: none; width: 20px; height: 20px; color: var(--need); margin-top: 2px; }
.band-ink { background: var(--deep); color: #fff; }
.band-ink p { color: rgba(255, 255, 255, .8); }
.band-ink .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.band-ink .btn-ghost:hover { border-color: #fff; }
.band-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 800px) { .band { grid-template-columns: 1.4fr auto; padding: 34px 38px; } }

/* ---------- Formulaires ---------- */
.page { padding-top: 28px; padding-bottom: 64px; }
.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 14px 0 10px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; margin-bottom: 18px; }
.back:hover { color: var(--ink); }
.back svg { width: 18px; height: 18px; }
.form { display: grid; gap: 14px; }
.fs { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg); padding: 20px; margin: 0; min-width: 0; display: grid; gap: 16px; }
.fs legend { float: left; width: 100%; padding: 0; display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 750; font-size: 19px; letter-spacing: -0.015em; }
.fs legend + * { clear: both; }
.fs legend .n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--paper-2); font-size: 14px; }
.fs .hint-top { margin-top: -8px; color: var(--muted); font-size: 14px; }
.field { display: grid; gap: 6px; }
.field > label, .label { font-weight: 600; font-size: 14.5px; }
.field .opt { font-weight: 400; color: var(--muted); }
.hint { font-size: 13.5px; color: var(--muted); }
.input, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface);
  font-size: 16px; transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--help); box-shadow: 0 0 0 4px var(--ring); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--need); }
.counter { justify-self: end; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.row2 { display: grid; gap: 14px; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } .fs { padding: 24px 26px; } }
.radios { display: grid; gap: 8px; }
.radio-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1.5px solid var(--line-2); border-radius: 14px; cursor: pointer; background: var(--surface); }
.radio-card input { position: absolute; opacity: 0; }
.radio-card .ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--paper); }
.radio-card .ico svg { width: 20px; height: 20px; }
.radio-card strong { display: block; font-size: 15px; }
.radio-card small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.radio-card:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.radio-card:has(input:checked) .ico { background: var(--fill); color: var(--on-fill); }
.radio-card:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 2px; }
@media (min-width: 640px) { .radios.cols3 { grid-template-columns: repeat(3, 1fr); } .radios.cols3 .radio-card { flex-direction: column; align-items: flex-start; } }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.alert { padding: 14px 16px; border-radius: 14px; font-size: 15px; }
.alert-error { background: var(--need-weak); color: var(--need-strong); font-weight: 550; }
.alert-info { background: var(--help-weak); color: var(--help-strong); }
.alert-warn { background: var(--warn-bg); color: var(--warn-fg); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.fineprint { font-size: 13px; color: var(--muted); text-align: center; }
.privacy-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--help-strong); background: var(--help-weak); border-radius: 12px; padding: 10px 12px; }
.privacy-note svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }

/* Autocomplétion d'adresse */
.combo { position: relative; }
.combo-row { display: flex; gap: 8px; }
.combo-row .input { flex: 1; }
.combo-search .input { padding-left: 42px; border-radius: 999px; min-height: 46px; }
.combo-search .search-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.combo-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.combo-list li { padding: 11px 14px; cursor: pointer; font-size: 15px; border-bottom: 1px solid var(--line); }
.combo-list li:last-child { border-bottom: 0; }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--paper); }
.combo-list small { color: var(--muted); }
.picked { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--help-strong); font-weight: 600; }
.picked svg { width: 16px; height: 16px; }
.icon-btn { flex: none; display: inline-grid; place-items: center; width: 50px; min-height: 50px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Détail d'une annonce ---------- */
.detail-grid { display: grid; gap: 18px; }
@media (min-width: 960px) { .detail-grid { grid-template-columns: 1.25fr 1fr; align-items: start; gap: 26px; } .detail-side { position: sticky; top: calc(var(--topbar-h) + 18px); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
@media (min-width: 640px) { .panel { padding: 28px; } }
.detail h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 14px 0 12px; }
.detail .desc { white-space: pre-line; font-size: 16.5px; color: var(--ink-2); margin-top: 18px; }
.who { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper-2); font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.who strong { display: block; }
.who small { color: var(--muted); }
.mini-map { position: relative; height: 220px; border-radius: var(--r-md); overflow: hidden; margin-top: 18px; background: var(--map-bg); }
.mini-map-note { font-size: 13px; color: var(--muted); margin-top: 8px; display: flex; gap: 6px; align-items: center; }
.mini-map-note svg { width: 15px; height: 15px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 18px; }
.side-title { font-size: 22px; margin-bottom: 6px; }
.tips { margin-top: 14px; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.tips li { display: flex; gap: 8px; }
.tips svg { flex: none; width: 16px; height: 16px; color: var(--help); margin-top: 3px; }

/* ---------- Succès / gestion ---------- */
.success-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--help); color: #fff; margin-bottom: 16px; }
.success-ico svg { width: 32px; height: 32px; }
.linkbox { display: flex; gap: 8px; margin-top: 12px; }
.linkbox .input { font-size: 14px; min-height: 46px; background: var(--paper); }
.contact-item { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; display: grid; gap: 8px; }
.contact-item .msg { white-space: pre-line; color: var(--ink-2); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.stack { display: grid; gap: 12px; }
.manage-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- Pages éditoriales ---------- */
.prose { font-size: 17px; color: var(--ink-2); }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: 26px; color: var(--ink); margin-top: 36px; }
.prose h3 { font-size: 19px; color: var(--ink); margin-top: 24px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--help-strong); font-weight: 600; text-underline-offset: 3px; }
.advice-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .advice-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.advice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.advice h2 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.advice h2 .tag { font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: 0; padding: 4px 10px; border-radius: 999px; }
.advice ol { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: a; display: grid; gap: 14px; }
.advice ol li { counter-increment: a; display: grid; grid-template-columns: 30px 1fr; gap: 10px; color: var(--ink-2); font-size: 15.5px; }
.advice ol li::before { content: counter(a); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--paper-2); font-weight: 700; font-size: 13px; color: var(--ink); }
.advice.need ol li::before { background: var(--need-weak); color: var(--need-strong); }
.advice.help ol li::before { background: var(--help-weak); color: var(--help-strong); }
.advice strong { color: var(--ink); }
.about-hero { display: grid; gap: 24px; }
.about-hero h1 { font-size: clamp(2.2rem, 7vw, 3.8rem); margin: 16px 0 14px; letter-spacing: -0.035em; }
.free-badge { display: grid; place-items: center; text-align: center; width: 168px; height: 168px; border-radius: 50%; background: var(--fill); color: var(--on-fill); padding: 20px; transform: rotate(-6deg); box-shadow: var(--shadow); justify-self: start; }
.free-badge b { font-family: var(--font-display); font-size: 40px; line-height: 1; font-weight: 800; }
.free-badge span { font-size: 13.5px; font-weight: 600; line-height: 1.25; margin-top: 4px; }
@media (min-width: 860px) { .about-hero { grid-template-columns: 1fr auto; align-items: center; } .free-badge { width: 210px; height: 210px; } .free-badge b { font-size: 52px; } }
.values { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 760px) { .values { grid-template-columns: 1fr 1fr; } }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; display: flex; gap: 14px; }
.value .ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--help-weak); color: var(--help-strong); }
.value .ico svg { width: 22px; height: 22px; }
.value h3 { font-size: 17.5px; margin-bottom: 4px; }
.value p { font-size: 15px; color: var(--ink-2); }
.founder { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 16px; }
.founder .avatar { width: 64px; height: 64px; font-size: 24px; background: var(--fill); color: var(--on-fill); }
.founder strong { font-size: 19px; display: block; font-family: var(--font-display); }
.btn-linkedin { background: #0a66c2; color: #fff; }
.btn-linkedin:hover { background: #004182; }

/* ---------- Photos ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.photo-tile { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile .rm { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(19, 22, 28, .78); color: #fff; display: grid; place-items: center; cursor: pointer; }
.photo-tile .rm svg { width: 16px; height: 16px; }
.photo-add { aspect-ratio: 1; border-radius: 12px; border: 1.5px dashed var(--line-2); background: var(--surface); display: grid; align-content: center; justify-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.photo-add svg { width: 24px; height: 24px; }
.photo-add:hover { border-color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 18px; }
.gallery.one { grid-template-columns: 1fr; }
.gallery button { padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; background: var(--paper-2); }
.gallery.one button { aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 12, 16, .88); }
.lightbox img { max-width: 96vw; max-height: 86vh; border-radius: 12px; }
.lightbox .close { position: absolute; top: -52px; right: 0; }
.card-thumb { float: right; width: 76px; height: 76px; border-radius: 12px; object-fit: cover; margin: 0 0 6px 12px; background: var(--paper-2); }

/* ---------- Admin ---------- */
.admin-item { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.admin-item.is-hidden { border-color: var(--need); }
.admin-item .desc { white-space: pre-line; font-size: 14px; color: var(--ink-2); }

/* ---------- Pied de page ---------- */
.footer { background: var(--deep); color: rgba(255, 255, 255, .78); margin-top: 24px; padding: 44px 0 20px; font-size: 15px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: #fff; margin-bottom: 8px; }
.footer-title { color: #fff; font-weight: 650; margin-bottom: 10px; }
.footer li + li { margin-top: 6px; }
.footer-urgences strong { display: inline-block; min-width: 64px; }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; }

/* ---------- Divers ---------- */
.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translate(-50%, 20px); z-index: 60;
  background: var(--fill); color: var(--on-fill); padding: 12px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 550;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; max-width: min(460px, calc(100vw - 32px)); text-align: center; border-radius: 16px; line-height: 1.4;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 28px; } }
.loading { padding: 80px 0; text-align: center; color: var(--muted); }
.spinner { width: 28px; height: 28px; margin: 0 auto 12px; border: 3px solid var(--line-2); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* =========================================================
   Interface « à la Airbnb » : recherche, onglets, carte au centre
   ========================================================= */
.steps { list-style: none; padding: 0; }

.finder { padding: 18px 0 12px; position: relative; z-index: 25; } /* suggestions au-dessus de la barre de catégories */
.finder-intro { text-align: center; max-width: 760px; margin: 0 auto 18px; }
.finder-intro h1 { font-size: clamp(1.8rem, 4.6vw, 2.6rem); letter-spacing: -0.035em; }
.finder-intro p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }

.kind-tabs { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.kt {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 12px; border: 0; background: none; cursor: pointer;
  font-weight: 700; font-size: 15px; color: var(--muted); border-bottom: 3px solid transparent; transition: color .15s ease, border-color .15s ease;
}
.kt svg { width: 20px; height: 20px; }
.kt b { font-size: 12.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.kt:hover { color: var(--ink); }
.kt-need[aria-selected="true"] { color: var(--need); border-color: var(--need); }
.kt-need[aria-selected="true"] b { background: var(--need-weak); color: var(--need-strong); }
.kt-help[aria-selected="true"] { color: var(--help); border-color: var(--help); }
.kt-help[aria-selected="true"] b { background: var(--help-weak); color: var(--help-strong); }
@media (max-width: 420px) { .kt { padding: 8px 8px 10px; font-size: 14px; } .kt svg { display: none; } }

.searchpill {
  display: flex; align-items: center; max-width: 760px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 2px 4px rgba(19, 22, 28, .04), 0 10px 30px rgba(19, 22, 28, .10); padding: 6px 6px 6px 8px;
}
.sp-field { flex: 1; min-width: 0; padding: 6px 18px; border-radius: 999px; position: relative; }
.sp-field:focus-within { background: var(--paper); }
.sp-field label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .01em; }
.sp-field input, .sp-field select { width: 100%; border: 0; background: transparent; padding: 2px 0; font-size: 15px; color: var(--ink-2); outline: none; appearance: none; cursor: pointer; }
.sp-field input { cursor: text; }
.sp-field .combo-list { top: calc(100% + 12px); min-width: 280px; }
.sp-sep { width: 1px; height: 32px; background: var(--line-2); flex: none; }
.sp-profile { flex: .75; }
.sp-btn {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--fill); color: var(--on-fill); font-weight: 700; font-size: 15px;
}
.sp-btn svg { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .sp-profile, .sp-sep { display: none; }
  .sp-btn { width: 48px; padding: 0; justify-content: center; }
  .sp-btn span { display: none; }
}

.catbar { position: sticky; top: var(--topbar-h); z-index: 20; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.catbar-in { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 0; }
.catbar-in::-webkit-scrollbar { display: none; }
.cat {
  flex: none; display: grid; justify-items: center; gap: 6px; padding: 4px 0 10px; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer;
  color: var(--muted); font-size: 12.5px; font-weight: 650; white-space: nowrap; transition: color .15s ease, border-color .15s ease;
}
.cat svg { width: 24px; height: 24px; }
.cat:hover { color: var(--ink); border-color: var(--line-2); }
.cat[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }

.explore2 { display: grid; }
.results { padding: 18px var(--gutter) 32px; order: 2; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; font-size: 15px; }
.mapcol { order: 1; position: relative; height: 58vh; min-height: 340px; background: var(--map-bg); }
.mapcol > .map { position: absolute; inset: 0; }
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px 18px; }
.lgrid-full { grid-column: 1 / -1; }
@media (min-width: 960px) {
  .explore2 { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .results { order: 1; padding: 22px 24px 48px max(var(--gutter), calc((100vw - 1440px) / 2 + 24px)); }
  .mapcol { order: 2; position: sticky; top: calc(var(--topbar-h) + 77px); height: calc(100vh - var(--topbar-h) - 77px); min-height: 0; }
}

.lcard { display: block; text-decoration: none; color: inherit; }
.lcard-media { position: relative; aspect-ratio: 20 / 19; border-radius: 14px; overflow: hidden; background: var(--paper-2); }
.lcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.lcard:hover .lcard-media img { transform: scale(1.03); }
.lcard-ph { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.lcard-ph svg { width: 54px; height: 54px; opacity: .92; }
.k-besoin .lcard-ph { background: linear-gradient(140deg, #e0662f, #9a3412); }
.k-aide .lcard-ph { background: linear-gradient(140deg, #14a091, #115e59); }
.lcard-flag { position: absolute; top: 12px; left: 12px; background: var(--surface); color: var(--ink); font-size: 12.5px; font-weight: 800; padding: 5px 10px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.lcard-flag.soft { font-weight: 700; }
.lcard-body { padding-top: 10px; }
.lcard-top { display: flex; justify-content: space-between; gap: 8px; font-weight: 750; font-size: 15px; }
.lcard h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.35; margin: 2px 0 4px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lcard-who { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.lcard-meta { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.mini-av { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--fill); color: var(--on-fill); font-size: 11px; font-weight: 800; }

.pop-img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; margin-bottom: 8px; display: block; }

.stats-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stats-strip > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.stats-strip b { display: block; font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats-strip span { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
.stats-strip > div:nth-child(1) b { color: var(--need); }
.stats-strip > div:nth-child(2) b { color: var(--help); }
@media (min-width: 800px) { .stats-strip { grid-template-columns: repeat(4, 1fr); } }

/* Fiche annonce */
.detail > .badges { margin-top: 4px; }
.detail h1 { margin: 10px 0 8px; }
.meta-share { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--ink); font-weight: 650; }
.meta-share svg { width: 16px; height: 16px; }
.detail .gallery { margin: 18px 0 6px; border-radius: 18px; overflow: hidden; gap: 8px; display: grid; }
.detail .gallery button { border-radius: 0; aspect-ratio: auto; height: 100%; }
.detail .gallery.g1 { grid-template-columns: 1fr; }
.detail .gallery.g1 button { aspect-ratio: 16 / 9; max-height: 480px; }
.detail .gallery.g2 { grid-template-columns: 1fr 1fr; height: clamp(220px, 40vw, 420px); }
.detail .gallery.g3, .detail .gallery.g4 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; height: clamp(260px, 44vw, 460px); }
.detail .gallery.g3 button:first-child, .detail .gallery.g4 button:first-child { grid-row: 1 / 3; }
.detail .gallery.g4 { grid-template-columns: 2fr 1fr 1fr; }
.detail .gallery.g4 button:nth-child(4) { grid-column: 2 / 4; }
.detail-main { min-width: 0; }
.host { display: flex; gap: 14px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.host h2 { font-size: 21px; }
.host .muted { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14.5px; }
.host .muted svg { width: 16px; height: 16px; flex: none; }
.avatar-lg { width: 56px; height: 56px; font-size: 22px; background: var(--fill); color: var(--on-fill); }
.features { display: grid; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.features li { display: flex; gap: 14px; align-items: center; }
.features svg { width: 26px; height: 26px; flex: none; color: var(--ink); }
.features strong { display: block; font-size: 15.5px; }
.features span { display: block; font-size: 13.5px; color: var(--muted); }
.detail .desc { white-space: pre-line; font-size: 16.5px; color: var(--ink-2); padding: 22px 0; border-bottom: 1px solid var(--line); margin: 0; }
.sub { display: flex; align-items: center; gap: 8px; font-size: 21px; margin: 26px 0 12px; }
.sub svg { width: 22px; height: 22px; color: var(--need); }
.others { display: grid; gap: 8px; }
.others a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; font-weight: 650; }
.others a:hover { border-color: var(--line-2); }
.supports { margin-top: 8px; }
.sup-form { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; }
.sup-form .textarea { min-height: 70px; }
.sup-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sup-actions .hint { font-size: 12.5px; }
.sup-list { display: grid; gap: 16px; margin-top: 18px; }
.sup-list li { display: flex; gap: 10px; }
.sup-list .mini-av { width: 32px; height: 32px; font-size: 13px; background: var(--need); }
.sup-list p { font-size: 15px; color: var(--ink-2); }
.sup-report { font-size: 12.5px; margin-top: 2px; }
.detail-actions .btn-text { display: inline-flex; align-items: center; gap: 6px; }
.detail-actions svg { width: 15px; height: 15px; }
.book { box-shadow: var(--shadow); border-color: var(--line); }
@media (min-width: 960px) { .detail-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; } }

.finder-intro .event-pill { display: inline-flex; margin-top: 0; align-items: center; gap: 8px; margin-bottom: 12px; padding: 6px 14px; border-radius: 999px; background: var(--fill); color: var(--on-fill); font-size: 13px; font-weight: 700; }
.finder-intro .event-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--need); box-shadow: 0 0 0 3px rgba(194, 65, 12, .35); }
@media (max-width: 639px) {
  .lcard-media { aspect-ratio: 16 / 9; }
  .lgrid { gap: 20px; }
}

/* Carte sur écran tactile : pas de voile sombre quand on fait défiler la page avec un doigt
   (le défilement reste prioritaire ; la carte se manipule à deux doigts, signalé discrètement). */
@media (pointer: coarse) {
  .maplibregl-cooperative-gesture-screen { display: none !important; }
}
.map-hint {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 2; pointer-events: none;
  background: rgba(19, 22, 28, .78); color: #fff; font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
  display: none;
}
@media (pointer: coarse) { .map-hint { display: block; } }

/* ---------- Compte Google ---------- */
.btn-google { background: #fff; color: #1f1f1f; border: 1.5px solid #dadce0; font-weight: 650; }
.btn-google:hover { border-color: #5f6368; background: #fff; }
.btn-google svg { width: 20px; height: 20px; }
.account-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; margin-bottom: 14px; }
.account-box .hint { flex: 1 1 260px; margin: 0; }
.account-box.on { background: var(--help-weak); border-color: transparent; color: var(--help-strong); font-size: 14.5px; }
.account-box.on svg { width: 18px; height: 18px; flex: none; }
.clickwrap { font-size: 13px; color: var(--muted); text-align: center; margin: 0; }
.clickwrap a { color: inherit; }
.nav-account { display: flex; align-items: center; gap: 10px; }
.nav-user { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 14.5px; }
.nav-user .mini-av { width: 28px; height: 28px; font-size: 13px; }
@media (max-width: 899px) { .nav-account { padding: 10px 4px; border-bottom: 1px solid var(--line); justify-content: space-between; } }

/* ---------- Salle d'attente (forte affluence) ---------- */
.waitroom { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: var(--glass); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.waitroom-box { max-width: 420px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px; box-shadow: var(--shadow); }
.waitroom-box h2 { font-size: 1.5rem; margin: 14px 0 8px; }
.waitroom-box p { color: var(--ink-2); }

/* ---------- Mon espace : clé personnelle, conversations ---------- */
.nav-space { display: inline-flex; align-items: center; gap: 7px; }
.nav-space svg { width: 18px; height: 18px; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--need); color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }
.side-title svg { display: inline-block; width: 20px; height: 20px; vertical-align: -3px; margin-right: 6px; }
.side-title .count { vertical-align: 3px; margin-left: 6px; }
.btn-text.danger { color: var(--need-strong); }

.keybox { border: 0; border-radius: var(--r-lg); padding: 24px var(--gutter) 20px; width: min(520px, calc(100vw - 2 * var(--gutter))); max-height: calc(100dvh - 24px); overflow: auto; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.keybox::backdrop { background: rgba(10, 12, 16, .62); }
.keybox h2 { font-size: clamp(1.5rem, 5vw, 1.9rem); margin: 4px 0 10px; }
.keybox > p { color: var(--ink-2); }
.key-big { margin: 16px 0 12px; padding: 16px 12px; border: 2px dashed var(--help); border-radius: var(--r-md); background: var(--help-weak); text-align: center; font: 800 clamp(1.15rem, 5.4vw, 1.6rem)/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; color: var(--help-strong); user-select: all; word-break: break-all; }
.kb-label { display: block; margin: 16px 0 6px; font-weight: 600; font-size: 14px; }
.keybox textarea { font-size: 14px; background: var(--paper); resize: none; }
.keybox [data-copy-memo] { margin-top: 8px; }
.kb-check { display: flex; gap: 10px; align-items: center; margin: 18px 0 12px; font-weight: 650; }
.kb-check input { width: 20px; height: 20px; accent-color: var(--help); }
.kb-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.keybox .hint { margin-top: 12px; }
@media (min-width: 640px) { .keybox { padding: 30px 32px 24px; } }
.key-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; text-transform: uppercase; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 14px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.threads { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.thread { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: inherit; background: var(--surface); }
.thread:hover { border-color: var(--line-2); }
.thread.unread { border-color: var(--need); background: var(--need-weak); }
.thread .mini-av { width: 34px; height: 34px; font-size: 14px; }
.thread-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.thread-post { display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--ink-2); min-width: 0; }
.thread-post .badge { flex: none; }
.thread-last { font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread.unread .thread-last { color: var(--ink); font-weight: 600; }

.conv-head { display: flex; gap: 14px; align-items: center; margin: 10px 0 16px; }
.conv-head .mini-av { width: 46px; height: 46px; font-size: 19px; }
.conv-head h1 { font-size: clamp(1.5rem, 5vw, 2rem); margin: 0 0 2px; }
.conv-head p { font-size: 14px; }
.msgs { list-style: none; margin: 0; padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; background: var(--paper-2); border-radius: var(--r-lg); max-height: min(60vh, 560px); min-height: 180px; overflow-y: auto; }
.msg { max-width: 82%; align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 10px 14px; }
.msg p { margin: 0; overflow-wrap: anywhere; }
.msg.mine { align-self: flex-end; background: var(--fill); color: var(--on-fill); border-color: var(--fill); border-radius: 18px 18px 6px 18px; }
.msg.pending { opacity: .7; }
.msg.blocked { background: var(--need-weak); color: var(--need-strong); border-color: var(--need); }
.msg-meta { display: block; margin-top: 4px; font-size: 12px; opacity: .72; }
.composer { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; }
.composer .textarea { flex: 1; min-height: 52px; }
.menu-btn { position: relative; }
.menu-btn.has-unread::after { content: ''; position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--need); box-shadow: 0 0 0 2px var(--paper); }
.sharebox h2 { margin-bottom: 4px; }
.share-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.askbox .ask-msg { font-size: 17px; font-weight: 600; margin-bottom: 16px; }
.askbox textarea { margin-bottom: 16px; }

/* ---------- Statistiques (admin) ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0; }
@media (min-width: 800px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--paper); border-radius: var(--r-md); padding: 14px 16px; display: grid; gap: 2px; }
.kpi b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi-live { background: var(--help-weak); }
.kpi-live b { color: var(--help-strong); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.bars span { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bars i { display: block; width: 100%; min-height: 2px; background: var(--help); border-radius: 3px 3px 0 0; }
.stat-grid { display: grid; gap: 14px; margin-top: 16px; }
@media (min-width: 800px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-box h3 { font-size: 15px; margin-bottom: 6px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl td { padding: 5px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.tbl td:last-child { text-align: right; font-weight: 700; padding-left: 10px; white-space: nowrap; }

/* ---------- Choix du thème ---------- */
.theme-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 12px 4px; color: inherit; font: inherit; font-weight: 550; cursor: pointer; border-bottom: 1px solid var(--line); text-align: left; }
.theme-btn svg { width: 20px; height: 20px; flex: none; }
@media (min-width: 900px) {
  .theme-btn { padding: 6px; border: 1.5px solid var(--line-2); border-radius: 999px; color: var(--ink-2); }
  .theme-btn:hover { color: var(--ink); border-color: var(--ink); }
  .theme-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.footer-bottom p { margin: 0; }
.theme-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.theme-switch button { background: none; border: 0; color: rgba(255, 255, 255, .78); font: inherit; font-size: 13.5px; font-weight: 600; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.theme-switch button[aria-pressed="true"] { background: #fff; color: #13161c; }
:root[data-theme="dark"] .footer { border-top: 1px solid var(--line); }
:root[data-theme="dark"] .band-ink { border: 1px solid var(--line); }
