/* Marcher en Belgique — surcouche de Bootstrap 5.3.8 */
:root {
  --meb-fg: #12192A;
  --meb-muted: #64748B;
  --meb-border: #E8ECF2;
  --meb-hover: #F6F8FC;
  --meb-soft: #F0F2F6;
  --meb-gold: #FFD700;
  --meb-foot: #091A0F;
  --meb-hh: 64px;
  --bs-body-color: var(--meb-fg);
  --bs-body-bg: #FFFFFF;
  --bs-secondary-color: var(--meb-muted);
  --bs-border-color: var(--meb-border);
  --bs-link-color-rgb: 0,68,204;
  --bs-link-hover-color-rgb: 0,40,140;
  --bs-font-monospace: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--meb-hh)); }
body { background: #FFFFFF; color: var(--meb-fg); -webkit-font-smoothing: antialiased; }
.mono { font-family: var(--bs-font-monospace); }
a { text-underline-offset: 2px; }
:focus-visible { outline: 3px solid #0044CC; outline-offset: 2px; }

/* ── En-tête ── */
.site-header {
  min-height: var(--meb-hh);
  background: linear-gradient(100deg, #008C2B 0%, #0044CC 55%, #CC1100 100%);
  box-shadow: 0 3px 18px rgba(0,0,0,.18);
  top: env(safe-area-inset-top, 0px);
}
.logo-plate { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; background: #fff; border-radius: 8px; padding: 5px 10px 4px; text-decoration: none; }
.logo-plate img { height: 34px; width: auto; display: block; }
.logo-plate .logo-full { display: none; }
@media (min-width: 576px) { .logo-plate .logo-m { display: none; } .logo-plate .logo-full { display: block; } }
.site-header .nav-link { color: rgba(255,255,255,.85); font-weight: 600; font-size: .9rem; border-radius: 6px; padding: .4rem .8rem !important; }
.site-header .nav-link:hover, .site-header .nav-link:focus { color: #fff; background: rgba(255,255,255,.15); }
.site-header .nav-link.active { color: #fff; background: rgba(255,255,255,.24); }
.site-header .dropdown-menu { border-color: var(--meb-border); box-shadow: 0 8px 24px rgba(18,25,42,.14); }
.lang-switch .btn { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.35); font-size: .75rem; font-weight: 700; padding: .2rem .5rem; }
.lang-switch .btn.active { background: #fff; color: #0044CC; border-color: #fff; }
.btn-header { color: #fff; border: 2px solid rgba(255,255,255,.45); background: rgba(255,255,255,.1); font-weight: 700; font-size: .85rem; }
.btn-header.active, .btn-header.active:hover { background: #fff; color: #0044CC; border-color: #fff; }
.btn-header:hover { background: rgba(255,255,255,.25); color: #fff; border-color: #fff; }
.header-search .form-control { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); color: #fff; font-size: .85rem; }
.header-search .form-control::placeholder { color: rgba(255,255,255,.7); }
.header-search .form-control:focus { background: #fff; color: var(--meb-fg); }
.offcanvas .nav-link { color: var(--meb-fg); font-weight: 600; }
.flag { display: inline-flex; gap: 2px; align-items: center; vertical-align: middle; }
.flag span { display: block; width: 8px; height: 14px; border-radius: 2px; }
.flag.lg span { width: 10px; height: 17px; }
.hero .flag span:first-child { box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.annonce { border: 2px solid var(--meb-border); border-radius: 12px; padding: 1.1rem 1.2rem; }
.annonce-fb { background: #1B4FA0; border-color: #1B4FA0; color: #fff; }

/* ── Hero accueil ── */
.hero { position: relative; overflow: hidden; background: linear-gradient(150deg, #0B2716 0%, #0C2E55 58%, #2A0A0A 100%); color: #fff; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.hero-blob.b1 { width: 520px; height: 520px; top: -160px; left: -120px; background: rgba(0,153,51,.30); }
.hero-blob.b2 { width: 420px; height: 420px; top: 30%; right: 40px; background: rgba(0,100,255,.24); }
.hero-blob.b3 { width: 340px; height: 340px; bottom: -80px; right: 22%; background: rgba(255,0,0,.18); }
.hero-inner { position: relative; z-index: 1; padding-top: clamp(3rem, 8vw, 5.5rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.hero-eyebrow { color: var(--meb-gold); font-weight: 700; font-size: .85rem; display: inline-flex; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.hero-title { font-size: clamp(2.6rem, 7.5vw, 5.4rem); font-weight: 900; letter-spacing: -.04em; line-height: .95; margin-bottom: 1.2rem; }
.hero-title .l2 { color: var(--meb-gold); display: block; }
.hero-desc { color: rgba(255,255,255,.72); font-size: clamp(1rem, 1.8vw, 1.15rem); max-width: 34em; margin: 0 auto 1.6rem; line-height: 1.6; }
.hero-search { max-width: 560px; margin: 0 auto 1.25rem; }
.hero-search .form-control { border: 0; padding: .85rem 1rem; font-size: 1rem; }
.hero-search .btn { font-weight: 800; }
.btn-gold { background: var(--meb-gold); color: #0B2716; font-weight: 800; border: 0; }
.btn-gold:hover, .btn-gold:focus { background: #ffe24d; color: #0B2716; }
.btn-ghost { color: #fff; border: 2px solid rgba(255,255,255,.45); font-weight: 700; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.stat-strip { position: relative; z-index: 1; background: rgba(0,0,0,.32); border-top: 1px solid rgba(255,255,255,.08); }
.stat-item { padding: 1.1rem .5rem; text-align: center; }
.stat-num { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; font-family: var(--bs-font-monospace); }
.stat-label { font-size: .78rem; color: rgba(255,255,255,.6); font-weight: 600; }

/* ── Sections ── */
.section-hdr { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-bottom: .75rem; margin-bottom: 1rem; border-bottom: 2px solid var(--meb-border); }
.section-title { font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 900; letter-spacing: -.03em; margin: 0; }
.section-link { font-weight: 700; font-size: .85rem; color: var(--meb-muted); text-decoration: none; }
.section-link:hover { color: var(--meb-fg); }
.step-card { border: 2px solid var(--meb-border); border-radius: 12px; padding: 1.4rem; height: 100%; }
.step-num { font-size: 2.3rem; font-weight: 900; font-family: var(--bs-font-monospace); color: var(--meb-border); line-height: 1; }

/* ── Bloc jour ── */
.day-block { padding-top: 1.75rem; }
.day-hdr { position: relative; overflow: hidden; padding-bottom: .5rem; margin-bottom: .5rem; border-bottom: 2px solid var(--meb-border); }
.day-watermark { position: absolute; top: -12px; left: -4px; font-size: clamp(64px, 12vw, 108px); font-weight: 900; color: #F0F2F6; letter-spacing: -.06em; line-height: 1; user-select: none; pointer-events: none; }
.day-hdr-content { position: relative; z-index: 1; display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.day-name { font-size: clamp(1.4rem, 3.5vw, 1.9rem); font-weight: 900; letter-spacing: -.03em; margin: 0; }
.day-date { color: var(--meb-muted); font-size: .9rem; }
.day-count { margin-left: auto; background: var(--meb-fg); color: #fff; font-family: var(--bs-font-monospace); font-weight: 700; font-size: .7rem; border-radius: 99px; padding: .25rem .65rem; }

/* ── Ligne de marche ── */
.walk-row { position: relative; border-bottom: 1px solid var(--meb-border); border-left: 4px solid var(--tc, #888); padding: .5rem .5rem .5rem .6rem; margin: 0; }
.walk-list .walk-row:first-child { border-top: 1px solid var(--meb-border); }
.walk-row:hover { background: var(--meb-hover); }
.wr-type { display: inline-block; min-width: 62px; text-align: center; font-size: .68rem; font-weight: 800; letter-spacing: .04em; padding: .2rem .45rem; border-radius: 5px; background: var(--tc); color: var(--tt); white-space: nowrap; }
.wr-prov { display: inline-block; min-width: 34px; text-align: center; font-size: .68rem; font-weight: 700; color: var(--meb-muted); background: var(--meb-soft); padding: .2rem .45rem; border-radius: 4px; font-family: var(--bs-font-monospace); }
.wr-loc { font-weight: 700; font-size: .95rem; letter-spacing: -.01em; color: var(--meb-fg); text-decoration: none; }
.wr-loc:hover { text-decoration: underline; }
.wr-main { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .6rem; min-width: 0; }
.wr-loc { white-space: nowrap; }
.wr-title { font-size: .85rem; color: var(--meb-muted); }
@media (min-width: 768px) { .wr-main { flex-wrap: nowrap; } .wr-title { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
.wr-dists { display: flex; flex-wrap: wrap; gap: 3px; justify-content: flex-end; }
.wr-dist { font-size: .68rem; font-weight: 700; padding: .14rem .38rem; border-radius: 4px; font-family: var(--bs-font-monospace); background: var(--tb); color: var(--tk); white-space: nowrap; }
.wr-time { font-size: .72rem; color: var(--meb-muted); font-family: var(--bs-font-monospace); min-width: 44px; text-align: right; }
.wr-act { position: relative; z-index: 2; }
.cal-arrow { font-size: 1.15rem; line-height: 1; padding: .25rem .8rem; }
.btn-icon { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--meb-muted); padding: 0; }
.btn-icon:hover { background: var(--meb-soft); color: var(--meb-fg); }
.btn-icon.on-star { color: #D9A400; }
.btn-icon.on-done { color: #009933; }
.walk-row.cancelled { background: #FAFAFB; }
.walk-row.cancelled .wr-loc, .walk-row.cancelled .wr-title { text-decoration: line-through; color: #8A94A6; }
.walk-row.cancelled .wr-dist { opacity: .5; }
.badge-cancel { background: #CC1100; color: #fff; font-size: .62rem; font-weight: 800; border-radius: 4px; padding: .15rem .4rem; }

.legend-item { display: inline-flex; align-items: center; gap: .4rem; border: 1.5px solid var(--tc); color: var(--tk); background: var(--tb); border-radius: 6px; padding: .22rem .6rem; font-size: .74rem; font-weight: 700; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tc); }

/* ── Barre calendrier ── */
.cal-bar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--meb-hh)); z-index: 5; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--meb-border); }
.cal-label { font-weight: 800; letter-spacing: -.01em; }
@media (min-width: 576px) { .w-sm-auto { width: auto !important; } }

/* ── Fiche marche ── */
.detail-hero { background: linear-gradient(0deg, var(--tb), var(--tb)), #fff; border-bottom: 3px solid var(--tc); }
.detail-title { font-size: clamp(1.7rem, 4.5vw, 2.8rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; }
.map-ph { border: 2px dashed var(--meb-border); border-radius: 12px; min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; background: repeating-linear-gradient(45deg, #fff, #fff 28px, #F6F8FC 28px, #F6F8FC 29px); text-align: center; padding: 1.5rem; }
.meb-crumbs { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .5rem; margin: 0; padding: 0; font-size: .8rem; font-weight: 600; }
.meb-crumbs li { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; color: var(--meb-fg); }
.meb-crumbs li + li::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .35; flex-shrink: 0; }
.meb-crumbs a { color: var(--meb-muted); text-decoration: none; }
.meb-crumbs a:hover { color: var(--meb-fg); text-decoration: underline; }
.meb-crumbs .crumb-cur { max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dist-tile { display: inline-flex; align-items: baseline; gap: .2rem; min-width: 92px; justify-content: center; padding: .7rem 1rem; border: 2px solid var(--tc); border-radius: 12px; background: var(--tb); }
.dist-tile .dist-km { font-size: 1.9rem; }
.dist-unit { font-size: .8rem; font-weight: 800; color: var(--tk); }
.map-frame { display: block; width: 100%; height: 340px; border: 0; border-radius: 12px; }
.info-card .info-val a { word-break: break-word; }
.dist-line { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: .75rem; padding: .8rem 1rem; border-bottom: 1px solid var(--meb-border); }
.dist-line:last-child { border-bottom: 0; }
.dist-km { font-size: 1.6rem; font-weight: 900; font-family: var(--bs-font-monospace); color: var(--tk); line-height: 1; }
.info-card .list-group-item { display: flex; gap: .75rem; padding: .8rem 1rem; }
.info-label { font-size: .72rem; color: var(--meb-muted); font-weight: 700; }
.info-val { font-weight: 700; }
.info-sub { font-size: .8rem; color: var(--meb-muted); }
.sticky-lg { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--meb-hh) + 1rem); }
@media (max-width: 991.98px) { .sticky-lg { position: static; } }

/* ── Espace marcheur ── */
.acc-nav .nav-link { color: var(--meb-muted); font-weight: 700; }
.acc-nav .nav-link.active { background: var(--meb-fg); color: #fff; }
.stat-box { border: 2px solid var(--meb-border); border-radius: 12px; padding: 1.1rem 1.2rem; height: 100%; }
.stat-box h2 { font-size: 1.1rem; font-weight: 900; letter-spacing: -.02em; }
.kpi-num { font-size: 1.55rem; font-weight: 900; font-family: var(--bs-font-monospace); letter-spacing: -.03em; line-height: 1.1; }
.kpi-lbl { font-size: .75rem; color: var(--meb-muted); font-weight: 600; }
.table-meb { --bs-table-hover-bg: var(--meb-hover); font-size: .88rem; }
.table-meb thead th { font-size: .75rem; color: var(--meb-muted); font-weight: 700; border-bottom-width: 2px; white-space: nowrap; }
.table-meb td.num, .table-meb th.num { text-align: right; font-family: var(--bs-font-monospace); white-space: nowrap; }
.table-acts .act-row { cursor: pointer; }
.table-acts .act-row > td:first-child { box-shadow: inset 4px 0 0 var(--tc); padding-left: .9rem; }
.table-acts .wr-loc { color: var(--meb-fg); }
.table-acts td:not(:nth-child(3)) { white-space: nowrap; }
.table-acts .wr-main { flex-wrap: wrap; }
.table-acts .wr-title { white-space: normal; overflow: visible; flex: 0 1 auto; }
.badge-100 { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #CC1100; color: #fff; font-size: .72rem; font-weight: 900; box-shadow: 0 0 0 2px #FFD700; }
.icon-100 { height: 20px; width: 20px; vertical-align: middle; }
.row-sub td { background: var(--meb-soft) !important; font-weight: 700; font-size: .8rem; }
.row-total td { background: var(--meb-fg) !important; color: #fff; font-weight: 800; }
.counter { display: inline-flex; align-items: center; border: 1.5px solid var(--meb-border); border-radius: 8px; overflow: hidden; }
.counter button { border: 0; background: var(--meb-soft); width: 34px; height: 34px; font-weight: 800; }
.counter button:hover { background: var(--meb-border); }
.counter output, .counter input { width: 38px; min-width: 34px; text-align: center; font-family: var(--bs-font-monospace); font-weight: 800; border: 0; background: #fff; padding: 0; -moz-appearance: textfield; appearance: textfield; }
.counter input::-webkit-outer-spin-button, .counter input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.login-box { border-width: 2px !important; }
.dist-pick { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem .8rem; border: 1.5px solid var(--meb-border); border-radius: 10px; }
.dist-pick.picked { border-color: var(--tc); background: var(--tb); }

/* ── Admin ── */
.admin-steps { counter-reset: s; }
.admin-step { display: flex; align-items: center; gap: .5rem; color: var(--meb-muted); font-weight: 700; font-size: .85rem; }
.admin-step .dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--meb-border); display: inline-flex; align-items: center; justify-content: center; font-family: var(--bs-font-monospace); font-size: .8rem; background: #fff; }
.admin-step.done .dot { background: #009933; border-color: #009933; color: #fff; }
.admin-step.current { color: var(--meb-fg); }
.admin-step.current .dot { border-color: #0044CC; color: #0044CC; }
.count-card { border: 2px solid var(--meb-border); border-radius: 10px; padding: .8rem 1rem; }
.count-card .n { font-size: 1.6rem; font-weight: 900; font-family: var(--bs-font-monospace); line-height: 1; }

/* ── Pied de page ── */
footer.site-footer { background: var(--meb-foot); color: #fff; margin-top: 3rem; }
.site-footer h2 { font-size: .8rem; color: rgba(255,255,255,.5); font-weight: 700; margin-bottom: .8rem; }
.site-footer a { display: block; color: rgba(255,255,255,.7); text-decoration: none; font-size: .9rem; margin-bottom: .45rem; }
.site-footer a:hover { color: #fff; }
.site-footer .foot-item { display: block; color: rgba(255,255,255,.7); font-size: .9rem; margin-bottom: .45rem; }
.foot-tagline { color: rgba(255,255,255,.6); font-size: .88rem; max-width: 30ch; }
.site-footer .foot-maps { color: rgba(255,255,255,.6); font-size: .75rem; text-decoration: underline; }
.site-footer .foot-maps:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.placeholder-box { border: 2px dashed var(--meb-border); border-radius: 12px; padding: 1.5rem; }
.foot-logo { background: #fff; border-radius: 8px; padding: 6px 10px; display: inline-block; }
.foot-logo img { height: 40px; display: block; }
.foot-legal { font-size: .75rem; color: rgba(255,255,255,.45); }

.empty { text-align: center; color: var(--meb-muted); padding: 3rem 1rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Statistiques : ligne de distance cliquable (vers Mes marches filtrées) */
.row-link { cursor: pointer; }
.row-link:hover > td { background: var(--bs-tertiary-bg, #f3f4f6); }
.row-go { color: var(--bs-secondary-color, #6b7280); margin-left: .35rem; }

/* Lot 6 : challenges et clubs */
.chal-intro { max-width: 70ch; }
.club-year { border: 1px solid var(--bs-border-color, #E8ECF2); border-radius: .5rem; padding: .5rem .9rem; background: #fff; }
.club-year > summary { cursor: pointer; list-style-position: inside; }
.club-year[open] > summary { margin-bottom: .25rem; }
.club-logo { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: #fff; border-radius: .4rem; overflow: hidden; }
.club-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.info-ads .annonce { border: 0; padding: 0; background: none; box-shadow: none; }
.info-ads .annonce + .annonce { margin-top: 1rem; }
.info-ads .min-w-0 { min-width: 0; }
#annonces { scroll-margin-top: calc(var(--meb-hh) + 1rem); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.fb-banner { padding: .6rem 1rem; border-radius: 10px; }
.hero-adv { color: rgba(255,255,255,.8); }
.hero-adv:hover { color: #fff; }
.adv-type { cursor: pointer; user-select: none; }
.btn-check:checked + .adv-type { background: var(--tc); color: var(--tt); }
.btn-check:focus-visible + .adv-type { outline: 2px solid var(--tc); outline-offset: 2px; }
.adv-day { min-width: 2.6rem; font-weight: 700; }
.ad-box { margin: 1.5rem 0; }
.ad-box ins.adsbygoogle { min-height: 250px; }
.ad-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--meb-muted); margin-bottom: .25rem; }
.ad-box:has(ins[data-ad-status='unfilled']) { display: none; }
.annonce-img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.club-about { border-left: 4px solid var(--meb-border); padding: .4rem 0 .4rem 1rem; font-size: 1.02rem; overflow-wrap: anywhere; }
.club-logo-sm { width: 36px; height: 36px; }
.club-logo-lg { width: 96px; height: 96px; border: 1px solid var(--bs-border-color, #E8ECF2); padding: .35rem; }
@media (max-width: 575.98px) { .club-logo-lg { width: 64px; height: 64px; } }
