/* Design system v2 (docs/maquettes/v2): tokens, base. Light by default, dark via [data-theme="dark"]. */
/* Self-hosted variable fonts (SIL OFL, latin subset): no request to Google */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 800; font-stretch: 100%; font-display: swap; src: url("../fonts/bricolage-grotesque.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap; src: url("../fonts/instrument-sans.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-2: #f2f5f3;
  --bg-3: #e6ece8;
  --ink: #14231d;
  --ink-2: #51605a;
  --ink-3: #6b7973;
  --line: #dfe5e1;
  --line-2: #c5cfc9;
  --brand: #1d7a4b;
  --brand-ink: #155d3a;
  --brand-soft: #e3f2ea;
  --on-brand: #ffffff;
  --tag: #1f5fbf;
  --tag-soft: #1f5fbf;
  --tag-ink: #ffffff;
  --focus: #2f5fe0;
  --band: #102a21;
  --on-band: #eef5f0;
  --band-muted: #9fb8ac;
  --band-line: #244639;
  --shadow: 0 1px 2px rgba(20, 35, 29, .06), 0 8px 24px rgba(20, 35, 29, .08);
  --r: 12px;
  --r-s: 8px;
  --r-xs: 6px;
  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f1a16;
  --bg-2: #15221d;
  --bg-3: #1c2c26;
  --ink: #eaf1ec;
  --ink-2: #a9b8b0;
  --ink-3: #8a9a92;
  --line: #26362f;
  --line-2: #3a4c44;
  --brand: #5ccf93;
  --brand-ink: #7fdcab;
  --brand-soft: #17382a;
  --on-brand: #0b1f16;
  --tag: #7fb0f5;
  --tag-soft: #7fb0f5;
  --tag-ink: #0d2347;
  --focus: #8fb0ff;
  --band: #0a1410;
  --on-band: #eef5f0;
  --band-muted: #8ea89b;
  --band-line: #1f3329;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
}
h1, h2, h3, h4 { font-family: var(--font-display); font-variation-settings: "opsz" 96; margin: 0; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: 32px; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: 24px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: var(--r-xs); z-index: 50; }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: no-preference) {
  a, button { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
}

/* "Vérifié" badge is now solid blue; "Déclaré" keeps the neutral .badge */
:root { --tag-soft: #1f5fbf; --tag-ink: #ffffff; --ok: #1d7a4b; --warn: #b4610a; --warn-soft: #fdf1e0; }
:root[data-theme="dark"] { --tag-soft: #7fb0f5; --tag-ink: #0d2347; --ok: #5ccf93; --warn: #f0b36a; --warn-soft: #3a2a12; }
.badge-pending { background: var(--warn-soft); color: var(--warn); border-color: transparent; }

/* Public pages: layout, header, footer, cards, fiche, home. */
/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
.section { padding-block: 48px; }
.wrap.section + .wrap.section { padding-top: 0; }
.section-head { display: grid; gap: 8px; margin-bottom: 24px; }
.section-head p { color: var(--ink-2); max-width: 64ch; }
.grid { display: grid; gap: 16px; }
@media (min-width: 768px) {
  .wrap { padding-inline: 32px; }
  .section { padding-block: 72px; }
  h1 { font-size: 44px; }
  h2 { font-size: 30px; }
  h3 { font-size: 19px; }
  .grid { gap: 24px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--r-s);
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn-secondary { background: var(--bg); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { background: var(--bg-2); }
.btn-light { background: var(--on-band); color: var(--band); }
.btn-light:hover { background: #ffffff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; margin-right: auto; white-space: nowrap; }
.logo svg { width: 32px; height: 32px; flex: none; }
.logo .tld { color: var(--brand); font-weight: 600; }
.nav { display: none; list-style: none; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--r-s); text-decoration: none; color: var(--ink-2); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--bg); cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.btn-pro { display: none; }
.menu-btn { display: inline-flex; }
.site-header.is-open .nav { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.site-header.is-open .nav a { min-height: 44px; }
.nav .nav-pro { display: none; }
.site-header.is-open .nav .nav-pro { display: block; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
@media (min-width: 900px) {
  .logo { font-size: 18px; }
  .nav { display: flex; }
  .btn-pro { display: inline-flex; min-height: 40px; }
  .menu-btn { display: none; }
}

/* ---------- Badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 2px 9px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line); }
.badge svg { width: 14px; height: 14px; flex: none; }
.badge-ok { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.badge-verified { background: var(--tag-soft); color: var(--tag-ink); border-color: transparent; }

/* ---------- Ranking notice (art. D111-7) ---------- */
.classement { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--ink-2); margin-bottom: 16px; list-style: none; }
.classement li { display: inline-flex; align-items: center; gap: 6px; }
.classement li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }

/* ---------- Trainer cards ---------- */
.cards { grid-template-columns: 1fr; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); color: inherit; text-decoration: none; }
.card:hover { border-color: var(--line-2); background: var(--bg-2); }
.card h3 { font-size: 18px; }
.card .town { color: var(--ink-2); font-size: 15px; }
.card .registre { color: var(--ink-3); font-size: 14px; margin-top: auto; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: 40px 32px; color: var(--ink-2); font-size: 14px; }
.site-footer .top { display: grid; gap: 32px; margin-bottom: 32px; }
.site-footer .brand p { max-width: 36ch; margin-top: 12px; }
.site-footer p.h3 { font-family: var(--font-text); font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (min-width: 768px) { .site-footer .top { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; } }


/* ---------- Breadcrumb ---------- */
.crumb { padding-block: 16px; font-size: 14px; color: var(--ink-2); }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumb li { display: inline-flex; align-items: center; gap: 8px; }
.crumb li + li::before { content: ""; width: 5px; height: 5px; border-right: 1.5px solid var(--line-2); border-bottom: 1.5px solid var(--line-2); transform: rotate(-45deg); }
.crumb a { color: inherit; text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.crumb [aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- Fiche header ---------- */
.fiche-head { border-bottom: 1px solid var(--line); }
.fiche-head .wrap { padding-block: 8px 32px; }
.fiche-head .kicker { font-size: 15px; color: var(--ink-2); margin-bottom: 8px; }
.fiche-head h1 { margin-bottom: 6px; }
.fiche-head .who { font-size: 17px; color: var(--ink-2); margin-bottom: 16px; }
.fiche-head .claim-link { display: inline-block; margin-top: 16px; font-size: 14px; }
@media (min-width: 900px) { .fiche-head .wrap { padding-block: 16px 40px; } .fiche-head .who { font-size: 18px; } }

/* ---------- Two columns ---------- */
.fiche { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 32px 64px; }
.fiche > aside { display: grid; gap: 16px; align-self: start; }
.fiche > article { display: grid; gap: 40px; min-width: 0; }
@media (min-width: 900px) {
  .fiche { grid-template-columns: minmax(0, 1fr) 336px; gap: 64px; padding-block: 40px 96px; }
  .fiche > article { grid-column: 1; grid-row: 1; gap: 48px; }
  .fiche > aside { grid-column: 2; grid-row: 1; position: sticky; top: 80px; }
}

/* ---------- Aside cards ---------- */
.panel { padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.panel h2 { font-size: 17px; margin-bottom: 12px; }
.contact .btn { width: 100%; justify-content: flex-start; }
.contact .btn-primary { min-height: 52px; font-size: 16px; }
.contact .cta { display: grid; gap: 8px; }
.contact .note { font-size: 13px; color: var(--ink-2); margin-top: 12px; }
.contact .hours { display: flex; gap: 8px; font-size: 14px; color: var(--ink-2); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.claim { background: var(--bg-2); border-color: transparent; }
.claim p { font-size: 14px; color: var(--ink-2); }
.meter { display: block; margin: 12px 0; font-size: 13px; color: var(--ink-2); }
.meter i { display: block; height: 6px; border-radius: 3px; background: var(--bg-3); margin-bottom: 6px; overflow: hidden; }
.meter i::after { content: ""; display: block; height: 100%; width: var(--pct, 0%); background: var(--brand); border-radius: 3px; }
.claim .links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; margin-top: 12px; }

/* ---------- Article blocks ---------- */
.block h2 { margin-bottom: 16px; font-size: 22px; }
.block .intro { color: var(--ink-2); margin-bottom: 16px; }
.block p + p { margin-top: 12px; }
.tags { margin-bottom: 16px; }
.declared { font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.prose { max-width: 68ch; }

/* Tarifs */
.tarifs { width: 100%; border-collapse: collapse; font-size: 15px; }
.tarifs caption { text-align: left; color: var(--ink-2); font-size: 14px; padding-bottom: 8px; }
.tarifs th, .tarifs td { text-align: left; padding: 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.tarifs thead th { font-size: 13px; font-weight: 600; color: var(--ink-2); border-top: 0; padding-top: 0; border-bottom: 1px solid var(--line-2); }
.tarifs tbody th { font-weight: 500; }
.tarifs .prix { text-align: right; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.tarifs .sub { display: block; font-size: 13px; color: var(--ink-2); font-weight: 400; margin-top: 2px; }
.tarifs tbody tr.group th { padding-top: 28px; padding-bottom: 8px; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--brand-ink); border-top: 0; border-bottom: 2px solid var(--brand); }
.tarifs tbody tr.group + tr th, .tarifs tbody tr.group + tr td { border-top: 0; padding-top: 10px; }
.tarifs tbody tr.group:first-child th { padding-top: 0; }
.tarifs tbody tr.subgroup th { padding-top: 16px; padding-bottom: 2px; font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); border-bottom: 0; }
.tarifs tbody tr.group + tr.subgroup th { padding-top: 12px; }
.tarifs .sub { line-height: 1.5; }

/* Diplomas */
.diplomes { list-style: none; display: grid; gap: 8px; }
.diplomes li { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-s); font-size: 15px; }
.diplomes svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); margin-top: 1px; }
.diplomes .txt { flex: 1 1 auto; min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.diplomes .stamp { flex: none; }
.diplomes .stamp svg { color: inherit; width: 14px; height: 14px; margin: 0; }

/* Zone */
.zone { display: flex; gap: 12px; align-items: flex-start; }
.zone svg { width: 22px; height: 22px; flex: none; color: var(--brand); }
.zone .towns { font-size: 14px; color: var(--ink-2); margin-top: 4px; }

/* Facts (legal) */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; font-size: 15px; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; }

/* Nearby list */
.list { list-style: none; display: grid; }
.list li { border-top: 1px solid var(--line); }
.list li:last-child { border-bottom: 1px solid var(--line); }
.list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 14px 0; text-decoration: none; color: inherit; }
.list a:hover strong { color: var(--brand-ink); }
.list strong { font-weight: 600; }
.list .town { color: var(--ink-2); font-size: 14px; }
.list .km { grid-column: 2; grid-row: 1 / span 2; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.list .badges { grid-column: 1; margin-top: 4px; }
.block .after-list { margin-top: 16px; font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 20px; }

.source { font-size: 13px; color: var(--ink-3); max-width: 68ch; }
.source a { color: var(--ink-2); }

/* ---------- Home: hero ---------- */
.hero { background: var(--bg-2); border-bottom: 1px solid var(--line); padding-block: 48px 40px; }
.hero .inner { max-width: 760px; margin: 0 auto; text-align: center; }
.hero h1 { margin-bottom: 12px; }
.hero .lead { font-size: 17px; color: var(--ink-2); max-width: 54ch; margin: 0 auto 28px; }
.search { display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 14px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); text-align: left; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); }
.search .pin { width: 22px; height: 22px; flex: none; color: var(--brand); }
.search input { flex: 1 1 auto; min-width: 0; height: 48px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; padding: 0 8px; }
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; }
.search .btn { min-height: 48px; padding-inline: 16px; }
.hero .hint { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.needs-inline { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin-top: 24px; }
.needs-inline a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14px; }
.needs-inline a:hover { border-color: var(--brand); color: var(--brand-ink); }
.hero .counts { margin-top: 32px; font-size: 14px; color: var(--ink-2); }
.hero .counts strong { color: var(--ink); font-weight: 600; }
@media (min-width: 768px) {
  .hero { padding-block: 88px 64px; }
  .hero .lead { font-size: 19px; }
  .search { padding-left: 18px; }
  .search input { height: 56px; font-size: 18px; }
  .search .btn { min-height: 52px; padding-inline: 26px; font-size: 16px; }
}

/* ---------- Home: needs ---------- */
.needs { grid-template-columns: 1fr 1fr; }
.need { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.need:hover { border-color: var(--brand); background: var(--bg-2); }
.need .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; }
.need .ico svg { width: 22px; height: 22px; }
.need h3 { font-size: 17px; }
.need p { font-size: 14px; color: var(--ink-2); }
@media (min-width: 768px) { .needs { grid-template-columns: repeat(4, 1fr); } .need { padding: 24px; } .need h3 { font-size: 18px; } }

/* ---------- Home: departments ---------- */
.depts { grid-template-columns: 1fr; list-style: none; }
@media (min-width: 480px) { .depts { grid-template-columns: 1fr 1fr; } }
.depts a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-s); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.depts a:hover { background: var(--bg-2); border-color: var(--line-2); }
.depts .code { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-xs); background: var(--bg-3); color: var(--ink-2); font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.depts strong { display: block; font-weight: 600; font-size: 15px; }
.depts span.n { display: block; color: var(--ink-2); font-size: 14px; }
.depts-more { margin-top: 16px; font-size: 15px; }
@media (min-width: 768px) { .depts { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Home: trust ---------- */
.trust { background: var(--bg-2); border-block: 1px solid var(--line); }
.trust .grid { grid-template-columns: 1fr; }
.trust h3 { margin-bottom: 8px; }
.trust p, .trust li { color: var(--ink-2); font-size: 15px; }
.trust ol { list-style: none; display: grid; gap: 10px; counter-reset: etape; }
.trust ol li { display: flex; gap: 10px; }
.trust ol li::before { counter-increment: etape; content: counter(etape); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--ink); display: grid; place-items: center; }
.trust .more { display: block; margin-top: 12px; font-size: 15px; }
@media (min-width: 768px) { .trust .grid { grid-template-columns: repeat(3, 1fr); gap: 48px; } }

/* ---------- Home: pro band ---------- */
.pro { background: var(--band); color: var(--on-band); padding-block: 56px; }
.pro .grid { grid-template-columns: 1fr; align-items: start; }
.pro h2 { color: #fff; margin-bottom: 12px; }
.pro .lead { color: var(--band-muted); font-size: 17px; max-width: 44ch; margin-bottom: 24px; }
.pro .btn-light { min-height: 48px; }
.pro ol { list-style: none; display: grid; gap: 12px; counter-reset: etape; }
.pro ol li { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--band-line); border-radius: var(--r-s); }
.pro ol li::before { counter-increment: etape; content: counter(etape); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--on-band); color: var(--band); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.pro .step-title { color: #fff; font-family: var(--font-display); font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.pro ol p { color: var(--band-muted); font-size: 15px; }
@media (min-width: 768px) { .pro { padding-block: 80px; } .pro .grid { grid-template-columns: 5fr 7fr; gap: 64px; } }

/* ---------- Home: guides ---------- */
.guides { grid-template-columns: 1fr; list-style: none; }
.guide { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.guide:hover h3 { color: var(--brand-ink); }
.guide p { color: var(--ink-2); font-size: 15px; }
.guide .read { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--brand-ink); font-size: 15px; }
@media (min-width: 768px) { .guides { grid-template-columns: repeat(3, 1fr); gap: 40px; } .guide { padding: 24px 0 0; } }

/* ---------- Generic: page header of lists and content pages ---------- */
main { min-height: 50vh; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 64ch; }
.list-head { border-bottom: 1px solid var(--line); }
.list-head .wrap { padding-block: 8px 32px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; justify-items: start; }
.list-head .search { width: 100%; max-width: 560px; margin-top: 8px; box-shadow: none; }
.list-head .byline { color: var(--ink-2); font-size: 14px; margin: 0; }
.list-head .byline a { color: inherit; }
.list-head .actions { margin-top: 8px; }
@media (min-width: 900px) { .list-head .wrap { padding-block: 16px 48px; } .lead { font-size: 18px; } }
.section-head h2 + p { font-size: 15px; }
.kicker { font-size: 15px; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Two columns with aside (town, need pages) */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 32px 64px; }
.with-aside > div > section + section, .with-aside > div > section + .prose { margin-top: 48px; }
.with-aside .section { padding-block: 0; }
.with-aside > aside { display: grid; gap: 16px; align-self: start; }
.with-aside > aside > section { padding: 20px; border-radius: var(--r); border: 1px solid var(--line); }
.with-aside > aside > .claim, .with-aside > aside > .callout { background: var(--bg-2); border-color: transparent; }
.with-aside > aside h2 { font-size: 17px; margin-bottom: 12px; }
.with-aside > aside p { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
@media (min-width: 900px) {
  .with-aside { grid-template-columns: minmax(0, 1fr) 336px; gap: 64px; padding-block: 40px 96px; }
  .with-aside > aside { position: sticky; top: 80px; }
}
.with-aside h3 { margin: 24px 0 8px; font-size: 17px; }
.with-aside h3 a { color: inherit; text-decoration: none; }
.with-aside h3 a:hover { color: var(--brand-ink); text-decoration: underline; }

/* Callout (5 questions, notes) */
.callout ol, .callout ul { padding-left: 20px; font-size: 14px; color: var(--ink-2); }
.callout li + li { margin-top: 6px; }
.callout h2, .callout h3 { font-size: 17px; margin: 0 0 12px; }

/* Links list (nearby towns, departments, needs) */
.links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.links a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.links a:hover { border-color: var(--brand); color: var(--brand-ink); }
aside .links { display: grid; gap: 4px; }
aside .links a { border: 0; padding: 0; min-height: 32px; color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 400; }

/* Free-text fields rendered by the lignes filter */
.facts dd ul, .rich ul { list-style: none; display: grid; gap: 6px; }
.rich { max-width: 68ch; }
.prose.rich ul, .rich ul { padding-left: 0; }
.prose.rich li + li { margin-top: 0; }
.empty { padding: 16px 20px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--ink-2); font-size: 15px; }

/* Departments grid without code tile (towns, guides) */
.guide-list { margin-top: 32px; }
.guide-list strong { font-family: var(--font-display); font-size: 16px; }

/* Long-form content (guides, legal) */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 48px; font-size: 24px; }
.prose h3 { margin-top: 32px; }
.prose h2 + *, .prose h3 + * { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose .lead { font-size: 19px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-2); font-weight: 600; }
.prose details { border-bottom: 1px solid var(--line); padding-block: 12px; }
.prose summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.prose details > :not(summary) { margin-top: 12px; }
.prose blockquote { margin: 0; padding: 12px 20px; border-left: 3px solid var(--brand); background: var(--bg-2); border-radius: 0 var(--r-s) var(--r-s) 0; }
@media (min-width: 768px) { .prose h2 { font-size: 28px; } }

/* Pro page band: secondary light button */
.btn-ghost-light { background: transparent; color: var(--on-band); border-color: var(--band-line); }
.btn-ghost-light:hover { background: var(--band-line); }
.pro h1 { color: #fff; margin-bottom: 12px; font-size: 32px; }
.pro .actions { margin-bottom: 16px; }
.pro-small a { color: var(--band-muted); font-size: 14px; }
@media (min-width: 768px) { .pro h1 { font-size: 40px; } }

/* ---------- Forms ---------- */
.form-wrap { padding-top: 32px; }
.form { display: grid; gap: 24px; max-width: 720px; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin: 0; display: grid; gap: 16px; min-width: 0; }
.form legend { font-family: var(--font-display); font-weight: 700; font-size: 18px; padding-inline: 6px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 600; font-size: 15px; }
.help, .field .help { font-size: 13px; color: var(--ink-2); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field input[type="search"], .field input[type="password"], .field input[type="number"], .field input[type="date"], .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-s);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field textarea { min-height: 112px; resize: vertical; }
.choices-group { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; min-width: 0; }
.choices { display: grid; gap: 4px; }
.choices label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; min-height: 36px; padding-top: 6px; }
.choices input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.form-error, .field ul { color: var(--bad); font-size: 14px; list-style: none; }
.flash { border-radius: var(--r-s); padding: 12px 16px; margin-block: 16px; background: var(--brand-soft); color: var(--brand-ink); font-size: 15px; }
.flash-error { background: var(--bad-soft); color: var(--bad); }
.hp { position: absolute; left: -9999px; }

/* ---------- Admin (extends base) ---------- */
.admin-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { color: var(--ink-2); font-weight: 600; background: var(--bg-2); }
.admin-table tr:hover td { background: var(--bg-2); }
.statut-nouvelle { color: var(--brand-ink); font-weight: 600; }
.inline-form { display: inline; }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.compare { display: grid; gap: 16px; }
@media (min-width: 768px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare pre { white-space: pre-wrap; font: inherit; margin: 0; }
form.search:not([role]) { flex-wrap: wrap; padding: 8px 8px 8px 14px; box-shadow: none; }
form.search:not([role]) label { flex-basis: 100%; font-size: 13px; color: var(--ink-2); padding-top: 4px; }

/* Admin and simple pages: heading rhythm */
.wrap.section > h1 { margin-bottom: 16px; }
.wrap.section > h2 { margin: 40px 0 12px; font-size: 22px; }
.wrap.section > p + p { margin-top: 8px; }

/* Fiche on mobile: contact first, then content, then the claim box */
@media (max-width: 899px) { .fiche > aside { display: contents; } .fiche > .claim, .fiche .claim { order: 2; } .fiche > article { order: 1; } }
.callout ul.links { padding-left: 0; }
/* Trainer space (espace éducateur) + generic pages, forms, admin. */
/* ---------- Page header ---------- */
.page-head { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.page-head .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding-block: 24px; }
.page-head .kicker { font-size: 14px; color: var(--ink-2); margin-bottom: 4px; }
.page-head h1 { font-size: 28px; }
.page-head .who { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.page-head .session { font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.page-head .session svg { width: 16px; height: 16px; color: var(--ok); }
@media (min-width: 900px) { .page-head .wrap { padding-block: 32px; } .page-head h1 { font-size: 34px; } }

/* ---------- Layout: side nav + content ---------- */
.espace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 16px 64px; }
.side { position: sticky; top: 64px; z-index: 30; background: var(--bg); margin-inline: -16px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.side ul { list-style: none; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.side ul::-webkit-scrollbar { display: none; }
.side a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 36px; padding: 0 12px; border-radius: var(--r-s); text-decoration: none; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.side a:hover { background: var(--bg-2); color: var(--ink); }
.side a[aria-current="true"] { background: var(--brand-soft); color: var(--brand-ink); }
.side .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
.side .dot.ok { background: var(--ok); }
.side .dot.warn { background: var(--warn); }
.content { display: grid; gap: 24px; min-width: 0; }
@media (min-width: 900px) {
  .espace { grid-template-columns: 232px minmax(0, 1fr); gap: 48px; padding-block: 32px 96px; }
  .side { top: 88px; margin: 0; padding: 0; border: 0; align-self: start; }
  .side ul { flex-direction: column; overflow: visible; }
  .side a { min-height: 40px; }
  .content { gap: 32px; }
}

/* ---------- Panels ---------- */
.content .panel { scroll-margin-top: 140px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.panel-head > div { flex: 1 1 280px; min-width: 0; }
.panel-head h2 { font-size: 20px; }
.panel-head p { color: var(--ink-2); font-size: 15px; max-width: 62ch; margin-top: 4px; }
.panel-head .badges { padding-top: 2px; }
.panel .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.panel .help { font-size: 13px; color: var(--ink-3); margin-top: 12px; }
@media (min-width: 900px) { .content .panel { padding: 28px; scroll-margin-top: 112px; } .panel-head h2 { font-size: 22px; } }

/* ---------- Stepper ---------- */
.stepper { list-style: none; display: grid; gap: 0; counter-reset: s; }
.stepper li { display: grid; grid-template-columns: 28px 1fr; gap: 0 12px; position: relative; padding-bottom: 20px; }
.stepper li:last-child { padding-bottom: 0; }
.stepper li::before { counter-increment: s; content: counter(s); grid-row: 1 / span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; border: 2px solid var(--line-2); color: var(--ink-2); background: var(--bg); z-index: 1; }
.stepper li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.stepper li.done::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: var(--on-brand); }
.stepper li.done:not(:last-child)::after { background: var(--ok); }
.stepper li.current::before { border-color: var(--warn); color: var(--warn); }
.stepper h3 { font-size: 16px; line-height: 28px; }
.stepper p { color: var(--ink-2); font-size: 14px; }
.state-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.state-legend span { display: inline-flex; align-items: center; gap: 6px; }
.state-legend i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-2); }
.state-legend i.current { border-color: var(--warn); }
.state-legend i.done { background: var(--ok); border-color: var(--ok); }

/* Upload zone */
details.more { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
details.more summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--brand-ink); list-style: none; display: flex; align-items: center; gap: 8px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin-left: 4px; }
details.more[open] summary::before { transform: rotate(45deg); }
.upload { margin-top: 16px; display: grid; gap: 16px; }
.upload .req { list-style: none; display: grid; gap: 8px; font-size: 15px; }
.upload .req li { display: flex; gap: 10px; align-items: flex-start; }
.upload .req svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); margin-top: 2px; }
.dropzone { display: grid; place-items: center; text-align: center; gap: 6px; padding: 28px 16px; border: 2px dashed var(--line-2); border-radius: var(--r); background: var(--bg-2); }
.dropzone svg { width: 28px; height: 28px; color: var(--brand); }
.dropzone strong { font-weight: 600; }
.dropzone span { font-size: 13px; color: var(--ink-2); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.privacy { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.privacy svg { width: 18px; height: 18px; flex: none; color: var(--ok); margin-top: 2px; }

/* ---------- Ma fiche ---------- */
.preview { display: grid; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--bg-2); }
.preview .name { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.preview .town { color: var(--ink-2); font-size: 14px; }
.preview .meter { margin: 0; font-size: 13px; color: var(--ink-2); }
.preview .meter i { display: block; height: 6px; border-radius: 3px; background: var(--bg-3); margin-bottom: 6px; overflow: hidden; }
.preview .meter i::after { content: ""; display: block; height: 100%; width: var(--pct, 0%); background: var(--brand); border-radius: 3px; }
@media (min-width: 640px) { .preview { grid-template-columns: 1fr auto; align-items: start; } .preview .meter { min-width: 200px; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; color: var(--ink); background: var(--bg); }
.chip span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.chip input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.chip input:checked + span::before { background: var(--brand); border-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E"); background-size: 12px; background-position: center; background-repeat: no-repeat; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.sub-head { font-size: 16px; margin: 24px 0 10px; }
.sub-head + p { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }

/* ---------- Rows (diplomas, requests) ---------- */
.rows { list-style: none; display: grid; }
.rows li { display: grid; grid-template-columns: 1fr; gap: 8px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows .t { font-weight: 500; }
.rows .d { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.rows .st { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rows .btn { min-height: 36px; padding: 6px 12px; font-size: 14px; }
@media (min-width: 640px) { .rows li { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Option payante ---------- */
.offer { display: grid; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-s); }
.offer .price { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -.02em; }
.offer .price small { font-family: var(--font-text); font-weight: 400; font-size: 14px; color: var(--ink-2); letter-spacing: 0; }
.offer ul { list-style: none; display: grid; gap: 8px; font-size: 15px; }
.offer li { display: flex; gap: 10px; align-items: flex-start; }
.offer li svg { width: 18px; height: 18px; flex: none; color: var(--ok); margin-top: 3px; }
.offer .pay { display: grid; gap: 8px; justify-items: start; }
.offer .pay small { font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.offer .pay small svg { width: 14px; height: 14px; }
.gift { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-s); background: var(--brand-soft); color: var(--brand-ink); font-size: 14px; }
.gift svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
@media (min-width: 768px) { .offer { grid-template-columns: 1fr auto; } .offer .pay { grid-column: 1 / -1; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-s); display: grid; gap: 4px; }
.stat .n { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 14px; color: var(--ink-2); }
.stat .delta { font-size: 13px; color: var(--ink-3); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 16px; } .stat { padding: 20px; } }

/* ---------- Danger zone ---------- */
.danger { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.danger h3 { font-size: 15px; margin-bottom: 6px; }
.danger p { font-size: 14px; color: var(--ink-2); max-width: 62ch; }
.danger .links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 10px; font-size: 14px; }

/* Refused state (diploma or ownership proof) */
:root { --bad: #b42318; --bad-soft: #fdecea; }
:root[data-theme="dark"] { --bad: #f59a91; --bad-soft: #3d1a17; }
.badge-refused { background: var(--bad-soft); color: var(--bad); border-color: transparent; }

/* ---------- Trainer space: forms and helpers used by templates/espace and admin ---------- */
.header-form { display: inline-flex; margin: 0; }
.header-form .btn-pro { display: inline-flex; min-height: 40px; padding: 8px 12px; font-size: 14px; }
.inline-form { display: inline-flex; margin: 0; }
.link-button { background: none; border: 0; padding: 4px 2px; font: inherit; font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { color: var(--bad); }
fieldset.chips { border: 0; padding: 0; margin: 0; min-width: 0; }
details.verify { flex-basis: 100%; }
details.verify > summary { list-style: none; display: inline-flex; }
details.verify > summary::-webkit-details-marker { display: none; }
details.verify[open] > summary { background: var(--bg-2); }
details.verify .upload { margin-top: 12px; justify-items: start; }
details.verify .dropzone { width: 100%; position: relative; cursor: pointer; }
.rows .st form.upload { width: 100%; }
@media (min-width: 640px) { .rows .st { justify-content: flex-end; } details.verify { flex-basis: auto; } details.verify[open] { flex-basis: 100%; } }
.add-row { display: grid; gap: 8px; margin-top: 20px; }
.add-row label { font-weight: 600; font-size: 15px; }
.add-row-fields { display: flex; flex-direction: column; gap: 8px; }
.add-row-fields input, .admin-decision input[type="text"] { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-s); }
.add-row-fields input:focus, .admin-decision input[type="text"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
@media (min-width: 640px) { .add-row-fields { flex-direction: row; } }
.admin-decision { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-decision input[type="text"] { flex: 1 1 200px; min-height: 36px; font-size: 14px; padding: 6px 10px; }
.privacy { margin-top: 16px; }
.narrow > * { max-width: 720px; }
.narrow > * + * { margin-top: 16px; }
.narrow > .form, .narrow > form { margin-top: 24px; }
.narrow .panel h2 { font-size: 20px; margin-bottom: 8px; }
.narrow .panel p + p { margin-top: 8px; }
.field input[type="file"] { font: inherit; font-size: 14px; color: var(--ink-2); padding: 10px; border: 1px dashed var(--line-2); border-radius: var(--r-s); background: var(--bg-2); width: 100%; }
.field input[type="file"]::file-selector-button { font: inherit; font-weight: 600; font-size: 14px; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-xs); padding: 6px 12px; margin-right: 12px; cursor: pointer; }
.danger .links a { border: 0; padding: 0; min-height: 32px; color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 400; }
.header-form .btn-pro { white-space: nowrap; }
@media (max-width: 559px) { .site-header:has(.header-form) .logo > span { display: none; } .header-form .btn-pro { padding: 6px 10px; font-size: 13px; } }

/* Espace intro: room between the stepper, the buttons and the help line */
.stepper + .actions { margin-top: 28px; }
.actions + .help { margin-top: 12px; }

/* Map + list of the listings in view (/departements/, /recherche/) */
.carte { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.carte-onglets { display: flex; gap: 8px; }
.carte-onglets .btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.carte-outils { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 8px; }
.carte-compte { font-size: 14px; color: var(--ink-2); }
.carte-moi { display: inline-flex; align-items: center; gap: 6px; }
.carte-moi svg { width: 18px; height: 18px; }
.carte-plus { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.carte-map { position: relative; height: 70vh; min-height: 360px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg-2); z-index: 0; }
/* Mobile tabs: the hidden panel keeps its size so Leaflet can measure the map */
.carte[data-vue="liste"] .carte-map { position: absolute; left: -10000px; width: 100%; }
.carte[data-vue="carte"] .carte-liste { display: none; }
@media (min-width: 900px) {
  .carte { grid-template-columns: minmax(320px, 400px) 1fr; align-items: start; }
  .carte-onglets { display: none; }
  .carte[data-vue] .carte-liste { display: block; max-height: 70vh; overflow-y: auto; padding-right: 8px; }
  .carte[data-vue] .carte-map { position: sticky; top: 88px; left: auto; }
}
.leaflet-marker-icon.pin { width: 18px; height: 18px; border-radius: 50%; background: var(--ink-3); border: 3px solid var(--bg); box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.leaflet-marker-icon.pin-complete { background: var(--brand); }
.leaflet-marker-icon.pin-groupe { display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 14px; border: 3px solid var(--bg); box-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.leaflet-container .pin-surbrillance { stroke: var(--tag); stroke-width: 3; fill: var(--tag); fill-opacity: .2; }
.leaflet-container .pin-moi { stroke: #fff; stroke-width: 3; fill: var(--focus); fill-opacity: 1; }
.leaflet-container { font: inherit; }
.leaflet-popup-content { margin: 12px 14px; }
.pin-popup { display: grid; gap: 4px; justify-items: start; }
.pin-popup a { font-weight: 600; }
.pin-popup .town { color: var(--ink-2); font-size: 14px; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--bg); color: var(--ink); }
:root[data-theme="dark"] .carte-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9); }
:root[data-theme="dark"] .leaflet-bar a, :root[data-theme="dark"] .leaflet-control-attribution { background: var(--bg-2); color: var(--ink); }
:root[data-theme="dark"] .leaflet-control-attribution a { color: var(--brand-ink); }
.lead + .carte { margin-top: 16px; }

/* Website badge (trainer space) */
.badge-site { display: grid; gap: 12px; justify-items: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--bg-2); }
.badge-site .actions { margin: 0; }
.badge-code { width: 100%; font: 13px/1.5 ui-monospace, Consolas, monospace; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-xs); padding: 10px; resize: vertical; }

/* ---------- List filters and listing practical info (16/11/2026) ---------- */
fieldset.chips > legend { width: 100%; margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
fieldset.chips + fieldset.chips { margin-top: 16px; }
.filtres { margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.filtres > summary { cursor: pointer; padding: 12px 16px; font-weight: 600; }
.filtres > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.filtres > form { padding: 4px 16px 16px; }
.filtres .help { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); }
.filtres .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.filtres-resultat { margin: 0 0 16px; font-weight: 600; }
.facts dd ul.reseaux { display: flex; flex-wrap: wrap; gap: 6px 16px; }
