:root {
  --black: #141414;
  --ink: #222222;
  --muted: #686d66;
  --line: #dfdfd6;
  --paper: #fbfaf6;
  --soft: #f1f4ee;
  --white: #ffffff;
  --red: #b92f2b;
  --green: #2f6f4e;
  --deep: #24392f;
  --shadow: 0 20px 55px rgba(20, 20, 20, 0.1);
  --radius: 8px;
  --shell: min(1140px, calc(100% - 44px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

body.page-ready main {
  animation: pageFadeIn 240ms ease-out both;
}

body.page-leaving main {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body.page-ready main,
  body.page-leaving main {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

a { color: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  width: auto; height: auto; left: 16px; top: 16px; padding: 10px 14px;
  background: var(--white); clip: auto; z-index: 20;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 246, 0.95);
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  backdrop-filter: blur(14px);
}
.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav.shell {
  width: min(1320px, calc(100% - 44px));
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 360px;
  text-decoration: none;
}
.brand-mark {
  width: 46px;
  height: 46px;
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid var(--black);
  background: linear-gradient(180deg, #111 0 33.333%, #fff 33.333% 66.666%, #178b49 66.666% 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 58%;
  height: 100%;
  background: #d71920;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.brand-mark span {
  position: absolute;
  inset: 0;
}
.brand strong {
  display: block;
  max-width: 300px;
  line-height: 1.12;
  font-size: 0.92rem;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}
.nav-panel { display: flex; align-items: center; gap: 10px; }
.nav-panel a {
  text-decoration: none;
  font-weight: 800;
  font-size:  0.86rem;
}
.nav-panel a:hover, .nav-panel a[aria-current="page"] { color: var(--green); }
.language-switch, .nav-toggle {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
}
.language-switch { min-width: 48px; min-height: 38px; border-radius: 999px; font-weight: 900; }
.header-logo-bubble {
  position: static;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  transform: none;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--black);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(20, 20, 20, 0.12);
}
.header-logo-bubble img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  place-items: center;
  gap: 4px;
  padding: 10px;
}
.nav-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; background: var(--black); }

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}
.hero-media {
  position: absolute;
  inset: 0;
  opacity: 0.54;
  background:
    linear-gradient(135deg, rgba(185, 47, 43, 0.22), rgba(47, 111, 78, 0.22)),
    repeating-linear-gradient(45deg, #242424 0 16px, #303030 16px 32px);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 20, 20, 0.88), rgba(20, 20, 20, 0.22));
}
.hero-content {
  position: relative;
  padding: 120px 0 110px;
}
.hero h1, .page-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}
.page-hero h1 {
  margin-bottom: 22px;
}
.hero p:not(.eyebrow), .page-hero p {
  max-width: 670px;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.86);
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.hero .eyebrow, .page-hero .eyebrow { color: #d4f0df; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 900;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
}
.button.primary { background: var(--red); color: var(--white); border-color: var(--red); }
.button.secondary { background: rgba(255, 255, 255, 0.12); color: var(--white); border-color: rgba(255, 255, 255, 0.42); }

.section { padding: 112px 0; }
.section.compact { padding: 76px 0; }
.muted { background: var(--soft); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 42px;
}
.section-head-text { max-width: 720px; }
h2 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}
h3 { margin: 0 0 12px; font-size: 1.35rem; line-height: 1.2; }
p { margin-top: 0; }

.page-hero {
  background: var(--black);
  color: var(--white);
  padding: 112px 0 96px;
}
.page-hero .shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 56px;
  align-items: end;
}
.legal-hero .shell {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
  text-align: center;
}
.legal-hero p {
  margin-inline: auto;
}
.breadcrumb {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 800;
}

.intro-grid, .feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-grid.two { grid-template-columns: repeat(2, 1fr); }
.feature {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.metric {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-weight: 900;
}

.engagement-page .page-hero {
  padding-bottom: 78px;
}

.engagement-section {
  background: linear-gradient(180deg, var(--paper) 0%, var(--soft) 100%);
}

.engagement-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1.26fr);
  gap: 34px;
  align-items: start;
}

.engagement-intro {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(20, 20, 20, 0.06);
}

.engagement-intro h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.engagement-intro p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.engagement-intro .button {
  justify-self: start;
}

.engagement-cards {
  display: grid;
  gap: 18px;
}

.engagement-card {
  min-height: 188px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.engagement-card:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 111, 78, 0.32);
  box-shadow: 0 18px 40px rgba(20, 20, 20, 0.09);
}

.engagement-card h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
}

.engagement-card p {
  max-width: 680px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 70px;
  align-items: center;
}
.media-box {
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(185, 47, 43, 0.16), rgba(47, 111, 78, 0.22)),
    repeating-linear-gradient(45deg, #f8f8f4 0 14px, #ededE6 14px 28px);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
  padding: 22px;
}
.media-box.small { min-height: 210px; border-radius: var(--radius) var(--radius) 0 0; }

.content-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transform: translateY(0) scale(1);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  will-change: transform;
}

.news-card:hover,
.news-card:focus-visible {
  transform: translateY(-3px) scale(1.018);
  border-color: rgba(47, 111, 78, 0.35);
  box-shadow: 0 18px 42px rgba(20, 20, 20, 0.12);
  outline: none;
}

.news-card:focus-visible {
  outline: 3px solid rgba(47, 111, 78, 0.26);
  outline-offset: 4px;
}

.news-card-body { padding: 22px; }
.news-card time {
  display: block;
  margin: 8px 0;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 900;
}
.tag {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--deep);
  font-size: 0.76rem;
  font-weight: 900;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-grid.full { grid-template-columns: repeat(3, 1fr); }
.gallery-item {
  min-height: 320px;
  position: relative;
  display: grid;
  align-content: end;
  padding: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  background: repeating-linear-gradient(45deg, #e8eee7 0 14px, #f8f8f4 14px 28px);
  color: var(--white);
}
.gallery-item strong {
  display: block;
  font-size: 1.16rem;
  line-height: 1.22;
}
.gallery-item small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.35;
}
.gallery-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.gallery-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.04), rgba(20, 20, 20, 0.86));
}
.gallery-text {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 9px;
}
.gallery-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}
.gallery-page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.gallery-page-button {
  min-width: 42px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.gallery-page-button:hover,
.gallery-page-button:focus-visible,
.gallery-page-button.is-active {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
  transform: translateY(-1px);
}
.gallery-page-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}
.value-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.value-list span {
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 900;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
  gap: 70px;
  align-items: start;
}
.contact-section { background: var(--deep); color: var(--white); }
.contact-section .eyebrow { color: #d4f0df; }
address { font-style: normal; color: rgba(255, 255, 255, 0.82); }
.contact-form, .admin-panel {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.contact-form { display: grid; gap: 15px; }
label { display: grid; gap: 7px; font-weight: 800; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  font: inherit;
}
textarea { resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.consent input { width: auto; margin-top: 6px; }
.form-status { min-height: 24px; margin: 0; color: var(--green); font-weight: 900; }

.legal-band, .footer { background: var(--black); color: var(--white); }
.legal-band { padding: 56px 0; }
.legal-page {
  background: var(--paper);
}
.legal-content {
  max-width: 860px;
}
.legal-content article {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.legal-content article:last-child {
  border-bottom: 0;
}
.legal-content h2 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}
.legal-content p,
.legal-content li {
  color: var(--muted);
}
.legal-content ul {
  margin: 0;
  padding-left: 20px;
}
.footer { padding: 54px 0 28px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(150px, 1fr));
  gap: 34px;
  align-items: start;
}
.footer-brand {
  display: grid;
  gap: 14px;
  max-width: 360px;
}
.footer-brand strong {
  font-size: 1.12rem;
  line-height: 1.25;
}
.footer-brand p,
.footer-contact,
.legal-band p {
  color: rgba(255, 255, 255, 0.72);
}
.footer-column {
  display: grid;
  gap: 12px;
}
.footer-column h2 {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d4f0df;
}
.footer-links {
  display: grid;
  gap: 9px;
}
.footer a {
  color: rgba(255, 255, 255, 0.82);
}
.footer a:hover {
  color: var(--white);
}
.footer-contact {
  display: grid;
  gap: 7px;
  font-style: normal;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.admin-main { padding: 70px 0; background: var(--soft); }
.admin-layout {
  display: grid;
  grid-template-columns: 320px 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.admin-layout.single {
  max-width: 620px;
  grid-template-columns: 1fr;
}

.admin-panel h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.admin-error {
  padding: 12px 14px;
  border: 1px solid rgba(185, 47, 43, 0.28);
  border-radius: var(--radius);
  background: rgba(185, 47, 43, 0.08);
  color: var(--red);
  font-weight: 800;
}

.admin-table-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.admin-panel form, .admin-list { display: grid; gap: 12px; }
.admin-list { margin-top: 16px; }
.admin-item { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

@media (max-width: 980px) {
  .nav-toggle { display: grid; }
  .nav-panel {
    position: absolute;
    top: 82px;
    left: 22px;
    right: 22px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .nav-panel.is-open { display: flex; }
  .admin-nav-panel {
    position: static;
    display: flex;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    flex-direction: row;
  }
  .section-head, .split, .page-hero .shell, .contact-grid, .admin-layout, .admin-table-grid {
    grid-template-columns: 1fr;
  }
  .engagement-layout {
    grid-template-columns: 1fr;
  }
  .engagement-cards {
    grid-template-columns: 1fr;
  }
  .engagement-intro {
    position: static;
  }
  .section-head { align-items: start; }
  .intro-grid, .feature-grid, .feature-grid.two, .card-grid, .gallery-grid, .gallery-grid.full {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  :root { --shell: min(100% - 28px, 1140px); }
  .hero { min-height: 720px; }
  .hero-content { padding: 100px 0 78px; }
  .hero h1, .page-hero h1 { font-size: 3rem; }
  .section { padding: 74px 0; }
  .engagement-page .page-hero {
    padding-bottom: 64px;
  }
  .engagement-intro,
  .engagement-card {
    padding: 22px;
  }
  .intro-grid, .feature-grid, .feature-grid.two, .card-grid, .gallery-grid, .gallery-grid.full {
    grid-template-columns: 1fr;
  }
  .gallery-pagination {
    align-items: stretch;
    flex-direction: column;
  }
  .gallery-page-button {
    width: 100%;
  }
  .gallery-page-numbers .gallery-page-button {
    width: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.agenda-list {
  display: grid;
  gap: 16px;
}

.event-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: var(--radius);
}

.event-card time {
  color: var(--green);
  font-weight: 900;
}

.event-card small,
.empty-state {
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 620px) {
  .event-card {
    grid-template-columns: 1fr;
  }
}

.calendar-shell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 48px auto 48px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.calendar-toolbar h3 {
  justify-self: end;
  margin: 0;
  text-transform: capitalize;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-weekdays span {
  padding: 0 8px 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 132px;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.calendar-day.is-muted {
  background: #f2f2ec;
  color: var(--muted);
}

.calendar-day.is-today {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.calendar-date {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  border-radius: 50%;
  font-weight: 900;
}

.calendar-day.is-today .calendar-date {
  background: var(--green);
  color: var(--white);
}

.calendar-events {
  display: grid;
  gap: 5px;
}

.calendar-event {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 6px 7px;
  border: 0;
  border-radius: 6px;
  background: var(--deep);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: left;
}

.calendar-event small {
  color: rgba(255, 255, 255, 0.72);
}

.calendar-detail {
  margin-top: 18px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--soft);
  border-left: 6px solid var(--red);
}

.calendar-detail h3 {
  margin-bottom: 8px;
}

@media (max-width: 760px) {
  .calendar-toolbar {
    grid-template-columns: auto auto auto;
  }

  .calendar-toolbar h3 {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .calendar-weekdays {
    display: none;
  }

  .calendar-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .calendar-day {
    min-height: auto;
    border-radius: var(--radius);
  }

  .calendar-day.is-muted {
    display: none;
  }
}

[data-calendar-prev],
[data-calendar-next] {
  width: 48px;
  min-width: 48px;
  padding: 0;
  font-size: 1.25rem;
}

[data-calendar-today] {
  min-width: 132px;
}

/* Calendar month panel */
.calendar-section {
  padding: 56px 0 72px;
}

.calendar-shell {
  padding: 0;
  overflow: hidden;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 26px 28px 18px;
  border-bottom: 1px solid var(--line);
}

.calendar-header h2 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.calendar-header p:last-child {
  margin: 0;
  color: var(--muted);
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
}

.calendar-monthbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.calendar-monthbar h3 {
  margin: 0;
  font-size: 1.35rem;
  text-transform: capitalize;
}

.calendar-weekdays {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.calendar-weekdays span {
  padding: 12px 10px;
  text-align: center;
}

.calendar-grid {
  border-left: 1px solid var(--line);
}

.calendar-day {
  min-height: 112px;
  background: var(--white);
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calendar-day.is-muted {
  background: #f5f5ef;
}

.calendar-event {
  background: var(--green);
  min-height: 28px;
}

.calendar-detail {
  margin: 18px 28px 26px;
}

@media (max-width: 760px) {
  .calendar-header {
    display: grid;
    padding: 22px;
  }

  .calendar-toolbar {
    justify-content: flex-start;
  }

  .calendar-monthbar {
    padding: 14px 22px;
  }
}

/* Actualites compact calendar page */
.actualites-page .page-hero {
  padding: 44px 0 38px;
}

.actualites-page .page-hero .shell {
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
}

.actualites-page .page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.actualites-page .page-hero p {
  margin-bottom: 0;
}

.actualites-page .page-hero .media-box {
  min-height: 170px;
}

.actualites-page .calendar-section {
  padding: 26px 0 58px;
}

.actualites-page .calendar-header {
  padding: 18px 22px 14px;
  align-items: center;
}

.actualites-page .calendar-header h2 {
  margin-bottom: 4px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.actualites-page .calendar-monthbar {
  padding: 12px 22px;
}

.actualites-page .calendar-weekdays span {
  padding: 8px 8px;
}

.actualites-page .calendar-day {
  min-height: 96px;
}

.actualites-page .calendar-detail {
  margin: 14px 22px 22px;
  padding: 16px;
}

@media (max-width: 980px) {
  .actualites-page .page-hero .shell {
    grid-template-columns: 1fr;
  }

  .actualites-page .page-hero .media-box {
    display: none;
  }
}

/* Final compact layout for visible monthly calendar */
.actualites-page .page-hero {
  padding: 26px 0 24px;
}

.actualites-page .page-hero .shell {
  display: block;
}

.actualites-page .page-hero .media-box {
  display: none;
}

.actualites-page .page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.actualites-page .page-hero p:not(.eyebrow) {
  max-width: 860px;
  font-size: 1rem;
}

.actualites-page .calendar-section {
  padding: 18px 0 48px;
}

.actualites-page .calendar-header {
  padding: 14px 18px 10px;
}

.actualites-page .calendar-header .eyebrow,
.actualites-page .calendar-header p:last-child {
  display: none;
}

.actualites-page .calendar-header h2 {
  margin: 0;
  font-size: 1.65rem;
}

.actualites-page .calendar-monthbar {
  padding: 10px 18px;
}

.actualites-page .calendar-monthbar h3 {
  font-size: 1.15rem;
}

.actualites-page .calendar-day {
  min-height: 78px;
  padding: 6px;
}

.actualites-page .calendar-date {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  font-size: 0.86rem;
}

.actualites-page .calendar-event {
  min-height: 24px;
  padding: 4px 6px;
  font-size: 0.72rem;
}

/* Polished calendar month navigation */
.calendar-nav-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.calendar-nav-button:hover,
.calendar-nav-button:focus-visible {
  background: var(--green);
  border-color: var(--green);
  outline: none;
  transform: translateY(-1px);
}

.calendar-nav-button span {
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.calendar-nav-button.next span {
  transform: rotate(225deg);
}

.calendar-nav-button:hover span,
.calendar-nav-button:focus-visible span {
  border-color: var(--white);
}

.calendar-toolbar [data-calendar-today] {
  min-height: 44px;
  border-radius: 999px;
}

/* Smooth event modal */
body.modal-open {
  overflow: hidden;
}

.event-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.event-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.event-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.58);
  backdrop-filter: blur(6px);
}

.event-modal-panel {
  position: relative;
  width: min(620px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(20, 20, 20, 0.28);
  transform: translateY(14px) scale(0.98);
  transition: transform 220ms ease;
}

.event-modal.is-open .event-modal-panel {
  transform: translateY(0) scale(1);
}

.event-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--black);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.event-modal-panel h3 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.event-modal-panel small {
  display: inline-block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 900;
}

@media (prefers-reduced-motion: reduce) {
  .event-modal,
  .event-modal-panel {
    transition: none;
  }
}

/* Modal fixed centering correction */
body.modal-open {
  animation: none !important;
  transform: none !important;
}

body.modal-open .event-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 108;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.news-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.news-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.58);
  backdrop-filter: blur(6px);
}

.news-modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 30px 90px rgba(20, 20, 20, 0.3);
  transform: translateY(14px) scale(0.98);
  transition: transform 220ms ease;
}

.news-modal.is-open .news-modal-panel {
  transform: translateY(0) scale(1);
}

.news-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.news-modal-image {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  display: block;
  margin: 0 0 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.news-modal-panel time {
  display: block;
  margin: 10px 0;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 900;
}

.news-modal-panel h3 {
  margin: 0 42px 12px 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.news-modal-panel p {
  color: var(--muted);
}

body.modal-open .news-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

@media (prefers-reduced-motion: reduce) {
  .news-card,
  .news-modal,
  .news-modal-panel {
    transition: none;
  }

  .news-card:hover,
  .news-card:focus-visible {
    transform: none;
  }
}

/* Homepage agenda inside news section */
.home-news-calendar {
  margin-bottom: 34px;
}

.home-news-calendar .calendar-day {
  min-height: 82px;
}

.home-news-calendar .calendar-detail {
  display: none;
}

/* Hero image slider */
.hero-slider {
  opacity: 0.72;
}

.hero-slider span {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroSlide 28s infinite;
}

.hero-slider span:nth-child(1) { animation-delay: 0s; }
.hero-slider span:nth-child(2) { animation-delay: 7s; }
.hero-slider span:nth-child(3) { animation-delay: 14s; }
.hero-slider span:nth-child(4) { animation-delay: 21s; }

@keyframes heroSlide {
  0% { opacity: 0; transform: scale(1.02); }
  8% { opacity: 1; }
  28% { opacity: 1; }
  36% { opacity: 0; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.08); }
}

.feature-image {
  width: 100%;
  min-height: 320px;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: block;
}

.page-hero .feature-image {
  min-height: 280px;
  max-height: 380px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider span {
    animation: none;
  }
  .hero-slider span:first-child {
    opacity: 1;
  }
}

/* Gallery image modal */
.gallery-item {
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-2px);
  filter: saturate(1.05);
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.gallery-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.72);
  backdrop-filter: blur(6px);
}

.gallery-modal-panel {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  margin: 0;
  display: grid;
  gap: 12px;
  transform: translateY(14px) scale(0.98);
  transition: transform 220ms ease;
}

.gallery-modal.is-open .gallery-modal-panel {
  transform: translateY(0) scale(1);
}

.gallery-modal-panel img {
  width: 100%;
  max-height: calc(100vh - 116px);
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--black);
  box-shadow: 0 28px 90px rgba(20, 20, 20, 0.32);
}

.gallery-modal-panel figcaption {
  color: var(--white);
  font-weight: 900;
  text-align: center;
}

.gallery-modal-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  z-index: 2;
}

body.modal-open .gallery-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

@media (max-width: 760px) {
  .gallery-modal-close {
    top: 8px;
    right: 8px;
  }
}

/* Front-office admin mode */
body.admin-mode {
  padding-bottom: 104px;
}

.admin-frontbar {
  position: fixed !important;
  left: 50%;
  right: auto;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: min(1080px, calc(100vw - 48px));
  z-index: 200;
  transform: translateX(-50%);
  min-height: 58px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
  box-shadow: 0 18px 42px rgba(20, 20, 20, 0.24);
}

.admin-frontbar strong {
  color: #d4f0df;
  white-space: nowrap;
}

.admin-frontbar span {
  color: rgba(255, 255, 255, 0.72);
  margin-right: auto;
  white-space: nowrap;
}

.admin-frontbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--white);
  text-decoration: none;
  font-weight: 900;
  font-size: 0.9rem;
}

.admin-undo-bar {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 230;
  width: min(460px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 14px;
  border: 1px solid rgba(47, 111, 78, 0.2);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  box-shadow: 0 18px 42px rgba(20, 20, 20, 0.18);
}

.admin-undo-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-undo-text strong {
  font-size: 0.98rem;
}

.admin-undo-text span {
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-undo-bar button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--black);
  cursor: pointer;
  font-weight: 900;
}

.admin-undo-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.admin-undo-close {
  width: 34px;
  padding: 0 !important;
  border-radius: 50% !important;
}

.admin-inline-actions {
  width: var(--shell);
  margin: 8px auto 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.calendar-shell .admin-inline-actions,
.split .admin-inline-actions,
.page-hero .admin-inline-actions,
.hero .admin-inline-actions {
  width: auto;
  margin: 20px 0 0;
}

.admin-hero-slider-actions {
  position: relative;
  z-index: 3;
}

.admin-slider-image-list {
  display: grid;
  gap: 14px;
}

.admin-slider-image-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.admin-slider-image-preview {
  width: 112px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background-color: var(--soft);
  background-position: center;
  background-size: cover;
}

.admin-slider-image-item div:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-slider-image-item small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .admin-slider-image-item {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .admin-slider-image-preview {
    width: 88px;
  }

  .admin-slider-image-item .button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.calendar-header .admin-calendar-actions {
  flex: 1 1 100%;
  width: 100%;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  justify-content: flex-end;
}

.calendar-header .admin-calendar-actions .admin-edit-button {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 0.84rem;
}
.admin-edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-weight: 900;
  font-size: 0.9rem;
  box-shadow: 0 10px 26px rgba(47, 111, 78, 0.22);
}

.admin-edit-button:hover,
.admin-edit-button:focus-visible {
  background: var(--deep);
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.admin-deletable {
  position: relative;
}

.admin-visual-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 12;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: #b02a37;
  color: var(--white);
  cursor: pointer;
  font: 900 1.25rem/1 Arial, sans-serif;
  box-shadow: 0 10px 24px rgba(20, 20, 20, 0.28);
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.admin-visual-delete:hover,
.admin-visual-delete:focus-visible {
  background: #8f1d28;
  outline: 3px solid rgba(176, 42, 55, 0.28);
  outline-offset: 2px;
  transform: scale(1.06);
}

.admin-text-target {
  position: relative;
}

.admin-text-bubble {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 14;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  cursor: pointer;
  font: 900 0.92rem/1 Arial, sans-serif;
  box-shadow: 0 8px 18px rgba(20, 20, 20, 0.22);
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.admin-text-bubble.is-inline {
  position: static;
  margin-left: 6px;
  vertical-align: middle;
}

.admin-text-bubble:hover,
.admin-text-bubble:focus-visible {
  background: var(--deep);
  outline: 3px solid rgba(47, 111, 78, 0.25);
  outline-offset: 2px;
  transform: scale(1.06);
}

.gallery-admin-wrap {
  min-height: 320px;
}

.gallery-admin-wrap .gallery-item {
  width: 100%;
  height: 100%;
}

.calendar-event-wrap {
  position: relative;
}

.calendar-event-wrap .calendar-event {
  width: 100%;
  padding-right: 34px;
}

.calendar-event-wrap .admin-visual-delete {
  top: 3px;
  right: 3px;
  width: 24px;
  height: 24px;
  border-width: 1px;
  font-size: 0.95rem;
  box-shadow: 0 6px 14px rgba(20, 20, 20, 0.22);
}

.event-modal-card .admin-visual-delete,
[data-event-modal-content] .admin-visual-delete {
  top: -8px;
  right: -8px;
}

@media (max-width: 760px) {
  body.admin-mode {
    padding-bottom: 142px;
  }

  .admin-frontbar {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    transform: none;
    align-items: flex-start;
    gap: 10px;
  }

  .admin-undo-bar {
    left: 12px;
    right: 12px;
    bottom: 154px;
    width: auto;
    grid-template-columns: 1fr;
  }

  .admin-frontbar span {
    width: 100%;
    margin-right: 0;
  }

  .admin-frontbar a,
  .admin-edit-button {
    flex: 1 1 auto;
  }
}
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.admin-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.66);
  backdrop-filter: blur(6px);
}

.admin-modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 28px 90px rgba(20, 20, 20, 0.3);
  transform: translateY(14px) scale(0.98);
  transition: transform 220ms ease;
}

.admin-modal.is-open .admin-modal-panel {
  transform: translateY(0) scale(1);
}

.admin-modal-panel h2 {
  margin: 0 42px 20px 0;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.admin-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.admin-modal-form {
  display: grid;
  gap: 14px;
}

.admin-modal-form label {
  display: grid;
  gap: 6px;
  font-weight: 900;
  color: var(--black);
}

.admin-modal-form input,
.admin-modal-form textarea,
.admin-modal-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  font: inherit;
  background: #fff;
}

.admin-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-check {
  display: inline-flex !important;
  align-items: center;
  gap: 10px !important;
}

.admin-check input {
  width: auto;
}

.admin-modal-status {
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-weight: 900;
}

.admin-modal-frame {
  width: 100%;
  min-height: min(680px, 72vh);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

@media (max-width: 760px) {
  .admin-modal {
    padding: 12px;
  }

  .admin-modal-panel {
    max-height: calc(100vh - 24px);
    padding: 22px 16px;
  }

  .admin-form-row {
    grid-template-columns: 1fr;
  }
}
.admin-menu-card {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.admin-menu-card p {
  margin: 0;
  color: var(--muted);
}

.admin-menu-list {
  display: grid;
  gap: 10px;
}

.admin-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.admin-menu-item strong,
.admin-menu-item small {
  display: block;
}

.admin-menu-item small {
  margin-top: 4px;
  color: var(--muted);
}

.admin-menu-delete {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(176, 42, 55, 0.24);
  border-radius: 999px;
  background: #fff4f4;
  color: var(--red);
  cursor: pointer;
  font-weight: 900;
}

.admin-text-edit-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: rgba(47, 111, 78, 0.22);
  background: #eef7f1;
  color: var(--green);
}

.admin-text-edit-button:hover,
.admin-text-edit-button:focus-visible {
  background: var(--green);
  color: var(--white);
}

.admin-text-list .admin-menu-item strong {
  max-width: 520px;
}

.admin-menu-empty {
  margin: 0;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .admin-menu-item {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-menu-delete {
    width: 100%;
  }
}

/* Pages association, don et ressources */
.compact-hero .shell > *,
.association-copy,
.association-facts,
.resources-sidebar,
.resource-row,
.mission-layout > *,
.mission-list article > * {
  min-width: 0;
}

.association-page h1,
.association-page h2,
.resources-page h1,
.resources-page h2,
.resources-page h3 {
  overflow-wrap: anywhere;
}

.books-list {
  display: grid;
  gap: 18px;
}

.book-row {
  grid-template-columns: 118px minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  padding: 22px 24px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(47, 111, 78, 0.08), rgba(255, 255, 255, 0) 42%),
    var(--white);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.book-row:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 111, 78, 0.32);
  box-shadow: 0 18px 42px rgba(20, 20, 20, 0.1);
}

.book-cover {
  width: 118px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  border: 4px solid var(--white);
  background: var(--soft);
  box-shadow: 0 14px 28px rgba(20, 20, 20, 0.16);
}

.book-row h3 {
  margin: 0 0 7px;
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  line-height: 1.08;
}

.book-row small {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(47, 111, 78, 0.1);
  color: var(--green);
  font-weight: 900;
  font-size: 0.82rem;
}

.book-row p {
  margin: 0;
  max-width: 760px;
  line-height: 1.6;
}

.book-row .button {
  align-self: center;
  border-color: rgba(47, 111, 78, 0.22);
  background: var(--paper);
}

@media (max-width: 760px) {
  .book-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .book-cover {
    width: min(150px, 100%);
  }
}
.compact-hero {
  padding: 72px 0 68px;
}

.compact-hero .shell {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 44px;
  align-items: center;
}

.compact-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.compact-hero p:not(.eyebrow) {
  font-size: 1.08rem;
}

.compact-hero .feature-image {
  display: block;
  min-width: 0;
  min-height: 240px;
  max-width: 100%;
  max-height: 340px;
  border-radius: 8px;
}

.association-intro-section {
  padding-bottom: 86px;
}

.association-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 64px;
  align-items: start;
}

.association-copy {
  max-width: 760px;
}

.association-copy h2,
.resources-sidebar h2 {
  max-width: 650px;
  font-size: clamp(1.8rem, 2.8vw, 2.7rem);
}

.association-copy p,
.resources-sidebar p {
  font-size: 1.04rem;
  line-height: 1.75;
}

.association-facts {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(36, 56, 46, 0.16);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.association-facts div {
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.association-facts div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.association-facts strong,
.association-facts span {
  display: block;
}

.association-facts strong {
  color: var(--green);
  font-size: 1.22rem;
}

.association-facts span {
  margin-top: 4px;
  color: var(--muted);
}

.values-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.values-panel article {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.values-panel span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 34px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
}

.values-panel h3,
.resource-row h3,
.mission-list h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
}

.values-panel p,
.resource-row p,
.mission-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.mission-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.mission-list {
  display: grid;
  gap: 14px;
}

.mission-list article {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.mission-list .metric {
  width: fit-content;
  min-width: 0;
  height: auto;
  min-height: 36px;
  padding: 8px 14px;
  margin: 0;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  white-space: nowrap;
  font-size: 0.86rem;
  letter-spacing: 0;
}

.mission-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.donation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 22px;
  align-items: stretch;
}

.donation-card {
  background: var(--deep);
  color: var(--white);
}

.donation-card .eyebrow,
.donation-card p {
  color: rgba(255, 255, 255, 0.78);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.resource-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.resource-card .button {
  margin-top: auto;
  align-self: flex-start;
}

.resources-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.resources-sidebar {
  position: sticky;
  top: 112px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.resource-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.resource-tags span,
.resource-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--white);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.resource-list {
  display: grid;
  gap: 14px;
}

.resource-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.resource-row .button {
  white-space: nowrap;
}

.compact-band {
  padding: 78px 0;
}

@media (max-width: 1080px) {
  .values-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .resource-row .button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 980px) {
  .compact-hero .shell,
  .association-intro,
  .mission-layout,
  .donation-layout,
  .resource-grid,
  .resources-layout {
    grid-template-columns: 1fr;
  }

  .resources-sidebar {
    position: static;
  }
}

@media (max-width: 620px) {
  .association-page h2,
  .resources-page h2 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .compact-hero {
    padding: 44px 0 46px;
  }
  .compact-hero h1,
  .compact-hero p:not(.eyebrow),
  .association-copy h2,
  .resources-sidebar h2 {
    max-width: calc(100vw - 28px);
  }

  .compact-hero p:not(.eyebrow) {
    font-size: 1rem;
  }

  .compact-hero .feature-image {
    min-height: 210px;
    max-width: 100%;
  }

  .values-panel,
  .resource-row,
  .mission-list article {
    grid-template-columns: 1fr;
  }

  .values-panel article {
    min-height: auto;
  }

  .values-panel span {
    margin-bottom: 18px;
  }

  .resource-row .button {
    grid-column: auto;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .brand { max-width: calc(100vw - 96px); }
  .brand strong { max-width: 220px; font-size: 0.84rem; }
  .brand small { font-size: 0.7rem; }
}
.admin-translate-row {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.admin-translate-row small {
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-translate-button {
  justify-self: start;
}

.event-modal-image {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
  margin: 0 0 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.admin-image-preview {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.resources-page .book-row {
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: 22px 24px;
}

.external-links-section {
  padding-top: 72px;
}

.external-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.external-link-group {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.external-link-list {
  display: grid;
  gap: 12px;
}

.external-link-entry {
  position: relative;
}

.external-link-entry .external-link-card {
  width: 100%;
}

.external-link-entry .admin-visual-delete {
  top: -9px;
  right: -9px;
}

.external-link-group h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.external-link-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  align-items: center;
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(20, 20, 20, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.external-link-card:hover,
.external-link-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(47, 111, 78, 0.34);
  box-shadow: 0 18px 42px rgba(20, 20, 20, 0.1);
  outline: none;
}

.external-link-card span {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  min-height: 54px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
}

.external-link-card strong,
.external-link-card small {
  min-width: 0;
}

.external-link-card small {
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 980px) {
  .resources-page .book-row {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .resources-page .book-row .button {
    grid-column: 2;
    justify-self: start;
    width: auto;
  }
}

@media (max-width: 760px) {
  .resources-page .book-row {
    grid-template-columns: 1fr;
  }

  .external-link-grid {
    grid-template-columns: 1fr;
  }

  .resources-page .book-row .button {
    grid-column: auto;
    width: 100%;
  }
}

/* Responsive consolidation */
html {
  overflow-x: clip;
}

img,
video,
iframe {
  max-width: 100%;
}

.button,
.admin-edit-button,
.admin-frontbar a {
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

.feature,
.news-card,
.gallery-item,
.contact-form,
.resource-card,
.resource-row,
.book-row,
.external-link-card,
.calendar-shell {
  min-width: 0;
}

@media (max-width: 1260px) {
  .nav-toggle {
    display: grid;
    flex: 0 0 44px;
  }

  .nav-panel {
    position: absolute;
    top: 82px;
    left: max(22px, calc((100vw - 1140px) / 2));
    right: max(22px, calc((100vw - 1140px) / 2));
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100svh - 102px);
    overflow-y: auto;
    padding: 18px 76px 18px 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav-panel > a:not(.header-logo-bubble) {
    padding: 8px 4px;
  }

  .nav-panel .language-switch {
    align-self: flex-start;
  }

  .header-logo-bubble {
    position: absolute;
    top: auto;
    right: 18px;
    bottom: 18px;
    transform: none;
  }

  .admin-nav-panel {
    position: static;
    display: flex;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    flex-direction: row;
  }
}

@media (max-width: 980px) {
  .section {
    padding: 88px 0;
  }

  .section.compact,
  .compact-band {
    padding: 64px 0;
  }

  .page-hero,
  .compact-hero {
    padding: 72px 0 66px;
  }

  .page-hero .shell,
  .compact-hero .shell {
    gap: 34px;
  }

  .page-hero .feature-image,
  .compact-hero .feature-image {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 8;
    object-fit: cover;
  }

  .split,
  .contact-grid,
  .association-intro,
  .engagement-layout,
  .resources-layout {
    gap: 40px;
  }

  .footer-grid {
    gap: 30px 44px;
  }
}

@media (max-width: 760px) {
  .calendar-header {
    gap: 16px;
  }

  .calendar-toolbar {
    width: 100%;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
  }

  .calendar-toolbar [data-calendar-today] {
    min-width: 0;
    width: 100%;
  }

  .calendar-monthbar {
    padding-inline: 14px;
  }

  .calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .calendar-weekdays span {
    min-width: 0;
    padding: 9px 2px;
    overflow: hidden;
    font-size: 0.66rem;
    text-overflow: clip;
    white-space: nowrap;
  }

  .calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
  }

  .calendar-day,
  .actualites-page .calendar-day {
    display: block;
    min-width: 0;
    min-height: 88px;
    padding: 4px;
    border-radius: 0;
  }

  .calendar-day.is-muted {
    display: block;
  }

  .calendar-date,
  .actualites-page .calendar-date {
    width: 22px;
    height: 22px;
    margin-bottom: 3px;
    font-size: 0.72rem;
  }

  .calendar-events {
    gap: 3px;
  }

  .calendar-event,
  .actualites-page .calendar-event {
    min-width: 0;
    min-height: 20px;
    padding: 3px 4px;
    overflow: hidden;
    font-size: 0.62rem;
    line-height: 1.15;
    text-overflow: ellipsis;
  }

  .calendar-event small {
    display: none;
  }

  .calendar-event-wrap .calendar-event {
    padding-right: 4px;
  }

  .calendar-event-wrap .admin-visual-delete {
    top: -6px;
    right: -5px;
    width: 20px;
    height: 20px;
    font-size: 0.78rem;
  }

  .gallery-modal,
  .event-modal,
  .news-modal,
  .admin-modal {
    padding: 14px;
  }

  .gallery-modal-panel,
  .event-modal-panel,
  .news-modal-panel,
  .admin-modal-panel {
    max-height: calc(100svh - 28px);
  }
}

@media (max-width: 620px) {
  :root {
    --shell: min(100% - 28px, 1140px);
  }

  .nav {
    min-height: 74px;
    gap: 10px;
  }

  .nav.shell {
    width: var(--shell);
  }

  .nav-panel {
    top: 74px;
    left: 14px;
    right: 14px;
    max-height: calc(100svh - 88px);
  }

  .brand {
    gap: 9px;
    max-width: calc(100vw - 82px);
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .brand strong {
    max-width: none;
    font-size: 0.8rem;
  }

  .brand small {
    font-size: 0.68rem;
  }

  .hero {
    min-height: max(560px, calc(100svh - 74px));
  }

  .hero-content {
    padding: 84px 0 66px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 13vw, 3.45rem);
    line-height: 0.98;
  }

  .page-hero h1,
  .compact-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3rem);
    line-height: 1;
  }

  .hero p:not(.eyebrow),
  .page-hero p,
  .compact-hero p:not(.eyebrow) {
    font-size: 1rem;
  }

  .page-hero,
  .compact-hero {
    padding: 52px 0 48px;
  }

  .page-hero .feature-image,
  .compact-hero .feature-image {
    aspect-ratio: 4 / 3;
  }

  .section,
  .association-intro-section {
    padding: 66px 0;
  }

  .section.compact,
  .compact-band,
  .external-links-section {
    padding: 52px 0;
  }

  .section-head {
    display: grid;
    gap: 18px;
    margin-bottom: 30px;
  }

  .section-head .button {
    justify-self: start;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .actions .button,
  .contact-form .button {
    width: 100%;
  }

  .feature,
  .contact-form,
  .admin-panel,
  .resource-card,
  .resource-row,
  .book-row,
  .association-facts,
  .engagement-intro,
  .engagement-card {
    padding: 20px;
  }

  .gallery-item,
  .gallery-admin-wrap {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .gallery-item {
    padding: 18px;
  }

  .footer {
    padding-top: 46px;
  }

  .footer-bottom {
    display: grid;
  }

  body.admin-mode {
    padding-bottom: 176px;
  }

  .admin-frontbar {
    max-height: calc(100svh - 24px);
    overflow-y: auto;
  }

  .admin-frontbar strong,
  .admin-frontbar span {
    white-space: normal;
  }

  .admin-frontbar a {
    min-width: 0;
  }

  .admin-inline-actions,
  .calendar-header .admin-calendar-actions {
    width: 100%;
  }

  .admin-inline-actions .admin-edit-button,
  .calendar-header .admin-calendar-actions .admin-edit-button {
    flex: 1 1 100%;
  }
}

@media (max-width: 390px) {
  :root {
    --shell: min(100% - 22px, 1140px);
  }

  .brand strong {
    font-size: 0.76rem;
  }

  .brand small {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12.5vw, 3rem);
  }

  .calendar-weekdays span {
    font-size: 0.58rem;
  }

  .calendar-day,
  .actualites-page .calendar-day {
    min-height: 78px;
    padding: 3px;
  }

  .calendar-event,
  .actualites-page .calendar-event {
    padding: 3px;
    font-size: 0.56rem;
  }

  .external-link-card {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 15px;
  }

  .external-link-card span {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .nav {
    min-height: 66px;
  }

  .nav-panel {
    top: 66px;
    max-height: calc(100svh - 76px);
  }

  .hero {
    min-height: calc(100svh - 66px);
  }

  .hero-content {
    padding: 34px 0 32px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }

  .hero .actions {
    margin-top: 18px;
  }
}
