/* ADL Grimbergen — mobile-first, light/dark, large type. Palette from the son's prototype. */
:root {
  --primary: #1d4d8f; --primary-ink: #ffffff; --accent: #8a6414;
  --bg: #ffffff; --bg-soft: #f4f7fb; --card: #ffffff; --text: #1f2937; --muted: #4b5563; --border: #d5dde6;
  --focus: #d6a94f; --shadow: 0 8px 24px rgba(0,0,0,.06);
  --fs: 1.25rem; /* 20px base */
}
html[data-size="1"] { --fs: 1.45rem; }
html[data-size="2"] { --fs: 1.7rem; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) { --primary: #8db4ec; --primary-ink: #0b1a2e; --accent: #e3bf63; --bg: #0f172a; --bg-soft: #16213a; --card: #16213a; --text: #f1f5f9; --muted: #cbd5e1; --border: #2f3d57; --shadow: none; }
}
html[data-theme="dark"] { --primary: #8db4ec; --primary-ink: #0b1a2e; --accent: #e3bf63; --bg: #0f172a; --bg-soft: #16213a; --card: #16213a; --text: #f1f5f9; --muted: #cbd5e1; --border: #2f3d57; --shadow: none; }
@media (prefers-contrast: more) { :root { --border: #000; --muted: var(--text); } }

* { box-sizing: border-box; }
html { font-size: var(--fs); scroll-padding-top: 11rem; /* fallback; site.js sets the real header height */ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 1rem; line-height: 1.55; color: var(--text); background: var(--bg); }
.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1rem; }
a { color: var(--primary); text-decoration-thickness: .08em; text-underline-offset: .15em; }
a:hover { text-decoration-thickness: .15em; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; color: var(--primary); margin: 0 0 .6em; }
h1 { font-size: 2rem; } h2 { font-size: 1.6rem; margin-top: 0; } h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: 38em; }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--primary); color: var(--primary-ink); padding: .6em 1em; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--border); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .5rem; padding-bottom: .4rem; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: .6rem; font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.brand img { width: 2.2rem; height: 2.2rem; border-radius: 50%; }
.tools { display: flex; gap: .4rem; }
.tool { font: inherit; font-weight: 700; min-width: 2.8rem; min-height: 2.8rem; border: 2px solid var(--border); background: var(--card); color: var(--text); border-radius: .6rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .05em; }
.tool:hover { border-color: var(--primary); }
.tool-plus { font-size: .7em; align-self: flex-start; }
.menu { list-style: none; margin: 0; padding: 0 0 .5rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.menu li { flex: 0 0 auto; }
.menu a { display: inline-block; padding: .5em .9em; border-radius: .6rem; text-decoration: none; font-weight: 600; background: var(--bg-soft); min-height: 2.6rem; }
.menu a:hover, .menu a[aria-current] { background: var(--primary); color: var(--primary-ink); }

main { padding-top: 1.5rem; }
.sec { padding: 2rem 0 1rem; border-top: 1px solid var(--border); }
.hero { padding: 1rem 0 2rem; }
.hero h1 { font-size: 2.1rem; max-width: 20em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.next { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 1rem; padding: 1rem; margin: 1.2rem 0; }
.next-label { margin: 0 0 .4rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn { display: inline-block; background: var(--primary); color: var(--primary-ink); font-weight: 700; padding: .75em 1.3em; border-radius: .7rem; text-decoration: none; min-height: 3rem; border: 2px solid var(--primary); }
.btn:hover { filter: brightness(1.1); }
.btn-secondary { background: transparent; color: var(--primary); }

.acts { display: grid; gap: 1rem; }
.act { display: grid; grid-template-columns: 4.2rem 1fr; gap: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1rem; box-shadow: var(--shadow); }
.act-featured { background: transparent; box-shadow: none; padding: .4rem 0 0; border: 0; }
.act-date { text-align: center; background: var(--primary); color: var(--primary-ink); border-radius: .8rem; padding: .5rem .2rem; align-self: start; line-height: 1.05; }
.act-day { display: block; font-size: 1.7rem; font-weight: 800; }
.act-month { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.act-when { margin: 0 0 .3rem; color: var(--muted); font-size: .95rem; }
.act-when time::first-letter { text-transform: uppercase; }
.act-title { margin: 0 0 .4rem; font-size: 1.25rem; color: var(--text); }
.act-speaker { margin: 0 0 .3rem; }
.act-cred { color: var(--muted); }
.act-note { font-weight: 700; color: var(--accent); margin: .2rem 0; }
.act-desc p { margin: .5rem 0 0; }
.act-foto { margin-top: .8rem; max-width: 100%; height: auto; border-radius: .6rem; }
.badge { display: inline-block; background: var(--accent); color: var(--bg); font-size: .8rem; font-weight: 700; padding: .1em .6em; border-radius: 1em; vertical-align: middle; }
details.past { margin-top: 1.2rem; border: 1px solid var(--border); border-radius: 1rem; padding: .6rem 1rem; }
details.past summary { cursor: pointer; font-weight: 700; padding: .5rem 0; color: var(--primary); }
details.past .acts { margin: .5rem 0 .5rem; }
.print-hint { margin-top: 1rem; }

.facts { display: grid; gap: .9rem; margin: 0 0 1rem; }
.facts div { display: grid; grid-template-columns: 8rem 1fr; gap: .5rem; }
.facts dt { font-weight: 700; color: var(--muted); }
.facts dd { margin: 0; }
.notice { background: var(--bg-soft); border-left: .4rem solid var(--accent); padding: .8rem 1rem; border-radius: .5rem; margin: 0 0 1rem; max-width: 40em; }
.notice p:last-child { margin: 0; }
.themes { columns: 2; gap: 2rem; padding-left: 1.2em; max-width: 40em; }
.themes li { break-inside: avoid; margin-bottom: .3em; }
.board { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .5rem 1.5rem; }
.board li { display: flex; flex-direction: column; padding: .4rem 0; border-bottom: 1px dashed var(--border); }
.board span { color: var(--muted); font-size: .95rem; }
.contacts { list-style: none; padding: 0; display: grid; gap: .8rem; max-width: 40em; }
.contacts li { display: grid; grid-template-columns: 8rem 1fr; gap: .2rem .6rem; align-items: baseline; padding: .8rem 1rem; background: var(--card); border: 1px solid var(--border); border-radius: .8rem; }
.contacts .c-role { font-weight: 700; color: var(--muted); }
.contacts a { font-weight: 700; font-size: 1.1rem; word-break: break-all; grid-column: 2; }
.foot { margin-top: 3rem; border-top: 1px solid var(--border); padding: 1.5rem 0 2rem; font-size: .95rem; }
.foot p { max-width: none; }

@media (min-width: 40rem) {
  .hero h1 { font-size: 2.6rem; }
  .facts div { grid-template-columns: 10rem 1fr; }
  .act { grid-template-columns: 5rem 1fr; }
}
@media (max-width: 30rem) {
  .facts div, .contacts li { grid-template-columns: 1fr; }
  .contacts a { grid-column: 1; }
  .themes { columns: 1; }
}
@media print {
  .top, .tools, .hero-actions, .print-hint, .foot a, details.past, .skip { display: none !important; }
  html { font-size: 12pt; } body { color: #000; background: #fff; }
  .act { break-inside: avoid; border: 1px solid #999; box-shadow: none; }
  .act-date { background: #eee; color: #000; }
  a { color: #000; text-decoration: none; }
}

/* --- marketing layer (P4 review) --- */
.hero-grid { display: grid; gap: 1.5rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; font-weight: 700; color: var(--accent); margin: 0 0 .5rem; }
.hero-visual { max-width: 22rem; margin: 0 auto; width: 100%; }
.hero-art { aspect-ratio: 1; }
.hero-img { width: 100%; height: auto; border-radius: 1.2rem; object-fit: cover; aspect-ratio: 3/2; box-shadow: var(--shadow); }
.stats { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.stats li { background: var(--card); border: 1px solid var(--border); border-radius: .9rem; padding: .8rem 1rem; display: flex; flex-direction: column; }
.stats strong { font-size: 1.6rem; color: var(--primary); line-height: 1.1; }
.stats span { color: var(--muted); font-size: .9rem; }
.why { background: var(--bg-soft); border-radius: 1.2rem; padding: 1.8rem 1.2rem; margin-top: 1rem; border: 0; }
.why-grid { display: grid; gap: 1.2rem; }
.why-item h3 { margin: .3rem 0 .3rem; color: var(--text); }
.why-item p { margin: 0; color: var(--muted); }
.why-icon { display: inline-flex; width: 2.6rem; height: 2.6rem; align-items: center; justify-content: center; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-size: 1.3rem; }
.quotes-grid { display: grid; gap: 1rem; }
blockquote { margin: 0; padding: 1rem 1.2rem; border-left: .4rem solid var(--accent); background: var(--card); border-radius: .6rem; font-size: 1.1rem; }
blockquote footer { color: var(--muted); font-size: .95rem; margin-top: .4rem; }
.act-speaker { display: flex; gap: .7rem; align-items: flex-start; }
.avatar { flex: 0 0 auto; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--bg-soft); border: 2px solid var(--border); color: var(--primary); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; letter-spacing: .02em; }
.act-media { grid-column: 1 / -1; }
.act-foto { width: 100%; height: auto; max-height: 22rem; object-fit: cover; border-radius: .8rem; margin-top: .3rem; }
.over-grid { display: grid; gap: 1.2rem; align-items: start; }
.over-img { width: 100%; height: auto; border-radius: 1rem; }
@media (min-width: 40rem) {
  .hero-grid { grid-template-columns: 1.4fr 1fr; }
  .stats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .quotes-grid { grid-template-columns: repeat(2, 1fr); }
  .act-has-foto { grid-template-columns: 5rem 1fr 14rem; }
  .act-has-foto .act-media { grid-column: 3; grid-row: 1; }
  .act-has-foto .act-foto { aspect-ratio: 1; margin: 0; }
  .over-grid { grid-template-columns: 1.3fr 1fr; }
}

.hero-fig, .fig { margin: 0; }
.credit { font-size: .75rem; color: var(--muted); margin-top: .35rem; }
.credit a { color: var(--muted); }
.prak-grid { display: grid; gap: 1.2rem; align-items: start; }
@media (min-width: 40rem) { .prak-grid { grid-template-columns: 1.3fr 1fr; } .hero-visual { max-width: none; } }

img, svg, video { max-width: 100%; }
.wrap, .sec, .hero { min-width: 0; }

/* --- mobile robustness: safe at every size --- */
.act, .act-body, .act-speaker > span, .hero-text, .prog-head > div, .why-item, .contacts li, .facts div, .stats li, .board li, .next, .top-inner > * { min-width: 0; }
.act-speaker > span:not(.avatar) { display: block; flex: 1 1 0; min-width: 0; }
.act-speaker > .avatar { flex: 0 0 auto; }
.act-cred { display: block; }
.nowrap { white-space: nowrap; }
img { height: auto; }
/* --- mobile only (≤ 40rem): nothing below changes desktop --- */
@media (max-width: 40rem) {
  .act-featured, .next .act { padding: .4rem 0 0; }
  .act-title, h1, h2, h3, .act-speaker strong, .act-cred, .contacts a, .brand span { overflow-wrap: anywhere; hyphens: auto; }
  .brand span { white-space: normal; }
  .brand { min-width: 0; flex: 1 1 auto; }
  .top-inner { flex-wrap: nowrap; }
  .tools { flex: 0 0 auto; }
  .tool { min-width: 2.6rem; min-height: 2.6rem; }
  html[data-size="1"] { --fs: 1.35rem; } html[data-size="2"] { --fs: 1.5rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .act { grid-template-columns: 3.6rem minmax(0, 1fr); gap: .8rem; }
  .act-has-foto { grid-template-columns: 3.6rem minmax(0, 1fr); }
  .act-has-foto .act-media { grid-column: 1 / -1; grid-row: auto; }
  .act-has-foto .act-foto { aspect-ratio: 16 / 10; }
  .prog-head { grid-template-columns: minmax(0, 1fr); }
  .prog-head .campagne, .campagne { justify-self: start; max-width: 100%; width: 100%; height: auto; margin-top: .5rem; }
  .hero h1 { font-size: 2rem; }
  .board { grid-template-columns: minmax(0, 1fr); }
  .themes { columns: 1; }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .stats strong { font-size: 1.5rem; }
  .facts div, .contacts li { grid-template-columns: minmax(0, 1fr); }
  .contacts a { grid-column: 1; }
  .sfeer-grid img { min-width: 0; }
}
@media print {
  .hero-visual, .sfeer, .why, .campagne, .stats, .next, .hero-actions, .quotes, .over-img, .fig, .act-media, .avatar, .menu, .tools { display: none !important; }
  .hero, .hero-photo, .hero-foto { background: none !important; color: #000 !important; margin: 0 !important; padding: 0 0 1rem !important; min-height: 0 !important; }
  .hero h1, .hero .lead, .hero .eyebrow { color: #000 !important; text-shadow: none !important; animation: none !important; }
  .hero-grid { display: block !important; }
  .sec { border: 0 !important; padding: 1rem 0 0 !important; break-inside: auto; }
  h2 { color: #000 !important; font-size: 16pt !important; } h2::after, h2::before { display: none !important; }
  .act { grid-template-columns: 3.2rem 1fr !important; border: 0 !important; border-bottom: 1px solid #999 !important; border-radius: 0 !important; box-shadow: none !important; padding: .4rem 0 !important; background: none !important; }
  .act-date { background: #eee !important; color: #000 !important; border-radius: .3rem !important; }
  .act-title, .act-speaker strong { color: #000 !important; } .act-when, .act-cred { color: #333 !important; }
  .badge { background: #ddd !important; color: #000 !important; }
  .notice { background: none !important; border: 1px solid #999 !important; }
  .foot { border: 0 !important; background: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #333; }
}

/* --- landscape phones: short screens (≤ 520px high) held sideways --- */
@media (orientation: landscape) and (max-height: 520px) {
  .top { position: static; }
  .top-inner { padding-top: .35rem; padding-bottom: .2rem; }
  .brand { font-size: .95rem; } .brand img { width: 1.7rem; height: 1.7rem; }
  .tool { min-width: 2.2rem; min-height: 2.2rem; font-size: .9rem; }
  .menu { padding-bottom: .4rem; gap: .15rem; }
  .menu a { padding: .3em .7em; min-height: 2.1rem; font-size: .9rem; }
  main { padding-top: .75rem; }
  .stats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sfeer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 7rem; }
  .hero h1 { font-size: 1.9rem; }
  .lead { font-size: 1rem; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem; padding: 0 1rem; }
  .top-inner, .top nav { max-width: none; margin: 0; padding-left: 0; padding-right: 0; width: auto; }
  .top-inner { flex: 0 0 auto; gap: .6rem; }
  .top nav { flex: 1 1 auto; }
  .menu { padding: .2rem 0; justify-content: flex-end; }
}
@media (orientation: landscape) and (max-height: 520px) and (max-width: 900px) {
  .brand span { display: none; }
  .menu a { font-size: .85rem; padding: .25em .55em; }
  .tools { gap: .25rem; } .tool { min-width: 2rem; min-height: 2rem; }
}
@media (orientation: landscape) and (max-height: 520px) and (max-width: 700px) {
  .menu { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .menu a { font-size: .8rem; padding: .25em .5em; white-space: nowrap; }
}

/* text-size buttons: disabled state at the bounds */
.tool:disabled { opacity: .4; cursor: default; }
.tool:disabled:hover { border-color: var(--border); }
/* membership steps: a real sequence, so numbered */
.steps { list-style: none; counter-reset: stap; padding: 0; margin: .4rem 0 1.4rem; display: grid; gap: .8rem; max-width: 40em; }
.steps li { counter-increment: stap; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .8rem; align-items: start; }
.steps li::before { content: counter(stap); display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-weight: 800; }
@media print { .steps li::before { background: #eee !important; color: #000 !important; } }
/* portrait phones: three header buttons + brand on one line */
@media (max-width: 40rem) {
  .brand { gap: .45rem; }
  .brand img { width: 1.9rem; height: 1.9rem; }
  .brand span { white-space: nowrap; overflow-wrap: normal; hyphens: none; font-size: .82rem; }
  .tools { gap: .25rem; }
  .tool { min-width: 2.25rem; min-height: 2.25rem; font-size: .9rem; }
}
@media (max-width: 26rem) { html[data-size="2"] .brand span { display: none; } } /* largest text on narrow phones: logo only */
@media (max-width: 20rem) { .brand span { display: none; } }

/* contact links rendered by site.js; reserve the space so nothing shifts */
.obf { display: inline-block; min-width: 8ch; color: var(--muted); }
.contacts .c-link { font-weight: 700; font-size: 1.1rem; word-break: break-all; grid-column: 2; }
@media (max-width: 40rem) { .contacts .c-link { grid-column: 1; } }
.notice-warn { border-left-color: var(--primary); margin-top: 1rem; }

/* three figures on a phone: one row of three instead of 2 + 1 */
@media (max-width: 40rem) { .stats:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; } .stats:has(> li:nth-child(3):last-child) span { font-size: .8rem; } .stats:has(> li:nth-child(3):last-child) strong { font-size: min(1.5rem, 6.4vw); } }
