/*
Theme Name: Capelle
Theme URI: https://www.lachapellesaintremy.fr/
Author: Mairie de La Chapelle-Saint-Rémy
Description: Second thème de la commune. Pages et menu WordPress inchangés.
Version: 1.6.3
Text Domain: mairie-capelle
*/

:root {
  --ink: #121212;
  --text: #222;
  --muted: #5c5c5c;
  --bg: #f3f3f3;
  --white: #fff;
  --line: #e4e4e4;
  --accent: #8d5e2c;
  --nav: #121212;
  --header-h: 72px;
  --adminbar-h: 0px;
  --radius: 10px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --title: "Palatino Linotype", Palatino, "Book Antiqua", "Iowan Old Style", "Times New Roman", serif;
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  font-size: 16px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; }
iframe, video, embed { max-width: 100%; }
a { color: var(--accent); }
a:hover { text-decoration: underline; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.show-sm { display: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
}
.skip-link:focus { left: 8px; }

.wrap {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: var(--adminbar-h);
  z-index: 500;
  flex-shrink: 0;
  overflow: visible;
}
.brand-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}
.brand-home {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.brand-home img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.brand-home:hover img {
  transform: rotate(-8deg) scale(1.08);
}
.brand-home strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.brand-home span span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}
.nav-wrap {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: calc(var(--adminbar-h) + var(--header-h));
  z-index: 600;
  overflow: visible;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}
.nav-wrap .wrap,
.nav-inner { overflow: visible; }
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-tools a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}
.header-phone:hover { color: var(--accent); }
.header-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 16px 24px 14px 22px / 18px 12px 20px 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.header-cta:hover {
  background: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}
.topbar-search {
  display: flex;
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
}
.topbar-search input {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  font: inherit;
  min-width: 120px;
}
.topbar-search input:focus { outline: none; }
.topbar-search button {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px 12px 8px 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
}
.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 0;
  background: var(--bg);
  padding: 8px 12px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  color: var(--ink);
  border-radius: 8px;
}
.menu-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 12px;
}
.menu-toggle-box span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
}
.nav-mobile-tools { display: none; }
.header-call {
  color: var(--ink);
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg);
  border-radius: 8px;
}

.menu-root {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}
.menu-root li { position: relative; list-style: none; }
.menu-root > li.has-children {
  padding-bottom: 12px;
  margin-bottom: -12px;
}
.menu-root > li > a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 11px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 8px;
}
.menu-root > li > a:hover,
.menu-root > li:hover > a,
.menu-root > li.is-open > a,
.menu-root > li:focus-within > a {
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
}
.sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 260px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  display: none;
  z-index: 700;
}
.sub-menu a {
  display: block;
  padding: 8px 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 8px;
}
.sub-menu a:hover,
.sub-menu a:focus {
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
}
.sub-menu:not(:has(.sub-menu)) {
  max-height: min(70vh, 420px);
  overflow-y: auto;
}
.sub-menu .has-children {
  padding-right: 10px;
  margin-right: -10px;
}
.sub-menu .sub-menu {
  left: calc(100% - 10px);
  top: 0;
  margin: 0;
  max-height: min(70vh, 420px);
  overflow-y: auto;
}
.menu-root > li:nth-last-child(-n+3) > .sub-menu {
  left: auto;
  right: 0;
}
.menu-root > li:nth-last-child(-n+3) > .sub-menu .has-children {
  padding-right: 0;
  margin-right: 0;
  padding-left: 10px;
  margin-left: -10px;
}
.menu-root > li:nth-last-child(-n+3) > .sub-menu .sub-menu {
  left: auto;
  right: calc(100% - 10px);
}
.has-children > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.45;
}
.sub-menu .has-children > a::after {
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 4px solid currentColor;
  border-right: 0;
}
.submenu-toggle { display: none; }

/* Page */
.page-shell {
  background: var(--bg);
  padding: 28px 0 56px;
  flex: 1 0 auto;
  width: 100%;
  position: relative;
  overflow-x: clip;
}
.page-shell::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -50px;
  bottom: 40px;
  background: var(--accent);
  opacity: 0.07;
  border-radius: 48% 52% 38% 62% / 42% 58% 42% 58%;
  pointer-events: none;
  animation: blob-drift 18s ease-in-out infinite;
}
.panel {
  background: transparent;
  border-radius: 0;
  padding: 4px 0 40px;
  box-shadow: none;
  position: relative;
  overflow: visible;
}
.panel::after {
  display: none;
}
.page-shell:has(.page-hero) {
  padding-top: 0;
}
.page-hero {
  position: relative;
  background: transparent;
  padding: 28px 0 16px;
  margin: 0 0 8px;
}
.page-hero.has-image {
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 0 88px;
  margin: 0 0 36px;
  color: #fff;
  overflow: hidden;
  border-bottom-left-radius: 50% 110px;
  border-bottom-right-radius: 50% 110px;
}
.page-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.page-hero.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.08) 0%, rgba(18, 18, 18, 0.45) 100%);
  z-index: 1;
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
}
.page-hero-title {
  margin: 0 auto;
  font-family: var(--title);
  font-style: italic;
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 16ch;
  text-wrap: balance;
  text-align: center;
  color: var(--ink);
}
.page-hero-title::after {
  content: "";
  display: block;
  width: 54px;
  height: 8px;
  margin: 16px auto 0;
  background: var(--accent);
  border-radius: 70% 30% 60% 40% / 50% 60% 40% 50%;
  animation: blob-slide 10s ease-in-out infinite;
}
.page-hero.has-image .page-hero-title {
  color: #fff;
  max-width: 18ch;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}
.page-hero.has-image .page-hero-title::after {
  background: #fff;
}
.page-hero .breadcrumb {
  position: relative;
  z-index: 3;
  margin: 0 auto 16px;
  text-align: left;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 650;
}
.page-hero.has-image .breadcrumb {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  margin: 0 auto;
}
.page-hero.has-image .breadcrumb,
.page-hero.has-image .breadcrumb a {
  color: rgba(255, 255, 255, 0.92);
}
.page-hero.has-image .breadcrumb a:hover {
  color: #fff;
}
.page-title {
  margin: 0 0 14px;
  font-size: 1.85rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}
.breadcrumb {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.intro {
  display: grid;
  grid-template-columns: 1.7fr 0.9fr;
  gap: 28px;
  margin-bottom: 28px;
  align-items: stretch;
}
.intro h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 750;
  color: var(--ink);
}
.intro .lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 36em;
}
.hours {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.hours h2 {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}
.hours p { margin: 0 0 10px; font-size: 0.92rem; }
.hours p:last-child { margin-bottom: 0; }

.quick-links {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 0 0 32px;
  padding: 0;
}
.quick-links a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 16px;
  border-radius: 12px;
  transition: background 0.15s ease, color 0.15s ease;
}
.quick-links a:hover {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.ql-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.quick-links a:hover .ql-icon {
  background: var(--accent);
  color: #fff;
}
.ql-icon svg { width: 22px; height: 22px; }

.home-shell {
  flex: 1 0 auto;
  width: 100%;
  background: #fff;
  padding: 0 0 64px;
  position: relative;
  overflow-x: clip;
}
.home-hero {
  background: #fff;
  padding: 40px 0 8px;
  position: relative;
}
.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background: var(--accent);
  opacity: 0.1;
  z-index: 0;
  animation: blob-drift 14s ease-in-out infinite;
}
.home-hero::before {
  width: 110px;
  height: 110px;
  left: max(0px, calc(50% - 620px));
  top: 8px;
  border-radius: 68% 32% 52% 48% / 38% 62% 38% 62%;
}
.home-hero::after {
  width: 70px;
  height: 70px;
  right: max(12px, calc(50% - 560px));
  bottom: -8px;
  opacity: 0.12;
  border-radius: 42% 58% 36% 64% / 62% 38% 58% 42%;
  animation-duration: 11s;
  animation-direction: reverse;
}
.home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(300px, 1.18fr);
  gap: 36px 48px;
  align-items: center;
}
.home-kicker {
  margin: 0 0 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}
.home-kicker::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  vertical-align: 0;
  background: var(--accent);
  border-radius: 72% 28% 64% 36% / 42% 68% 32% 58%;
  animation: blob-nudge 6.5s ease-in-out infinite;
}
.home-hero h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 8px;
  margin-top: 14px;
  background: var(--accent);
  border-radius: 68% 32% 58% 42% / 48% 62% 38% 52%;
  animation: blob-slide 9s ease-in-out infinite;
}
.home-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
}
.home-lede {
  margin: 0 0 28px;
  max-width: 28em;
  font-size: 1.05rem;
  color: var(--muted);
}
.home-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}
.home-btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 18px 28px 16px 24px / 20px 14px 22px 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.home-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}
.home-btn-ghost {
  background: #fff;
  color: var(--ink);
}
.home-btn-ghost:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.home-hero-media {
  margin: 0;
  position: relative;
}
.home-hero-clip {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.home-hero-media::before {
  content: "";
  position: absolute;
  inset: 14px -18px -16px 16px;
  background: var(--accent);
  clip-path: url(#lch-photo-shape);
  z-index: 0;
}
.home-hero-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  clip-path: url(#lch-photo-shape);
}
.home-hero-media img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center center;
  animation: gentle-zoom 16s ease-in-out infinite alternate;
}
.home-hero-media figcaption {
  margin: 8px 0 0;
  font-size: 0.68rem;
  color: var(--muted);
}
.home-hero-media figcaption a {
  color: inherit;
}

.home-facts {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr;
  gap: 0;
  margin: 36px auto 36px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.home-facts > div {
  padding: 0 28px;
  border-left: 1px solid var(--line);
}
.home-facts > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.home-facts h2 {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-facts h2::before {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: var(--accent);
  border-radius: 64% 36% 58% 42% / 42% 62% 38% 58%;
  animation: blob-nudge 7s ease-in-out infinite;
}
.home-facts p {
  margin: 0 0 4px;
  font-size: 0.95rem;
}
.home-facts p:last-child { margin-bottom: 0; }
.home-facts a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.home-facts a:hover { color: var(--accent); }

.home-shortcuts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin: 0 auto 36px;
  border: 1px solid var(--line);
}
.home-shortcuts a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.86rem;
  padding: 18px 8px 16px;
  text-align: center;
  border-right: 1px solid var(--line);
  transition: background 0.2s ease, color 0.2s ease, transform 0.22s ease;
}
.home-shortcuts a:last-child { border-right: 0; }
.home-shortcuts a:hover {
  color: var(--accent);
  text-decoration: none;
  background: var(--bg);
  transform: translateY(-4px);
}
.home-shortcuts .ql-icon {
  background: #f7f1ea;
  color: var(--accent);
  width: 42px;
  height: 42px;
  border-radius: 62% 38% 48% 52% / 44% 56% 44% 56%;
}
.home-shortcuts a:hover .ql-icon {
  background: var(--accent);
  color: #fff;
  animation: wiggle 0.45s ease;
}

.home-board {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.home-board a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  padding: 28px 28px 26px 0;
  border-right: 1px solid var(--line);
  transition: transform 0.22s ease;
}
.home-board a:first-child { padding-left: 0; }
.home-board a:last-child {
  border-right: 0;
  padding-right: 0;
}
.home-board a + a { padding-left: 28px; }
.home-board a:hover { text-decoration: none; transform: translateY(-3px); }
.home-board a:hover strong { color: var(--accent); }
.home-board-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-board-label::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 70% 30% 52% 48% / 38% 62% 38% 62%;
  animation: blob-nudge 8s ease-in-out infinite;
}
.home-board strong {
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.home-board a > span:last-child {
  color: var(--muted);
  font-size: 0.94rem;
}

.search-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.search-list li {
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.search-list a {
  display: block;
  padding: 14px 0;
  text-decoration: none;
  color: inherit;
}
.search-list a:hover { text-decoration: none; }
.search-list strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}
.search-list a:hover strong { color: var(--accent); }
.search-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.nav-links a,
.nav-links span {
  display: inline-block;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
}
.nav-links .current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.entry-content { font-size: 1.02rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content img,
.entry-content figure { max-width: 100%; height: auto; }
.entry-content .alignleft,
.entry-content .alignright { max-width: 100%; }
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.1em;
  padding-left: 1.2em;
  line-height: 1.7;
}
.entry-content li { margin: 0 0 0.35em; }
.entry-content table,
.tablepress {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: #fff;
}
.entry-content th,
.entry-content td,
.tablepress th,
.tablepress td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  background: #fff;
}
.entry-content th { background: var(--bg); }
.dataTables_wrapper { overflow-x: auto; }
.dataTables_wrapper:has(.dataTables_empty) .dataTables_info,
.dataTables_wrapper:has(.dataTables_empty) .dataTables_paginate,
.dataTables_wrapper:has(.dataTables_empty) .dataTables_filter,
.dataTables_wrapper:has(.dataTables_empty) .dataTables_length,
.tablepress .dataTables_empty { display: none; }

/* Associations / hubs */
.assoc-intro { margin: 0 0 4px; color: var(--muted); }
.assoc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.assoc-head .page-title { margin-bottom: 6px; }
.assoc-cal-link,
.assoc-calendar a {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 8px;
  white-space: nowrap;
}
.assoc-cal-link:hover,
.assoc-calendar a:hover {
  background: var(--accent);
  text-decoration: none;
}
.assoc-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.assoc-filter button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 8px 14px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
}
.assoc-filter button.is-on,
.assoc-filter button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.assoc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.assoc-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  overflow: hidden;
  border-radius: 18px 36px 16px 32px / 24px 14px 34px 18px;
  transition: border-color 0.2s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.assoc-card[hidden] { display: none; }
.assoc-card:hover {
  border-color: #ccc;
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}
.assoc-card-media {
  position: relative;
  height: 168px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.assoc-card-media img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  display: block;
}
.assoc-letter {
  width: 48px;
  height: 48px;
  border-radius: 62% 38% 48% 52% / 42% 58% 42% 58%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}
.assoc-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: #fff;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
}
.assoc-badge-page {
  position: static;
  display: inline-block;
  margin: 0 0 8px;
  background: var(--bg);
  color: var(--accent);
}
.assoc-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
  flex: 1;
}
.assoc-card-body strong {
  font-size: 1.05rem;
  line-height: 1.3;
}
.assoc-cat {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 2px;
}
.assoc-meta { color: var(--muted); font-size: 0.88rem; }
.assoc-more {
  margin-top: auto;
  padding-top: 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}
.hub-card-media { background: var(--bg); }
.hub-card-media .ql-icon {
  width: 48px;
  height: 48px;
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}
.contact-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}
.contact-box h2 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}
.contact-actions { margin: 14px 0 0; }
.contact-actions a {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 8px;
}
.contact-actions a:hover {
  background: var(--accent);
  text-decoration: none;
}

.assoc-fiche .page-title { margin-bottom: 20px; }
.assoc-fiche-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  margin: 0 0 28px;
  align-items: start;
}
.assoc-fiche-grid.no-media {
  grid-template-columns: minmax(240px, 380px);
}
.assoc-fiche-media img,
.assoc-fiche-placeholder {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: var(--bg);
  border-radius: 12px;
}
.assoc-fiche-aside {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px 20px;
}
.assoc-fiche-aside h2 {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.assoc-fiche-aside h2:not(:first-child) {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #ddd;
}
.assoc-fiche-aside dl { margin: 0; }
.assoc-fiche-aside dl > div { margin: 0 0 12px; }
.assoc-fiche-aside dl > div:last-child { margin-bottom: 0; }
.assoc-fiche-aside dt {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}
.assoc-fiche-aside dd {
  margin: 2px 0 0;
  font-weight: 700;
}
.assoc-fiche-aside dd a { word-break: break-word; }
.assoc-fiche-text {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.assoc-fiche-text > :first-child { margin-top: 0; }
.assoc-fiche-text h2,
.assoc-fiche-text .has-text-align-center {
  text-align: left;
  font-size: 1.2rem;
}
.assoc-back { margin-top: 28px; }
.assoc-back a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}
.assoc-back a:hover { color: var(--accent); }
.assoc-empty { color: var(--muted); }
.assoc-events {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.assoc-events h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.cal-wrap { margin: 8px 0 28px; }
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.cal-title {
  margin: 0;
  font-size: 1.2rem;
  text-transform: capitalize;
}
.cal-nav-btn {
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
}
.cal-nav-btn:hover {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.cal-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0 0 16px;
}
.cal-grid th {
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 10px 6px;
  text-align: left;
}
.cal-grid td {
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  height: 88px;
  padding: 8px 6px;
  font-size: 0.78rem;
}
.cal-grid td.is-empty { background: transparent; }
.cal-day.is-today { background: #f7f1ea; border-radius: 18px 28px 14px 24px / 16px 12px 22px 14px; }
.cal-day.has-event { box-shadow: inset 3px 0 0 var(--accent); }
.cal-num { display: block; font-weight: 700; margin-bottom: 4px; }
.cal-day ul { list-style: none; margin: 0; padding: 0; }
.cal-day li { margin: 0 0 4px; line-height: 1.25; }
.cal-time { color: var(--accent); font-weight: 700; }
.cal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.cal-list li {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.4;
}
.cal-place { color: var(--muted); }
.cal-empty { color: var(--muted); margin: 8px 0 0; }

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  max-width: 480px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  font: inherit;
}
.wpcf7 input[type="submit"] {
  background: var(--ink);
  color: #fff;
  border: 0;
  padding: 10px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
}

.site-footer {
  background: var(--ink);
  color: #cfcfcf;
  padding: 52px 0 18px;
  font-size: 0.92rem;
  flex-shrink: 0;
  margin-top: auto;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.site-footer::before {
  width: 240px;
  height: 240px;
  right: -70px;
  top: -90px;
  background: var(--accent);
  opacity: 0.22;
  border-radius: 42% 58% 62% 38% / 48% 32% 68% 52%;
  animation: blob-drift 16s ease-in-out infinite;
}
.site-footer::after {
  width: 130px;
  height: 130px;
  left: -36px;
  bottom: 10px;
  background: #fff;
  opacity: 0.06;
  border-radius: 58% 42% 38% 62% / 32% 68% 42% 58%;
  animation: blob-drift 18s ease-in-out infinite reverse;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}
.site-footer h2 {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #c4a07a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-footer h2::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 70% 30% 60% 40% / 50% 60% 40% 50%;
  animation: blob-nudge 7.5s ease-in-out infinite;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 0 0 8px; }
.footer-legal {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #8a8a8a;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes gentle-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}
@keyframes pop-logo {
  0% { transform: scale(0.62) rotate(-10deg); }
  55% { transform: scale(1.1) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes sway {
  from { transform: rotate(-3deg); }
  to { transform: rotate(3deg); }
}
@keyframes stroll {
  0% { transform: translateX(0); }
  50% { transform: translateX(86px) scaleX(-1); }
  50.1% { transform: translateX(86px) scaleX(-1); }
  100% { transform: translateX(0) scaleX(1); }
}
@keyframes walk-leg {
  0%, 100% { transform: rotate(12deg); }
  50% { transform: rotate(-16deg); }
}
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(28px); }
}
@keyframes bounce-in {
  0% { opacity: 0; transform: scale(0.6) rotate(-6deg); }
  70% { transform: scale(1.06) rotate(2deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(18px, -16px) rotate(12deg) scale(1.06); }
  50% { transform: translate(-10px, -22px) rotate(-8deg) scale(0.96); }
  75% { transform: translate(-16px, 12px) rotate(7deg) scale(1.04); }
}
@keyframes blob-nudge {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  35% { transform: translate(4px, -5px) rotate(22deg); }
  70% { transform: translate(-4px, 3px) rotate(-16deg); }
}
@keyframes blob-slide {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  50% { transform: translateX(10px) rotate(4deg); }
}
@keyframes pulse-soft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(-10deg) scale(1.08); }
  60% { transform: rotate(8deg) scale(1.05); }
}

.home-hero-copy { animation: fade-up 0.55s ease both; }
.home-hero-media { animation: fade-up 0.7s ease 0.08s both; }
.home-facts { animation: fade-up 0.55s ease 0.12s both; }
.home-shortcuts a { animation: fade-up 0.45s ease both; }
.home-shortcuts a:nth-child(1) { animation-delay: 0.05s; }
.home-shortcuts a:nth-child(2) { animation-delay: 0.1s; }
.home-shortcuts a:nth-child(3) { animation-delay: 0.15s; }
.home-shortcuts a:nth-child(4) { animation-delay: 0.2s; }
.home-shortcuts a:nth-child(5) { animation-delay: 0.25s; }
.home-shortcuts a:nth-child(6) { animation-delay: 0.3s; }
.home-board { animation: fade-up 0.55s ease 0.18s both; }
.page-hero-title { animation: fade-up 0.5s ease both; }
.page-hero-photo { animation: gentle-zoom 18s ease-in-out infinite alternate; }

.error-shell {
  flex: 1 0 auto;
  background: #fff;
  padding: 28px 0 72px;
  overflow: hidden;
}
.error-inner {
  text-align: center;
  max-width: 640px;
}
.error-scene {
  position: relative;
  height: 170px;
  margin: 0 auto 8px;
  max-width: 320px;
}
.error-cloud {
  position: absolute;
  top: 18px;
  width: 54px;
  height: 18px;
  background: #ececec;
  border-radius: 20px;
  animation: drift 4.5s ease-in-out infinite alternate;
}
.error-cloud::before,
.error-cloud::after {
  content: "";
  position: absolute;
  background: #ececec;
  border-radius: 50%;
}
.error-cloud::before { width: 22px; height: 22px; top: -10px; left: 10px; }
.error-cloud::after { width: 16px; height: 16px; top: -6px; left: 28px; }
.error-cloud-a { left: 12px; }
.error-cloud-b { right: 8px; top: 8px; animation-duration: 6s; animation-direction: alternate-reverse; }
.error-church {
  width: 150px;
  height: 140px;
  position: absolute;
  left: 50%;
  bottom: 18px;
  margin-left: -75px;
}
.error-spire {
  transform-origin: 80px 66px;
  animation: sway 2.4s ease-in-out infinite alternate;
}
.error-walker {
  width: 36px;
  height: 44px;
  position: absolute;
  left: 18px;
  bottom: 10px;
  animation: stroll 6.5s ease-in-out infinite;
}
.error-leg-a,
.error-leg-b {
  transform-origin: 20px 30px;
  animation: walk-leg 0.5s ease-in-out infinite;
}
.error-leg-b { animation-delay: -0.25s; }
.error-road {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 8px;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
}
.error-code {
  margin: 0;
  font-family: var(--title);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(4.4rem, 12vw, 7rem);
  line-height: 0.9;
  color: var(--ink);
  animation: bounce-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.error-shell h1 {
  margin: 8px 0 10px;
  font-family: var(--title);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  animation: fade-up 0.5s ease 0.12s both;
}
.error-lede {
  margin: 0 auto 22px;
  max-width: 36em;
  color: var(--muted);
  animation: fade-up 0.5s ease 0.18s both;
}
.error-search {
  display: flex;
  max-width: 420px;
  margin: 0 auto 22px;
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
  animation: fade-up 0.5s ease 0.24s both;
}
.error-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  font: inherit;
  min-width: 0;
}
.error-search input:focus { outline: none; }
.error-search button {
  border: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.error-search button:hover { background: var(--accent); }
.error-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  animation: fade-up 0.5s ease 0.3s both;
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #fff;
  pointer-events: none;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.page-transition img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 0.3s ease 0.08s, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.08s;
}
.page-transition.is-on,
html.is-page-enter .page-transition {
  pointer-events: auto;
  clip-path: circle(150% at 50% 50%);
}
.page-transition.is-on img,
html.is-page-enter .page-transition img {
  opacity: 1;
  transform: scale(1);
  animation: pop-logo 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
html.is-page-enter .page-transition { transition: none; }

@media (prefers-reduced-motion: reduce) {
  .page-transition,
  .page-transition img,
  .home-hero-copy,
  .home-hero-media,
  .home-hero-media img,
  .home-facts,
  .home-shortcuts a,
  .home-board,
  .page-hero-title,
  .page-hero-photo,
  .error-code,
  .error-shell h1,
  .error-lede,
  .error-search,
  .error-actions,
  .error-spire,
  .error-walker,
  .error-leg-a,
  .error-leg-b,
  .error-cloud,
  .home-hero::before,
  .home-hero::after,
  .home-hero h1::after,
  .page-hero-title::after,
  .page-shell::before,
  .site-footer::before,
  .site-footer::after,
  .site-footer h2::before,
  .home-facts h2::before,
  .home-board-label::before,
  .home-kicker::before,
  .home-shortcuts a:hover .ql-icon {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

@media (min-width: 1025px) {
  .menu-root li:hover > .sub-menu,
  .menu-root li:focus-within > .sub-menu,
  .menu-root li.is-open > .sub-menu {
    display: block;
  }
}

@media (max-width: 1180px) and (min-width: 1025px) {
  .menu-root > li > a {
    padding: 10px 8px;
    font-size: 0.8rem;
  }
  .header-phone { display: none; }
}

@media (max-width: 1024px) {
  body.nav-open { overflow: hidden; }

  .wrap { width: calc(100% - 20px); }
  .panel { padding: 4px 0 28px; border-radius: 0; }
  .brand-inner { padding: 8px 0; gap: 8px; }
  .brand-home { gap: 8px; min-width: 0; }
  .brand-home img { width: 40px; height: 40px; flex-shrink: 0; }
  .brand-home strong {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header-tools { gap: 6px; }
  .header-tools .hide-sm,
  .hide-sm { display: none !important; }
  .show-sm { display: flex; }
  .header-call { display: flex; }

  .menu-toggle { display: inline-flex; }
  body.nav-open .menu-toggle-box span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }
  body.nav-open .menu-toggle-box span:nth-child(2) { opacity: 0; }
  body.nav-open .menu-toggle-box span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }
  .menu-toggle-box span { transition: transform 0.15s ease, opacity 0.15s ease; }

  .nav-wrap {
    display: none;
    position: fixed;
    top: calc(var(--adminbar-h) + var(--header-h));
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 450;
  }
  .nav-wrap.is-open { display: block; }
  .nav-inner { width: 100%; padding: 8px 0 40px; }
  .nav-mobile-tools {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px 16px;
  }
  .nav-mobile-tools .topbar-search { width: 100%; }
  .nav-mobile-tools .topbar-search input {
    flex: 1;
    min-width: 0;
    font-size: 16px;
  }
  .nav-mobile-link {
    display: block;
    color: var(--ink);
    text-decoration: none;
    padding: 12px 0;
    font-weight: 700;
    border-bottom: 1px solid var(--line);
  }

  .menu-root {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  .menu-root > li.has-children {
    padding-bottom: 0;
    margin-bottom: 0;
  }
  .menu-root > li > a {
    padding: 14px 16px;
    font-size: 1.05rem;
    white-space: normal;
    border-radius: 0;
  }
  .menu-root > li:hover > a,
  .menu-root > li.is-open > a { background: var(--bg); }
  .has-children > a::after,
  .sub-menu .has-children > a::after { content: none; display: none; }

  .menu-root li.has-children,
  .sub-menu li.has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
  }
  .menu-root li.has-children > a,
  .sub-menu li.has-children > a {
    flex: 1;
    min-width: 0;
  }
  .submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-height: 48px;
    border: 0;
    background: var(--bg);
    color: var(--ink);
    cursor: pointer;
    padding: 0;
  }
  .submenu-toggle::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--ink);
  }
  li.is-open > .submenu-toggle::before { transform: rotate(180deg); }
  .sub-menu,
  .sub-menu .sub-menu {
    position: static;
    flex-basis: 100%;
    width: 100%;
    border: 0;
    box-shadow: none;
    background: var(--bg);
    border-radius: 0;
    margin: 0;
    padding: 0;
    display: none;
    max-height: none;
    overflow: visible;
  }
  .sub-menu .has-children,
  .menu-root > li:nth-last-child(-n+3) > .sub-menu .has-children {
    padding: 0;
    margin: 0;
  }
  li.is-open > .sub-menu { display: block; }
  .sub-menu a { padding: 12px 16px 12px 28px; }

  .intro,
  .assoc-grid,
  .assoc-fiche-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .intro h1 { font-size: 1.55rem; }
  .page-title { font-size: 1.5rem; }
  .page-hero.has-image {
    min-height: 260px;
    padding: 56px 0 64px;
    border-bottom-left-radius: 50% 70px;
    border-bottom-right-radius: 50% 70px;
  }
  .page-hero.has-image .breadcrumb { top: 14px; }
  .page-hero-title { font-size: 2.35rem; }

  .home-hero { padding: 24px 0 8px; }
  .home-hero-grid,
  .home-facts,
  .home-board { grid-template-columns: 1fr; }
  .home-hero-media img { height: 240px; }
  .home-hero h1 { font-size: 1.85rem; }
  .home-facts > div,
  .home-board a,
  .home-board a + a {
    padding: 16px 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .home-facts > div:last-child,
  .home-board a:last-child { border-bottom: 0; }
  .home-shortcuts { grid-template-columns: repeat(3, 1fr); }
  .home-shortcuts a:nth-child(3n) { border-right: 0; }
  .home-shortcuts a:nth-child(n+4) { border-top: 1px solid var(--line); }

  .assoc-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  .assoc-filter button { flex: 0 0 auto; min-height: 40px; }
  .assoc-card-media,
  .assoc-card-media img { height: 140px; }

  .cal-nav { flex-direction: column; align-items: flex-start; }
  .cal-grid { display: none; }

  .entry-content {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .entry-content .alignleft,
  .entry-content .alignright,
  .entry-content .aligncenter {
    float: none;
    display: block;
    margin: 0 0 1em;
    width: auto;
    max-width: 100%;
  }
  .entry-content img { display: block; }

  input, select, textarea, button { font-size: 16px; }

  .footer-legal { flex-direction: column; gap: 8px; }
}

@media (min-width: 700px) and (max-width: 1024px) {
  .assoc-grid,
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .brand-home strong { font-size: 0.88rem; }
  .menu-toggle-text { display: none; }
  .quick-links { grid-template-columns: 1fr 1fr; }
  .home-shortcuts { grid-template-columns: 1fr 1fr; }
}
