/* Force Citoyenne – public site styles. Colours come from the role variables in :root. */

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-display: swap;
  font-weight: 200 700;
  src: url('/static/fonts/oswald-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-display: swap;
  font-weight: 200 700;
  src: url('/static/fonts/oswald-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/static/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/static/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Colours by role ("Ardoise" + the logo blue). Rules only use these names, so the palette lives here only. */
  --bg: #ffffff;
  --bg-alt: #f5f4f1;        /* alternate sections */
  --ink: #1d2125;           /* text */
  --muted: #5c636a;         /* secondary text */
  --line: #e4e2dd;          /* borders */
  --field: #c9c6bf;         /* form field borders */
  --brand: #0a6e9f;         /* links, icons: logo blue, deeper so text stays readable */
  --brand-strong: #035f8a;  /* hover */
  --brand-soft: #e6f4fb;    /* tinted backgrounds */
  --accent: #019cdf;        /* the logo blue itself: rules, borders, focus (not for text) */
  --accent-soft: #e6f4fb;
  --accent-ink: #035f8a;    /* text on accent-soft */
  --cta: #0479b0;           /* buttons: logo blue one step deeper (white text needs 4.5:1) */
  --cta-hover: #035f8a;
  --cta-ink: #ffffff;
  --dark: #18262c;          /* footer, dark panels */
  --dark-2: #22343b;
  --dark-rgb: 24 38 44;     /* same as --dark, for the photo overlay */
  --on-dark-accent: #7fd0f4;
  --danger: #b42318;
  --success: #12704a;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(20, 24, 28, 0.05), 0 6px 20px rgba(20, 24, 28, 0.07);
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --container: 1120px;
}

/* ---- Base ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { color: var(--brand-strong); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.container.narrow { width: min(100% - 32px, 760px); }

.visually-hidden,
.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus { top: 12px; color: #fff; }

.icon { display: inline-block; vertical-align: -0.2em; flex: none; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45em;
  font: 600 0.98rem/1.2 var(--font-body);
  padding: 0.72em 1.25em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { font-size: 1.05rem; padding: 0.85em 1.6em; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
.btn-accent { background: var(--cta); color: var(--cta-ink); }
.btn-accent:hover { background: var(--cta-hover); color: var(--cta-ink); }
.btn-light { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-strong); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.35em;
  font-weight: 600; text-decoration: none;
}
.link-arrow .icon { transition: transform 0.15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
/* The official logo, shown as is (never recoloured or redrawn). */
.logo picture { display: block; }
.logo-img { height: 54px; width: auto; }
.site-footer .logo-img { height: 56px; }
@media (max-width: 640px) { .site-header .logo-img { height: 48px; } }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.97rem;
}
.site-nav ul a:hover { background: var(--bg-alt); color: var(--brand-strong); }
.site-nav ul a[aria-current='page'] { color: var(--brand); background: var(--brand-soft); }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px; color: var(--ink); cursor: pointer;
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 12px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px; box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px 14px; border-radius: var(--radius-sm); }
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff;
  min-height: clamp(460px, 72vh, 640px);
  display: flex; align-items: center;
  background: var(--dark);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgb(var(--dark-rgb) / 0.88) 0%, rgb(var(--dark-rgb) / 0.62) 45%, rgb(var(--dark-rgb) / 0.12) 100%);
}
.hero-inner { padding-block: 72px; max-width: var(--container); }
.hero h1 { color: #fff; max-width: 22ch; font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 500; line-height: 1.12; }
.hero h1 .accent { display: block; color: var(--on-dark-accent); font-weight: 600; }
.hero-lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 52ch; opacity: 0.95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.eyebrow {
  display: inline-block; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--on-dark-accent); margin-bottom: 14px;
}
@media (max-width: 640px) {
  /* Phones: let the photo show. Text sits at the bottom on a gradient; the eyebrow and the paragraph are dropped. */
  .hero { min-height: 78svh; align-items: flex-end; }
  .hero-bg { object-position: 62% center; }
  .hero::after { background: linear-gradient(180deg, rgb(var(--dark-rgb) / 0) 30%, rgb(var(--dark-rgb) / 0.55) 55%, rgb(var(--dark-rgb) / 0.92) 100%); }
  .hero-inner { padding-block: 0 32px; }
  .hero .eyebrow, .hero-lead { display: none; }
  .hero h1 { font-size: 2rem; margin-bottom: 0; }
  .hero-actions { margin-top: 20px; flex-wrap: nowrap; }
  .hero-actions .btn { flex: 1; padding-inline: 0.8em; font-size: 0.98rem; }
}

/* Page header: light and compact, so the content starts high on a phone. */
.page-hero {
  background: var(--bg-alt); border-bottom: 1px solid var(--line);
  padding: 40px 0 32px;
}
.page-hero h1 { margin-bottom: 8px; }
.page-hero h1::after { content: ''; display: block; width: 40px; height: 3px; margin-top: 12px; background: var(--accent); border-radius: 2px; }
.page-hero .lead { max-width: 70ch; font-size: 1.1rem; color: var(--muted); margin: 0; }
.page-hero .breadcrumbs { color: var(--muted); }
@media (max-width: 640px) {
  .page-hero { padding: 18px 0 18px; }
  .page-hero h1 { font-size: 1.8rem; margin: 0; }
  .page-hero h1::after { margin-top: 8px; }
  .page-hero .lead, .page-hero .breadcrumbs { display: none; } /* the title is enough on a phone */
}

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; font-size: 0.9rem; }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; opacity: 0.6; }
.breadcrumbs a { color: inherit; opacity: 0.85; }
.page-hero .breadcrumbs { position: relative; z-index: 1; }

/* ---- Sections ------------------------------------------------------------ */
.section { padding: clamp(40px, 5.5vw, 64px) 0; }
.section-alt { background: var(--bg-alt); }
.section-title { position: relative; padding-bottom: 14px; margin-bottom: 28px; }
.section-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--accent); border-radius: 2px; }
.section-title.center { text-align: center; }
.section-title.center::after { left: 50%; transform: translateX(-50%); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 8px; }

.intro-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.intro-text p { font-size: 1.15rem; }
.values-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.values-strip li { background: var(--bg-alt); border-radius: var(--radius); padding: 18px; border-left: 3px solid var(--accent); }
.values-strip strong { display: block; font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.values-strip span { font-size: 0.95rem; color: var(--muted); }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 420px) { .values-strip { grid-template-columns: 1fr; } }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.feature p { color: var(--muted); flex: 1; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--brand-soft); color: var(--brand);
}
.feature-icon .icon { width: 26px; height: 26px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---- Cards --------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card-media { display: block; aspect-ratio: 16 / 10; background: var(--bg-alt); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover .card-media img { transform: scale(1.03); }
.card-media-fallback { width: 100%; height: 100%; display: grid; place-items: center; }
.card-media-fallback .logo-img { width: 140px; height: auto; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 0.88rem; color: var(--muted); margin-bottom: 8px; }
.card-title { font-size: 1.3rem; margin-bottom: 8px; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--brand); }
.card-title a::after { content: ''; position: absolute; inset: 0; }
.card { position: relative; }
.card-meta a, .card-media { position: relative; z-index: 1; }
.card-text { color: var(--muted); font-size: 0.98rem; margin: 0; }

.tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none;
}
.tag-soft { background: var(--brand-soft); color: var(--brand-strong); }
.tag-danger { background: #fde8e7; color: var(--danger); }

/* Events */
.event-list { display: grid; gap: 18px; }
.event-card { flex-direction: row; }
.event-date {
  flex: none; width: 96px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-family: var(--font-head);
}
.event-day { font-size: 2.2rem; font-weight: 700; line-height: 1; }
.event-month { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem; }
.event-when, .event-where { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 4px; font-size: 0.95rem; color: var(--ink); }
.event-when .icon, .event-where .icon { color: var(--brand); margin-top: 3px; }
.event-card .card-text { margin-top: 6px; }
.event-card.is-cancelled .card-title a { text-decoration: line-through; }
.is-past .event-date { background: var(--muted); }
@media (max-width: 520px) { .event-date { width: 72px; } .event-day { font-size: 1.7rem; } }

/* Partners */
.partner-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px; }
.partner-list img { height: 84px; width: auto; max-width: 180px; object-fit: contain; filter: grayscale(1); opacity: 0.8; transition: filter 0.2s, opacity 0.2s; }
.partner-list a:hover img, .partner-list img:hover { filter: none; opacity: 1; }

/* CTA band */
/* Soft call-to-action card (a full yellow band was too loud next to the dark footer) */
.cta-band { padding: 0 0 clamp(40px, 5.5vw, 64px); background: var(--bg); }
.section-alt + .cta-band { background: var(--bg-alt); }
.section-alt + .cta-band .cta-inner { background: var(--bg); }
.cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  background: var(--bg-alt); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 28px 32px;
}
.cta-band h2 { margin-bottom: 6px; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.cta-band p { margin: 0; max-width: 60ch; color: var(--muted); }

/* ---- Mission ------------------------------------------------------------- */
.lead-text { font-size: 1.25rem; color: var(--ink); }
.mission-intro .narrow p:last-child { margin-bottom: 0; }

/* Objectives: three cards */
.objective-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.objective { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 22px; }
.objective-num { display: block; font: 600 1rem var(--font-head); letter-spacing: 0.08em; color: var(--accent-ink); margin-bottom: 10px; }
.objective h3 { font-size: 1.3rem; }
.objective p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .objective-grid { grid-template-columns: 1fr; gap: 14px; } .objective { padding: 20px; } }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.value-letter {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  border: 3px solid var(--accent); font: 700 1.4rem var(--font-head); color: var(--ink); margin-bottom: 14px;
}
.value-card p { color: var(--muted); margin: 0; }
@media (max-width: 960px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values-grid { grid-template-columns: 1fr; } }

/* ---- Team ---------------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.member { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.member-photo { aspect-ratio: 4 / 4.2; background: var(--bg-alt); overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.member-initials { width: 100%; height: 100%; display: grid; place-items: center; font: 700 3rem var(--font-head); color: var(--brand); }
.member-body { padding: 20px 22px 24px; }
.member-name { font-size: 1.45rem; margin-bottom: 2px; }
.member-role { color: var(--brand); font-weight: 600; margin-bottom: 8px; }
.member-location { color: var(--muted); font-size: 0.92rem; display: flex; align-items: center; gap: 4px; }
.member-bio summary { cursor: pointer; font-weight: 600; color: var(--brand); margin: 6px 0; }
.member-bio p { font-size: 0.97rem; color: var(--ink); }
.member-quote { margin: 14px 0 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--bg-alt); font-style: italic; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.97rem; }
.member-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-weight: 600; text-decoration: none; }

/* ---- Reports ------------------------------------------------------------- */
.report-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.report { display: flex; gap: 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; align-items: flex-start; }
.report-cover { flex: none; width: 120px; }
.report-cover img { border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.report-title { font-size: 1.5rem; }
.report-period { color: var(--muted); font-weight: 500; }
.report-body .btn { margin: 4px 8px 0 0; }
.report-size { font-weight: 400; opacity: 0.85; }
@media (max-width: 560px) { .report { flex-direction: column; } .report-cover { width: 96px; } }

/* ---- Blog ---------------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem; background: #fff;
}
.chip:hover { border-color: var(--brand); }
.chip[aria-current='page'] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-count { font-size: 0.8rem; opacity: 0.75; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; }
.pagination-info { color: var(--muted); }

.post-header { padding: 48px 0 24px; background: var(--bg-alt); }
.post-header h1 { margin-bottom: 14px; }
.post-header .breadcrumbs { color: var(--muted); }
.post-meta { color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.post-cover { margin: 0; background: linear-gradient(var(--bg-alt) 50%, #fff 50%); padding-bottom: 8px; }
.post-cover img { width: auto; max-width: 100%; max-height: 560px; margin-inline: auto; object-fit: cover; border-radius: var(--radius); }
.post-content { padding: 32px 0 8px; }
.post-footer { border-top: 1px solid var(--line); margin: 32px 0 56px; padding-top: 20px; }
.share-label { font-weight: 600; margin-bottom: 8px; }
.share { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.share a { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: 0.92rem; }
.share a:hover { border-color: var(--brand); }

.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.35em; }
.prose img { border-radius: var(--radius-sm); margin: 1.2em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font-style: italic; color: var(--ink); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-sm); }
.prose table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: 0.97rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose figure { margin: 1.2em 0; }
.prose figcaption { color: var(--muted); font-size: 0.9rem; }

/* ---- Event page ---------------------------------------------------------- */
.event-page .lead { font-size: 1.2rem; color: var(--muted); }
.event-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; padding: 36px 0 72px; align-items: start; }
.event-cover { margin: 0 0 28px; }
.event-cover img { border-radius: var(--radius); width: auto; max-width: 100%; }
.event-sidebar { position: sticky; top: 96px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.event-facts { margin: 0 0 20px; display: grid; gap: 16px; }
.event-facts dt { font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.event-facts dt .icon { color: var(--brand); }
.event-facts dd { margin: 4px 0 0; }
.event-actions { display: grid; gap: 10px; }
.guests { margin-top: 40px; }
.guest-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.guest { display: flex; gap: 14px; align-items: center; background: var(--bg-alt); border-radius: var(--radius); padding: 14px; }
.guest-photo, .guest-initials { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.guest-initials { display: grid; place-items: center; background: var(--brand); color: #fff; font: 700 1.3rem var(--font-head); }
.guest-name { display: block; }
.guest-role { display: block; font-size: 0.92rem; color: var(--ink); }
.guest-kind { display: block; font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.recap { margin-top: 40px; background: var(--brand-soft); border-radius: var(--radius); padding: 20px 24px; }
@media (max-width: 960px) { .event-layout { grid-template-columns: 1fr; } .event-sidebar { position: static; order: -1; } }

/* ---- Alerts & forms ------------------------------------------------------ */
.alert { border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 16px; }
.alert-success { background: #e7f6ee; color: var(--success); border: 1px solid #b7e2c8; }
.alert-success h2 { color: var(--success); }
.alert-danger { background: #fde8e7; color: var(--danger); font-weight: 600; }
.alert-info { background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }

.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.contact-aside { background: var(--bg-alt); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 0 0 var(--radius) var(--radius); padding: 26px 28px; }
.contact-aside h2 { font-size: 1.5rem; }
.contact-aside a { color: var(--brand); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { color: var(--brand); margin-top: 3px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.req { color: var(--danger); }
.field input, .field textarea, .newsletter-form input {
  width: 100%; font: inherit; color: inherit;
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--field); background: #fff;
}
.field input:focus, .field textarea:focus { outline: 3px solid var(--brand-soft); border-color: var(--brand); }
.has-error input, .has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.9rem; margin: 6px 0 0; }
.form-note { color: var(--muted); font-size: 0.9rem; }
.form-ok { color: #b9f0cf; font-weight: 600; }
.form-error { color: #ffc9c4; font-weight: 600; }

.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-form input { flex: 1 1 200px; color: var(--ink); }
.newsletter-form input::placeholder { color: var(--muted); opacity: 1; }

.empty { color: var(--muted); font-size: 1.1rem; }
.empty-box { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; }
.empty-box p:last-child { margin: 0; }

.error-page { text-align: center; }
.error-code { font: 700 5rem/1 var(--font-head); color: var(--accent); margin-bottom: 8px; }

/* ---- Footer -------------------------------------------------------------- */
/* Light footer: warm grey, dark text, a thin logo-blue line on top. */
.site-footer { background: var(--bg-alt); color: var(--ink); border-top: 3px solid var(--accent); padding-top: 48px; font-size: 0.97rem; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--brand); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1.5fr 1.5fr; gap: 36px; padding-bottom: 36px; }
.footer-brand p { margin-top: 14px; color: var(--muted); }
.footer-title { font-size: 1.05rem; color: var(--ink); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-links, .footer-contact, .social { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; word-break: break-word; }
.footer-contact .icon { color: var(--brand); margin-top: 3px; }
.social { display: flex; gap: 10px; }
.social a, .social span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); color: var(--ink); }
.social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.social span { opacity: 0.45; cursor: default; } /* network not set up yet */
.site-footer .newsletter-form input { border: 1px solid var(--field); }
.site-footer .form-ok { color: var(--success); }
.site-footer .form-error { color: var(--danger); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--line); padding: 18px 0 26px; font-size: 0.88rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.footer-sep { opacity: 0.6; }
.footer-bottom a, .footer-bottom .link-button { color: var(--muted); }
.footer-bottom a:hover, .footer-bottom .link-button:hover { color: var(--brand); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Cookie banner ------------------------------------------------------- */
.cookie-banner {
  position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px;
  max-width: 560px; margin-left: auto;
  background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: 0 10px 40px rgb(var(--dark-rgb) / 0.25);
  padding: 20px 22px; border-top: 3px solid var(--accent);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 14px; font-size: 0.95rem; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }


/* Text alignment from the editor (classes, not inline styles: the public CSP forbids inline styles) */
.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }
.align-justify { text-align: justify; }
