/* Espace adhérent — feuille de style unique, sans compilation. */
:root {
  --brand: #1d4ed8;
  --bg: #f6f6f4;
  --surface: #ffffff;
  --text: #1c1c1a;
  --muted: #6b6b66;
  --line: #e4e4df;
  --ok: #15803d;
  --ko: #b91c1c;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161615; --surface: #20201e; --text: #f2f2ee; --muted: #a3a39c; --line: #34342f; --ok: #4ade80; --ko: #f87171; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); }
.wrap { max-width: 720px; margin: 0 auto; padding: 16px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; color: var(--text); }
.topbar .brand img { height: 32px; width: auto; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--brand); display: inline-block; }
h1 { font-size: 1.5rem; margin: 8px 0 16px; }
h2 { font-size: 1.15rem; margin: 24px 0 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tile { display: block; text-decoration: none; color: var(--text); }
.tile strong { display: block; margin-bottom: 4px; }
.tile.soon { opacity: .55; }
.muted { color: var(--muted); font-size: .9rem; }
.badge { display: inline-block; font-size: .8rem; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.badge.ok { color: var(--ok); border-color: currentColor; }
.badge.ko { color: var(--ko); border-color: currentColor; }
.flash { background: var(--surface); border-left: 4px solid var(--brand); padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.errors { color: var(--ko); font-size: .9rem; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=tel] { width: 100%; padding: 10px 12px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.radio { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.row { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.btn { display: inline-block; padding: 10px 16px; font: inherit; font-weight: 600; border-radius: 10px; border: 1px solid var(--brand); background: var(--brand); color: #fff; cursor: pointer; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.small { padding: 6px 10px; font-size: .85rem; }
.btn.danger { border-color: var(--ko); background: transparent; color: var(--ko); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.person { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; border-top: 1px solid var(--line); padding: 12px 0; }
.person:first-of-type { border-top: 0; }
form.inline { display: inline; }
details summary { cursor: pointer; font-weight: 600; color: var(--brand); }

/* Carte virtuelle */
.member-card { max-width: 400px; margin: 24px auto; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.member-card .head { background: var(--brand); color: #fff; padding: 20px; }
.member-card .head .assoc { font-weight: 600; font-size: 1.05rem; }
.member-card .head .label { opacity: .85; font-size: .85rem; }
.member-card .body { padding: 20px; text-align: center; }
.member-card .name { font-size: 1.4rem; font-weight: 700; margin: 0; }
.member-card .company { color: var(--muted); margin: 2px 0 12px; }
.member-card .qr { width: 220px; height: 220px; margin: 8px auto; background: #fff; border-radius: 12px; padding: 6px; }
.member-card .qr svg { width: 100%; height: 100%; }
.member-card .number { font-family: ui-monospace, Menlo, monospace; letter-spacing: .05em; }
.status { font-weight: 700; padding: 10px; border-radius: 10px; margin-top: 12px; }
.status.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.status.ko { color: var(--ko); background: color-mix(in srgb, var(--ko) 12%, transparent); }
.verdict { text-align: center; padding: 32px 16px; }
.verdict .big { font-size: 2rem; font-weight: 800; }

/* Listes, filtres, contenus */
.back { display: inline-block; margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chip { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-size: .9rem; }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.search { display: flex; gap: 8px; margin-bottom: 12px; }
.search input { flex: 1; }
.item { display: block; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }
.item:first-of-type { border-top: 0; padding-top: 0; }
.item strong { color: var(--brand); }
.item .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pin { font-size: .8rem; color: var(--brand); font-weight: 600; }
.prose { line-height: 1.65; }
.prose h2, .prose h3 { margin: 20px 0 8px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote { margin: 12px 0; padding-left: 12px; border-left: 3px solid var(--line); color: var(--muted); }
.post { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }
.post:first-of-type { border-top: 0; padding-top: 0; }
.post.noimg { grid-template-columns: 1fr; }
.post img, .cover { width: 100%; border-radius: 10px; object-fit: cover; }
.post img { height: 72px; }
.cover { max-height: 320px; margin-bottom: 12px; }
.date { display: inline-block; font-weight: 600; color: var(--brand); font-size: .9rem; }
.pager { display: flex; justify-content: space-between; margin-top: 16px; }

/* Avantages, annuaire, Mon commerce */
.offer { padding: 12px 0; border-top: 1px solid var(--line); }
.offer:first-of-type { border-top: 0; padding-top: 0; }
.highlight { display: inline-block; font-weight: 800; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); padding: 2px 10px; border-radius: 8px; margin-right: 6px; }
.contact { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; font-size: .95rem; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
textarea { width: 100%; padding: 10px 12px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
input[type=url], input[type=date] { width: 100%; padding: 10px 12px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-top: 16px; }
.check input { margin-top: 4px; }

/* Champ à étiquettes */
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.tags-chips { display: contents; }
.tags-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; }
.tags-chip button { border: 0; background: transparent; color: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.tags-input { flex: 1; min-width: 140px; border: 0 !important; background: transparent !important; padding: 6px !important; }
.tags-input:focus { outline: none; }
.tags-hint { width: 100%; padding: 0 4px; font-size: .8rem; }
select[multiple] { width: 100%; min-height: 8em; padding: 6px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }

/* Pages en deux colonnes : connexion et demande d'adhésion */
.split-body { background: var(--surface); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.split-main { display: flex; flex-direction: column; padding: 32px clamp(24px, 6vw, 96px); }
.split-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.split-logo { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; overflow: hidden; }
.split-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.split-content { width: 100%; max-width: 420px; margin: auto; padding: 40px 0; }
.split-content.wide { max-width: 560px; }
.split-content h1 { font-size: 2rem; margin: 0 0 6px; letter-spacing: -.01em; }
.split-content .lead { color: var(--muted); margin: 0 0 28px; }
.split-content label { margin-top: 16px; }
.split-content input[type=text], .split-content input[type=email], .split-content input[type=tel], .split-content input[type=url], .split-content textarea, .split-content .tags { border-radius: 12px; background: var(--surface); border: 1.5px solid var(--line); }
.split-content input[type=text], .split-content input[type=email], .split-content input[type=tel], .split-content input[type=url] { height: 48px; padding: 0 14px; }
.split-content input:focus, .split-content textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
.split-content .btn { width: 100%; height: 50px; border-radius: 12px; font-size: 1rem; box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 30%, transparent); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 28px 0 20px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.split-content .btn.ghost { box-shadow: none; }
.split-footer { font-size: .85rem; }

.split-visual { order: -1; position: sticky; top: 16px; align-self: start; height: calc(100vh - 32px); margin: 16px; border-radius: 28px; background: var(--brand); overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 48px; }
.split-visual .waves { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 22; }
.glass { position: relative; width: 100%; max-width: 420px; padding: 40px 36px 0; border-radius: 28px; color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.glass-kicker { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, .18); font-size: .8rem; font-weight: 600; }
.glass h2 { margin: 0; font-size: 2rem; line-height: 1.2; letter-spacing: -.01em; }
.glass-media { position: relative; height: 320px; margin-top: 28px; display: flex; align-items: flex-end; justify-content: center; }
.cover-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 20px 20px 0 0; }
.mock-card { width: 240px; margin-bottom: 40px; border-radius: 18px; overflow: hidden; background: #fff; color: #1c1c1a; transform: rotate(-5deg); box-shadow: 0 24px 50px rgba(0, 0, 0, .25); }
.mock-head { background: var(--brand); color: #fff; padding: 14px 16px; }
.mock-head small { display: block; opacity: .85; font-size: .7rem; }
.mock-head strong { font-size: .95rem; }
.mock-body { padding: 16px; display: grid; justify-items: center; gap: 8px; }
.mock-body .bar { height: 8px; border-radius: 4px; background: #e6e6e1; justify-self: stretch; }
.mock-body .w70 { width: 70%; justify-self: center; } .mock-body .w45 { width: 45%; justify-self: center; }
.mock-qr { width: 110px; height: 110px; color: #1c1c1a; margin-top: 6px; }
.mock-number { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; letter-spacing: .05em; color: #6b6b66; }
.bubble { position: absolute; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: .95rem; box-shadow: 0 12px 28px rgba(0, 0, 0, .18); }
.bubble svg { width: 28px; height: 28px; }
.bubble.b1 { top: 6px; right: -8px; }
.bubble.b2 { bottom: 70px; left: -22px; }
.bubble.b3 { top: 110px; left: 6px; width: 52px; height: 52px; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-visual { position: relative; top: auto; height: auto; margin: 12px 12px 0; padding: 28px 20px; border-radius: 22px; }
  .glass { padding: 24px; }
  .glass h2 { font-size: 1.4rem; }
  .glass-media { display: none; }
  .split-main { padding: 24px 20px; }
  .split-brand { display: none; }
  .split-content { margin: 0 auto; padding: 28px 0 32px; }
  .split-footer { margin-top: auto; }
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.terms { white-space: pre-line; }
.tier-group { margin-top: 14px; }
.tier-category { display: block; margin-bottom: 6px; }
.tier-option { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 400; margin: 0 0 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.tier-option:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.tier-option input { margin: 0; }
.tier-name { flex: 1; min-width: 8rem; }
.tier-price { color: var(--muted); font-size: .92rem; }
.tier-unsure { margin-top: 14px; }
.membership-status .tier { margin: 4px 0 0; }

/* ===== Espace adhérent : structure d'application ===== */
.app { background: var(--bg); }
.icon { width: 20px; height: 20px; flex: none; }
.wrap { max-width: 960px; padding: 24px 20px 48px; }

.appbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.appbar-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.appnav { display: flex; gap: 4px; margin-left: auto; }
.appnav a { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; }
.appnav a:hover { background: var(--bg); color: var(--text); }
.appnav a.active { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.appnav .icon { width: 18px; height: 18px; }

.account { position: relative; margin-left: 8px; }
.account summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px; border-radius: 99px; }
.account summary::-webkit-details-marker { display: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; font-size: .85rem; }
.account-name { font-weight: 600; }
.account-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 260px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, .12); }
.account-head { display: grid; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.account-menu a, .account-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; text-decoration: none; cursor: pointer; text-align: left; }
.account-menu a:hover, .account-menu button:hover { background: var(--bg); }
.account-menu .icon { color: var(--muted); }

.tabbar { display: none; }
@media (max-width: 860px) {
  .appnav, .account-name { display: none; }
  .account { margin-left: auto; }
  .tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 6px 2px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; color: var(--muted); text-decoration: none; font-size: .68rem; font-weight: 600; }
  .tabbar a.active { color: var(--brand); }
  .tabbar .icon { width: 22px; height: 22px; }
  .with-tabbar .app-main { padding-bottom: 72px; }
  .wrap { padding: 20px 16px 32px; }
}

/* En-tête de rubrique */
.page-header { position: relative; overflow: hidden; margin: 16px 16px 0; border-radius: 24px; background: var(--brand); color: #fff; }
.page-header .waves, .home-hero .waves { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 22; }
.page-header-inner { position: relative; max-width: 920px; margin: 0 auto; padding: 28px 24px 32px; }
.page-header-title { display: flex; align-items: center; gap: 16px; }
.page-header-icon { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 16px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .25); }
.page-header-icon .icon { width: 26px; height: 26px; }
.page-header h1 { margin: 0; font-size: 1.7rem; letter-spacing: -.01em; }
.page-header p { margin: 4px 0 0; opacity: .88; }
.back-link { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 14px; color: #fff; opacity: .85; text-decoration: none; font-weight: 600; font-size: .9rem; }
.back-link .icon { width: 16px; height: 16px; }
@media (max-width: 860px) { .page-header { margin: 12px 12px 0; } .page-header-inner { padding: 22px 20px 24px; } .page-header h1 { font-size: 1.4rem; } }

/* Éléments communs, version « application » */
.card { border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: 0 1px 2px rgba(0, 0, 0, .03); }
h2 { font-size: 1.1rem; margin: 28px 0 12px; display: flex; align-items: center; gap: 8px; }
h2 .icon { color: var(--brand); }
.btn { border-radius: 12px; padding: 11px 18px; }
.btn.small { border-radius: 10px; padding: 7px 12px; }
.flash { display: flex; align-items: center; gap: 10px; border: 0; border-radius: 14px; background: color-mix(in srgb, var(--brand) 10%, var(--surface)); color: var(--text); }
.flash .icon { color: var(--brand); }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=date], textarea, .tags { border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); }
input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
.search { position: relative; }
.search input { padding-left: 42px; height: 46px; }
.search .icon { position: absolute; left: 14px; top: 13px; color: var(--muted); }
.chip { padding: 7px 14px; font-weight: 600; font-size: .88rem; }
.badge { font-weight: 600; }

/* Accueil */
.home-hero { position: relative; overflow: hidden; margin: 16px 16px 0; border-radius: 28px; background: var(--brand); color: #fff; }
.home-hero-inner { position: relative; max-width: 920px; margin: 0 auto; padding: 36px 24px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.home-hero h1 { margin: 0; font-size: 2rem; letter-spacing: -.01em; }
.home-hero p { margin: 6px 0 0; opacity: .9; }
.member-pass { display: block; width: 280px; color: #1c1c1a; text-decoration: none; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, .22); transform: rotate(-2deg); transition: transform .2s; }
.member-pass:hover { transform: rotate(0) translateY(-2px); }
.member-pass .mp-head { background: color-mix(in srgb, var(--brand) 85%, #000); color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; font-size: .8rem; }
.member-pass .mp-body { padding: 14px 16px 16px; display: grid; gap: 2px; }
.member-pass .mp-name { font-weight: 800; font-size: 1.1rem; }
.member-pass .mp-number { font-family: ui-monospace, Menlo, monospace; color: #6b6b66; font-size: .85rem; }
.member-pass .mp-cta { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; color: var(--brand); }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-dot.ok { color: #86efac; } .status-dot.ko { color: #fecaca; }
@media (max-width: 860px) {
  .home-hero { margin: 12px 12px 0; }
  .home-hero-inner { grid-template-columns: 1fr; padding: 26px 20px 24px; }
  .home-hero h1 { font-size: 1.6rem; }
  .member-pass { width: 100%; transform: none; }
}

.shortcuts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.shortcut { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.shortcut:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0, 0, 0, .06); }
.shortcut-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.shortcut strong { display: block; margin-bottom: 2px; }
.shortcut .muted { font-size: .85rem; line-height: 1.4; }

/* Agenda et publications */
.post { grid-template-columns: 64px 1fr; align-items: start; gap: 14px; padding: 14px 0; }
.post.noimg { grid-template-columns: 64px 1fr; }
.post img { width: 64px; height: 64px; border-radius: 14px; }
.date-tile { width: 64px; height: 64px; border-radius: 14px; display: grid; place-content: center; text-align: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); line-height: 1.05; }
.date-tile b { font-size: 1.45rem; }
.date-tile small { font-size: .7rem; text-transform: uppercase; font-weight: 700; letter-spacing: .04em; }
.post-icon { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; background: var(--bg); color: var(--muted); }
.post .meta-line { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; color: var(--muted); font-size: .85rem; }
.post .meta-line span { display: inline-flex; align-items: center; gap: 4px; }
.post .meta-line .icon { width: 15px; height: 15px; }

/* Ressources */
.item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.item-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.item > .icon { color: var(--muted); }
.item strong { color: var(--text); }

/* Avantages et annuaire */
.offer-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.highlight-big { min-width: 76px; padding: 12px 10px; border-radius: 16px; text-align: center; font-weight: 800; font-size: 1.15rem; color: #fff; background: var(--brand); box-shadow: 0 8px 18px color-mix(in srgb, var(--brand) 30%, transparent); }
.company { display: grid; grid-template-columns: auto 1fr; gap: 16px; }
.company-avatar { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.contact a, .contact span { display: inline-flex; align-items: center; gap: 6px; }
.contact .icon { width: 16px; height: 16px; color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag-list .badge { background: var(--bg); }
.grid-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-cards .card { margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn .icon { width: 18px; height: 18px; }
.search { display: flex; gap: 8px; }
.post-facts { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; font-weight: 600; color: var(--brand); }
.post-facts span { display: inline-flex; align-items: center; gap: 6px; }
.contact { margin-top: 10px; font-size: .9rem; }
.cta { margin-bottom: 16px; }
@media (max-width: 860px) {
  .shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shortcut { flex-direction: column; gap: 10px; padding: 14px; }
  .shortcut .muted { display: none; }
  .account-menu { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; }
}
.member-card .head { position: relative; }
.card-close { position: absolute; z-index: 1; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .2); text-decoration: none; }
.card-close:hover { background: rgba(255, 255, 255, .32); }
.card-close .icon { width: 18px; height: 18px; }
.password-login { margin-top: 16px; }
.password-login summary { cursor: pointer; font-weight: 600; color: var(--brand); text-align: center; list-style: none; }
.password-login summary::-webkit-details-marker { display: none; }
.split-content input[type=password] { height: 48px; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--line); width: 100%; font: inherit; color: var(--text); }
input[type=password] { width: 100%; padding: 10px 12px; font: inherit; color: var(--text); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; }
.account-label { padding: 8px 12px 4px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.account-sep { height: 1px; margin: 6px 0; background: var(--line); }
.space-dot { width: 22px; height: 22px; flex: none; border-radius: 7px; display: grid; place-items: center; color: #fff; font-size: .72rem; font-weight: 800; }
.appnav a { white-space: nowrap; }
.appbar-brand { min-width: 0; }
.appbar-brand > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.company-avatar.has-logo { background: #fff; border: 1px solid var(--line); overflow: hidden; }
.company-avatar.has-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.logo-field { display: flex; align-items: center; gap: 14px; }
.logo-field img { width: 64px; height: 64px; object-fit: contain; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 4px; }
input[type=file] { font: inherit; font-size: .9rem; }
.offer-company { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.offer-company img { width: 28px; height: 28px; flex: none; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff; padding: 2px; }
.item-thumb { width: 72px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--bg); }

/* Ressources en cartes */
.resource-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.resource-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.resource-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(0, 0, 0, .08); }
.resource-media { position: relative; display: block; flex: none; aspect-ratio: 16 / 9; background: var(--bg); overflow: hidden; }
.resource-media.no-image { aspect-ratio: 16 / 7; }
.resource-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.resource-card:hover .resource-media img { transform: scale(1.04); }
.resource-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--cat, var(--brand)); background: linear-gradient(135deg, var(--cat-bg, color-mix(in srgb, var(--brand) 16%, var(--surface))), color-mix(in srgb, var(--cat-bg, var(--brand)) 40%, var(--surface))); }
.resource-placeholder .icon { width: 40px; height: 40px; opacity: .8; }
.resource-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 14px; }
.resource-category { display: inline-flex; align-items: center; gap: 6px; color: var(--cat, var(--brand)); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.resource-category .icon { width: 15px; height: 15px; }
.resource-title { font-size: 1.05rem; line-height: 1.3; }
.resource-summary { color: var(--muted); font-size: .92rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.resource-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; font-weight: 600; }
.resource-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.resource-meta .icon { width: 15px; height: 15px; }
.resource-go { margin-left: auto; color: var(--brand); }
.resource-go .icon { width: 18px; height: 18px; }
h2 .count { margin-left: 4px; padding: 2px 9px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .8rem; font-weight: 600; }

/* « À la une » : une seule = bandeau horizontal ; plusieurs = grandes cartes côte à côte. */
.featured-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }
.resource-card.featured .resource-title { font-size: 1.35rem; letter-spacing: -.01em; }
.resource-card.featured .resource-summary { font-size: 1rem; -webkit-line-clamp: 3; }
.resource-card.featured .resource-body { padding: 22px 24px 18px; gap: 10px; }
@media (min-width: 860px) {
  .featured-grid > .resource-card.featured:only-child { flex-direction: row; min-height: 300px; }
  /* La hauteur suit le texte : l'image remplit sa moitié sans imposer son format (photo en portrait). */
  .featured-grid > .resource-card.featured:only-child .resource-media { aspect-ratio: auto; width: 50%; }
  .featured-grid > .resource-card.featured:only-child .resource-media img { position: absolute; inset: 0; }
  .featured-grid > .resource-card.featured:only-child .resource-body { justify-content: center; padding: 32px 36px; }
  .featured-grid > .resource-card.featured:only-child .resource-title { font-size: 1.6rem; }
  .featured-grid > .resource-card.featured:only-child .resource-meta { margin-top: 12px; }
}

.empty-state { display: flex; align-items: center; gap: 14px; padding: 28px; border-radius: 20px; border: 1px dashed var(--line); background: var(--surface); }
.empty-state .icon { width: 28px; height: 28px; color: var(--muted); }
.empty-state p { margin: 0; }

/* Pages de listes : colonne plus large, alignée avec l'en-tête. */
.wrap.wide, .page-header-inner.wide { max-width: 1120px; }

/* Filtres sur une ligne défilante, sur téléphone. */
@media (max-width: 860px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; white-space: nowrap; }
}
@media (max-width: 699px) { .resource-media.no-image { aspect-ratio: 16 / 4; } .resource-placeholder .icon { width: 34px; height: 34px; } }

/* Inscriptions aux opérations */
.registration { margin-top: 16px; }
.registration-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.registration-head h2 { margin: 0; }
.registration-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.registration-facts span { font-size: .85rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--bg); color: var(--muted); }
.registration-facts span.full { background: color-mix(in srgb, var(--ko) 12%, transparent); color: var(--ko); }
.registration-member { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.registration-member h3 { margin: 0 0 6px; font-size: 1rem; }
.registration-status { display: flex; align-items: flex-start; gap: 8px; margin: 0; }
.registration-status > .icon { flex: none; color: var(--ok); margin-top: 2px; }
.link-button { margin-top: 10px; padding: 0; border: 0; background: none; font: inherit; font-size: .875rem; color: var(--muted); text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--ko); }
.reg-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.reg-badge.done { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.post .meta-line .reg-badge .icon { width: 13px; height: 13px; }

/* Sondages */
.poll-icon { color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.poll-member + .poll-member { padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }
.poll-member h3 { margin: 0 0 6px; font-size: 1rem; }
.poll-hint { margin: 0 0 10px; font-size: .875rem; }
.poll-options { display: grid; gap: 8px; }
.poll-option { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s; }
.poll-option:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.poll-option:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); }
.poll-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.poll .actions { align-items: center; }
.poll-results { display: grid; gap: 14px; }
.poll-result-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: .95rem; }
.poll-bar { height: 10px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.poll-bar span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.home-poll { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); border: 1.5px solid color-mix(in srgb, var(--brand) 35%, var(--line)); }
.home-poll .post-icon { flex: none; }
.home-poll > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.home-poll .icon:last-child { color: var(--brand); }

/* Kit de communication */
.kit { margin-top: 8px; }
.kit-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.kit-head h2 { margin-bottom: 0; }
.kit-head .btn { margin-top: 28px; }
.kit-intro { margin: 6px 0 14px; font-size: .9rem; }
.kit-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.kit-item { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.kit-item:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0, 0, 0, .07); }
.kit-preview { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--bg); overflow: hidden; }
.kit-preview img { width: 100%; height: 100%; object-fit: contain; }
.kit-ext { padding: 8px 14px; border-radius: 10px; font-weight: 800; letter-spacing: .06em; font-size: .9rem; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--surface)); }
.kit-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 44px 14px 14px; font-size: .9rem; }
.kit-body .muted { font-size: .8rem; }
.kit-download { position: absolute; right: 12px; bottom: 14px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 99px; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.kit-download .icon { width: 16px; height: 16px; }
@media (max-width: 699px) { .kit-head .btn { margin-top: 0; } }

/* Entraide */
select:not([multiple]) { width: 100%; padding: 10px 12px; font: inherit; color: var(--text); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; }
.listing-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.listing-toolbar .chips { margin: 0; flex: 1; min-width: 0; }
.listing-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); align-items: start; }
.listing { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.listing h3 { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.listing-category { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.listing-category .icon { width: 14px; height: 14px; }
.listing-body { margin: 0; color: var(--text); font-size: .95rem; }
.listing-author { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.listing-author .company-avatar { width: 36px; height: 36px; border-radius: 10px; font-size: .8rem; flex: none; }
.listing-author > span:last-child { display: flex; flex-direction: column; font-size: .9rem; }
.listing-author .muted { font-size: .8rem; }
.listing-contact { display: flex; flex-wrap: wrap; gap: 8px; }
.listing-categories .poll-option .icon { width: 18px; height: 18px; color: var(--brand); vertical-align: -3px; margin-right: 4px; }
.my-listing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.my-listing:first-child { border-top: 0; padding-top: 0; }
.my-listing:last-child { padding-bottom: 0; }
.my-listing .muted { font-size: .85rem; }
.my-listing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.my-listing-actions form { margin: 0; }
.my-listing-actions .link-button { margin-top: 0; }
.listing-status { font-weight: 600; }
.listing-status.on { color: var(--ok); }
@media (max-width: 699px) {
    .listing-toolbar { flex-direction: column-reverse; align-items: stretch; }
    .listing-toolbar .chips { width: 100%; }
}

/* Avantages : cartes coupon */
.offer-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.offer-grid > .empty-state { grid-column: 1 / -1; }
.offer-ticket { display: flex; flex-direction: column; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.offer-ticket:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(0, 0, 0, .08); }
.offer-ticket-top { position: relative; display: grid; place-items: center; min-height: 112px; padding: 22px 20px 26px; color: #fff; text-align: center;
    background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, #fff 18%, var(--brand)) 0%, var(--brand) 55%, color-mix(in srgb, #000 18%, var(--brand)) 100%); }
/* Découpe façon ticket : pointillés et encoches sur les bords */
.offer-ticket-top::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; border-bottom: 2px dashed color-mix(in srgb, var(--brand) 35%, var(--surface)); transform: translateY(1px); }
.offer-ticket-body { position: relative; display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 20px 20px 18px; }
.offer-ticket-body::before, .offer-ticket-body::after { content: ""; position: absolute; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.offer-ticket-body::before { left: -12px; }
.offer-ticket-body::after { right: -12px; }
.offer-highlight { font-size: 2rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.offer-highlight.long { font-size: 1.45rem; }
.offer-highlight .icon { width: 40px; height: 40px; }
.offer-ticket h3 { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.offer-description { margin: 0; font-size: .95rem; }
.offer-conditions { margin: 0; font-size: .85rem; color: var(--muted); }
.offer-until { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .85rem; font-weight: 600; color: var(--brand); }
.offer-until .icon { width: 15px; height: 15px; }
.offer-merchant { display: flex; align-items: flex-start; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.offer-merchant .company-avatar { width: 42px; height: 42px; border-radius: 12px; font-size: .85rem; flex: none; }
.offer-merchant-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: .9rem; }
.offer-merchant-text .muted { font-size: .82rem; }
.offer-address { display: inline-flex; align-items: flex-start; gap: 4px; margin-top: 3px; }
.offer-address .icon { width: 14px; height: 14px; flex: none; margin-top: 2px; }

/* Sept rubriques : sur les écrans moyens, le menu du haut perd ses icônes et le prénom. */
@media (min-width: 861px) and (max-width: 1320px) {
    .appnav { gap: 2px; }
    .appnav a { padding: 8px 9px; }
    .appnav .icon, .account-name { display: none; }
}

/* Logo du commerce : aperçu, glisser-déposer */
.logo-picker { display: flex; align-items: center; gap: 18px; padding: 16px; border: 1.5px dashed var(--line); border-radius: 16px; background: var(--bg); transition: border-color .15s, background .15s; }
.logo-picker.is-dragging { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
.logo-picker.has-error { border-color: var(--ko); }
.logo-preview { flex: none; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 20px; background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 6px 16px rgba(0, 0, 0, .06); }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.logo-initials { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, #fff); }
.logo-picker-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.logo-picker-body .muted { font-size: .85rem; }
.logo-picker-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 4px; }
.logo-picker-actions label { margin: 0; }
.logo-picker-actions .btn .icon { width: 16px; height: 16px; }
.logo-picker-actions label.btn:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.logo-remove { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 500; color: var(--muted); cursor: pointer; }
.logo-remove input { accent-color: var(--ko); }
.logo-picker-status { font-size: .85rem; font-weight: 600; color: var(--brand); }
.logo-picker.has-error .logo-picker-status { color: var(--ko); }
.logo-picker-status:empty { display: none; }
@media (max-width: 520px) { .logo-picker { flex-direction: column; align-items: flex-start; } }

/* Suggestion d'activité */
.suggestions { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.suggestion { font-size: .875rem; color: var(--muted); }
.suggestion-badge { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 99px; font-size: .75rem; font-weight: 700; background: var(--bg); color: var(--muted); }
.suggestion.is-pending .suggestion-badge { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.suggestion.is-accepted .suggestion-badge { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.suggest { margin-top: 8px; }
.suggest summary { cursor: pointer; width: fit-content; font-size: .9rem; font-weight: 600; color: var(--brand); }
.suggest-body { display: grid; gap: 6px; margin-top: 8px; }
.suggest-body .muted { font-size: .85rem; }

/* Boutons Wallet sous la carte */
.wallet-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px auto 8px; max-width: 420px; }
.wallet-button { flex: 1 1 180px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 8px 16px; border-radius: 12px; background: #000; color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1.1; }
.wallet-button svg { width: 26px; height: 26px; flex: none; }
.wallet-button[data-platform="google"] svg { background: #fff; border-radius: 6px; padding: 3px; }
.wallet-button span { display: flex; flex-direction: column; text-align: left; }
.wallet-button small { font-size: .7rem; font-weight: 500; opacity: .85; }
.wallet-button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Rappel d'échéance sur l'accueil */
.renewal { display: flex; align-items: flex-start; gap: 14px; border: 1.5px solid color-mix(in srgb, var(--brand) 35%, var(--line)); }
.renewal .post-icon { flex: none; }
.renewal p { margin: 4px 0 0; font-size: .9rem; }
.renewal details { margin-top: 8px; font-size: .9rem; }
.renewal summary { cursor: pointer; font-weight: 600; color: var(--brand); width: fit-content; }

/* Cotisation dans « Mon commerce » */
.membership-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.membership-status p { margin: 4px 0 0; }
.flash .btn.small { margin-left: auto; flex: none; }

/* Annuaire : liste ou carte */
.directory-toolbar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.segmented-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.segmented-toggle a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 9px; font-weight: 600; font-size: .9rem; color: var(--muted); text-decoration: none; }
.segmented-toggle a .icon { width: 16px; height: 16px; }
.segmented-toggle a.active { background: var(--brand); color: #fff; }
.directory-map { height: min(70vh, 560px); border-radius: 18px; border: 1px solid var(--line); overflow: hidden; z-index: 0; }
.map-note { margin-top: 8px; font-size: .85rem; }

/* Adresse en un champ, suggestions IGN */
.address-combobox { position: relative; }
.address-results { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 32px rgba(0, 0, 0, .12); max-height: 300px; overflow-y: auto; }
.address-option { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-radius: 10px; cursor: pointer; }
.address-option strong { font-weight: 600; font-size: .95rem; }
.address-option span { font-size: .82rem; color: var(--muted); }
.address-option.is-active, .address-option:hover { background: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
.address-hint { margin: 4px 0 0; }
.address-hint:empty { display: none; }
.address-field.has-error [data-address-search] { border-color: var(--ko); }
.address-details { margin-top: 6px; }
.address-field:not(.is-enhanced) .address-details > summary { display: none; }
.address-field.is-enhanced .address-details > summary { cursor: pointer; width: fit-content; font-size: .85rem; font-weight: 600; color: var(--muted); }
.address-field.is-enhanced .address-details[open] { padding: 4px 14px 12px; border: 1px dashed var(--line); border-radius: 12px; }

/* Activités en pastilles (public/js/activity-chips.js) */
.activity-chips { margin-top: 12px; }
.ac-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.ac-label { font-weight: 600; font-size: .9rem; }
.ac-count { font-size: .85rem; }
.ac-selected { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.activity-chips:not(.is-enhanced) .ac-selected:not(:has(*)) { display: none; }
.ac-selected.is-empty::before { content: "Aucune activité choisie"; font-size: .85rem; color: var(--muted); padding: 6px 0; }
.ac-filter { position: relative; margin-bottom: 10px; }
.ac-filter .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.activity-chips .ac-filter input[type=text] { padding-left: 40px; }
.ac-filter[hidden], .ac-suggest[hidden] { display: none; }
.ac-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-chip { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s; }
.ac-chip:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.ac-chip[hidden] { display: none; }
.ac-chip input { margin: 0; accent-color: var(--brand); }
.activity-chips.is-enhanced .ac-list .ac-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ac-chip:has(input:checked), .ac-chip.is-chosen { background: color-mix(in srgb, var(--brand) 12%, var(--surface)); border-color: var(--brand); color: var(--brand); }
.ac-chip:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.ac-chip.is-chosen span[aria-hidden] { font-size: 1.05rem; line-height: 1; opacity: .8; }
.ac-chip.is-pending { background: color-mix(in srgb, #d97706 12%, var(--surface)); border-color: color-mix(in srgb, #d97706 55%, var(--line)); color: #92400e; }
.ac-chip.is-propose { border-style: dashed; border-color: var(--brand); color: var(--brand); background: transparent; }
.ac-chip.is-off { opacity: .45; cursor: not-allowed; }
.ac-note { margin: 8px 0 0; font-size: .85rem; }
.ac-note:empty { display: none; }
.ac-suggest { margin-top: 10px; display: grid; gap: 4px; }
.ac-suggest .muted { font-size: .85rem; }

/* Barre du bas (téléphone) : onglet « Plus » qui ouvre les rubriques secondaires */
.tabbar-more { position: relative; display: grid; }
.tabbar-more > summary { display: grid; justify-items: center; gap: 2px; padding: 6px 0; color: var(--muted); font-size: .68rem; font-weight: 600; list-style: none; cursor: pointer; }
.tabbar-more > summary::-webkit-details-marker { display: none; }
.tabbar-more.active > summary, .tabbar-more[open] > summary { color: var(--brand); }
.tabbar-sheet { position: absolute; right: 6px; bottom: calc(100% + 10px); min-width: 200px; display: grid; gap: 2px; padding: 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .16); }
.tabbar .tabbar-sheet a { display: flex; align-items: center; gap: 10px; justify-items: start; padding: 11px 12px; border-radius: 10px; font-size: .95rem; color: var(--text); }
.tabbar .tabbar-sheet a.active { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.tabbar .tabbar-sheet .icon { width: 20px; height: 20px; }

/* Lien discret à droite d'un titre de section */
h2 .h2-link { margin-left: auto; font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--brand); }

/* Couleurs des thématiques de ressources : teintes douces, neutres de sens, contraste AA ≥ 5,4:1.
   La couleur de l'association reste réservée aux actions. Toujours doublée d'une icône et d'un libellé. */
.cat-reglementation { --cat: #35588a; --cat-bg: #e7eef8; }
.cat-demarches { --cat: #0d6b6a; --cat-bg: #e0f1f0; }
.cat-partenaires { --cat: #5a479d; --cat-bg: #eeeaf8; }
.cat-formations { --cat: #8a5708; --cat-bg: #fbefd9; }
.cat-documents { --cat: #6a5843; --cat-bg: #f1ebe3; }
.chip.cat-chip { border-color: color-mix(in srgb, var(--cat) 30%, var(--line)); color: var(--cat); }
.chip.cat-chip:hover { background: var(--cat-bg); }
.chip.cat-chip.active { background: var(--cat); border-color: var(--cat); color: #fff; }
