/* ACLSLL — calm civic design system. Green identity preserved, modernized. */

/* Fonts: self-hosted variable fonts, latin + latin-ext (French œ Œ). */
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Display faces used by the homepage hero and a few headings, formerly
   loaded from Google Fonts. Self-hosted so no visitor IP goes to Google. */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #FFFFFF;
  --surface: #F4F6F2;
  --surface-strong: #DCE8DC;
  --primary: #3E7A52;
  --color-brand-green: var(--primary);
  --color-foret: #0F3D24;
  --color-foret-hover: #164F31;
  --color-foret-shadow: rgba(15, 61, 36, 0.40);
  /* reserved for future accents (event date tile, etc.) */
  --color-lac: #1F4E73;
  --color-lac-hover: #2A5C8A;
  --color-lac-shadow: rgba(31, 78, 115, 0.35);
  --primary-dark: #264D34;
  --primary-deep: #264D34;
  --primary-light: #8DB89A;
  --primary-tint: #DCE8DC;
  --dark-green: #264D34;
  --light-green: #8DB89A;
  --tinted-green: #DCE8DC;
  --text: #1E1E1E;
  --text-primary: #1E1E1E;
  --muted: #6B6B65;
  --text-secondary: #6B6B65;
  --border: #DCE8DC;
  --border-strong: #8db89a;
  --danger: #9b1c1c;
  --danger-tint: #fbeaea;
  --warning: #7a4e00;
  --warning-tint: #fdf1dc;

  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --max: 1180px;
  --max-wide: 1400px;
  --max-w: 1200px;

  /* Shape system: 8px controls, 16px cards, 10px inputs/menus. */
  --radius-card: 12px;
  --radius-input: 10px;
  --radius-pill: 8px;
  --radius-btn: 6px;

  --shadow-soft: 0 1px 2px rgba(26, 56, 35, 0.05), 0 8px 24px rgba(26, 56, 35, 0.07);
  --shadow-raised: 0 2px 4px rgba(26, 56, 35, 0.07), 0 16px 40px rgba(26, 56, 35, 0.12);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --speed-fast: 120ms;
  --speed: 180ms;
  --speed-slow: 320ms;
  --speed-reveal: 640ms;
  --stagger: 70ms;

  --z-nav: 100;
  --z-skip: 200;
  --z-top: 90;

  /* Responsive foundation. The header is fixed, so every page clears it with
     var(--header-height); never write its pixel height into a page rule.
     Both tokens are redefined only inside the tablet and phone header
     queries, so desktop (>= 1081px) keeps these exact values. */
  --header-height: 64px;
  --page-gutter: 20px;
}

/* Cross-document view transitions: app-like navigation between pages.
   Pure progressive enhancement; unsupported browsers navigate normally. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vt-leave 240ms var(--ease-in-out) both;
}

::view-transition-new(root) {
  animation: vt-enter 360ms var(--ease-out-expo) both;
}

@keyframes vt-leave {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes vt-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* The sticky header and footer stay put while page content transitions. */
.site-header {
  view-transition-name: site-header;
}

.site-footer {
  view-transition-name: site-footer;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  font-size: 1.0625em;
  line-height: 1.65;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input {
  font: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 32px);
}

::selection {
  background: var(--primary-tint);
  color: var(--primary-deep);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: var(--z-skip);
  transform: translateY(-150%);
  background: var(--primary-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  display: flex;
  height: var(--header-height);
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid #E5E7EB;
  background: #FFFFFF;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: background 250ms ease, border-color 250ms ease, color 250ms ease, box-shadow 250ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.site-header.nav--over-hero {
  border-color: transparent;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

.site-header.nav--over-hero .primary-nav > a,
.site-header.nav--over-hero .primary-nav .nav-menu summary,
.site-header.nav--over-hero .nav-actions .nav-menu summary,
.site-header.nav--over-hero .brand,
.site-header.nav--over-hero .brand small {
  color: #FFFFFF;
}

.site-header.nav--over-hero .primary-nav > a:hover,
.site-header.nav--over-hero .primary-nav .nav-menu summary:hover {
  color: rgba(255, 255, 255, 0.75);
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.site-header.nav--over-hero .primary-nav .nav-menu[open] > summary,
.site-header.nav--over-hero .nav-actions .nav-menu summary:hover,
.site-header.nav--over-hero .nav-actions .nav-menu[open] > summary {
  color: rgba(255, 255, 255, 0.75);
}

.site-header.nav--over-hero .nav-actions .nav-menu summary:hover,
.site-header.nav--over-hero .nav-actions .nav-menu[open] > summary {
  background: rgba(255, 255, 255, 0.12);
}

.site-header.nav--over-hero .primary-nav > a[aria-current="page"],
.site-header.nav--over-hero .primary-nav .nav-menu.is-open summary {
  color: #FFFFFF;
  text-decoration-color: rgba(255, 255, 255, 0.55);
}

.site-header.nav--over-hero .primary-nav > a[aria-current="page"]:hover,
.site-header.nav--over-hero .primary-nav .nav-menu.is-open summary:hover {
  color: #FFFFFF;
  text-decoration-color: #FFFFFF;
}

.site-header.nav--over-hero .btn-secondary {
  border-color: #FFFFFF;
  color: #FFFFFF;
  background: transparent;
}

.site-header.nav--over-hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.scroll-sentinel {
  position: absolute;
  top: 0;
  width: 1px;
  height: 1px;
}

.nav-shell {
  width: min(100%, var(--max-w));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 42px;
}

.brand {
  display: inline-flex;
  position: relative;
  align-items: center;
  gap: 12px;
  width: 256px;
  height: var(--header-height);
  color: var(--primary-deep);
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: auto;
  height: 64px;
  object-fit: contain;
  transition: opacity 250ms ease;
}

.brand-header-logo {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: 52px;
  max-width: 100%;
  object-fit: contain;
  transition: opacity 250ms ease;
}

.brand-header-logo--dark {
  position: absolute;
  top: 50%;
  left: 0;
  opacity: 1;
  transform: translateY(-50%);
}

.brand-header-logo--light {
  opacity: 0;
}

.site-header.nav--over-hero .brand-header-logo--dark {
  opacity: 0;
}

.site-header.nav--over-hero .brand-header-logo--light {
  opacity: 1;
}

.brand-logo-dark {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
}

.brand-logo-light {
  opacity: 0;
}

.site-header.nav--over-hero .brand-logo-dark {
  opacity: 0;
}

.site-header.nav--over-hero .brand-logo-light {
  opacity: 1;
}

.brand-mark {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-dark);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand strong {
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 42px;
  margin-left: auto;
}

.primary-nav > a,
.primary-nav .nav-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border-radius: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
  transition: text-decoration-color var(--speed) var(--ease-out), color var(--speed) var(--ease-out);
}

.primary-nav > a:hover,
.primary-nav .nav-menu summary:hover,
.primary-nav .nav-menu[open] > summary {
  color: var(--primary);
  text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent);
}

.primary-nav > a[aria-current="page"],
.primary-nav .nav-menu.is-open summary {
  color: var(--color-foret);
  text-decoration-color: rgba(15, 61, 36, 0.55);
  font-weight: 500;
}

.primary-nav > a[aria-current="page"]:hover,
.primary-nav .nav-menu.is-open summary:hover {
  text-decoration-color: var(--color-foret);
}

.primary-nav .member-nav-menu {
  margin-left: 8px;
}

.primary-nav .member-nav-menu > summary {
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid rgba(15, 61, 36, 0.24);
  border-radius: var(--radius-pill);
  color: var(--primary-deep);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--speed) var(--ease-out),
    border-color var(--speed) var(--ease-out),
    color var(--speed) var(--ease-out);
}

.primary-nav .member-nav-menu > summary:hover,
.primary-nav .member-nav-menu[open] > summary,
.primary-nav .member-nav-menu.is-open > summary {
  border-color: rgba(15, 61, 36, 0.42);
  background: var(--primary-tint);
  color: var(--primary-deep);
  text-decoration: none;
}

.site-header.nav--over-hero .primary-nav .member-nav-menu > summary {
  border-color: rgba(255, 255, 255, 0.42);
  color: #FFFFFF;
}

.site-header.nav--over-hero .primary-nav .member-nav-menu > summary:hover,
.site-header.nav--over-hero .primary-nav .member-nav-menu[open] > summary,
.site-header.nav--over-hero .primary-nav .member-nav-menu.is-open > summary {
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-actions.member-nav-actions {
  display: none;
}

.mobile-nav-toggle {
  display: none;
}

.mobile-nav-panel {
  display: contents;
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  cursor: pointer;
  list-style: none;
}

.nav-actions .nav-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--speed) var(--ease-out), color var(--speed) var(--ease-out);
}

.nav-actions .nav-menu summary:hover,
.nav-actions .nav-menu[open] > summary {
  color: var(--primary-deep);
  background: var(--surface-strong);
}

@media (min-width: 1081px) {
  .primary-nav .member-nav-menu-mobile {
    display: none;
  }

  .nav-actions.member-nav-actions {
    display: flex;
    /* Width follows the buttons, so "Espace membre" stays on one line. */
    width: auto;
    flex: 0 0 auto;
    align-items: stretch;
  }

  .nav-actions .nav-menu > .member-actions-summary {
    min-height: 36px;
    height: 100%;
    white-space: nowrap;
    padding: 8px 11.3046875px;
    border: 1.5px solid #1A1A1A;
    border-radius: var(--radius-btn);
    background: transparent;
    color: #1A1A1A;
    font-size: 14px;
    font-weight: 500;
  }

  .nav-actions .nav-menu > .member-actions-summary:hover,
  .nav-actions .member-actions-menu[open] > .member-actions-summary {
    border-color: #1A1A1A;
    background: var(--surface);
    color: #1A1A1A;
  }

  .site-header.nav--over-hero .nav-actions .nav-menu > .member-actions-summary {
    border-color: #FFFFFF;
    background: transparent;
    color: #FFFFFF;
  }

  .site-header.nav--over-hero .nav-actions .nav-menu > .member-actions-summary:hover {
    border-color: #FFFFFF;
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
  }

  .site-header.nav--over-hero .nav-actions .member-actions-menu[open] > .member-actions-summary {
    border-color: #FFFFFF;
    background: transparent;
    color: #FFFFFF;
  }

  .site-header.nav--over-hero .nav-actions .member-actions-menu[open] > .nav-menu-panel {
    top: calc(100% + 3px);
  }
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: -3px;
  border-right: 1.75px solid currentColor;
  border-bottom: 1.75px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--speed) var(--ease-out);
}

.nav-menu[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}

.nav-menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 8px 0;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  animation: menu-in 200ms ease;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-menu-panel-right {
  left: auto;
  right: 0;
}

.nav-menu-panel a {
  display: block;
  padding: 10px 20px;
  color: #374151;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.nav-menu-panel a:hover {
  background: #F3F4F6;
  color: var(--color-foret, #0F3D24);
}

.account-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.avatar {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary-deep);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  font-size: 0.97rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--speed) var(--ease-out),
    color var(--speed) var(--ease-out),
    border-color var(--speed) var(--ease-out),
    box-shadow var(--speed) var(--ease-out),
    transform var(--speed) var(--ease-out);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 2px 4px rgba(26, 56, 35, 0.12), 0 12px 28px rgba(26, 56, 35, 0.22);
}

.btn-secondary {
  color: #1A1A1A;
  border-color: #1A1A1A;
  background: transparent;
}

.btn-secondary:hover {
  border-color: #1A1A1A;
  background: var(--surface);
}

.nav-actions .btn {
  min-height: 36px;
  padding: 8px 20px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 500;
}

.nav-actions .btn-primary {
  background: var(--color-foret);
  color: #FFFFFF;
}

.nav-actions .btn-primary:hover {
  background: var(--color-foret-hover);
  box-shadow: none;
}

.btn-large {
  min-height: 50px;
  padding-inline: 28px;
}

.text-link {
  color: var(--primary);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--primary-light);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--speed) var(--ease-out), color var(--speed) var(--ease-out);
}

.text-link:hover {
  color: var(--primary);
  text-decoration-color: var(--primary);
}

/* ----------------------------------------------------------- event banner */

.event-banner {
  margin-top: var(--header-height);
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
  color: var(--muted);
  padding: 12px 24px;
}

.event-banner-inner {
  width: min(100%, var(--max-w));
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.event-banner-inner strong {
  color: var(--dark-green);
  font-size: 14px;
  font-weight: 700;
}

.event-banner-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.event-banner-meta > span:last-child {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
}

.event-banner-dot {
  width: 8px;
  height: 8px;
  margin-right: 2px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--primary);
}

.event-banner a {
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  text-decoration-color: currentColor;
}

.event-banner a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------------ hero */

.page-hero h1,
.dashboard-hero h1 {
  margin: 0 0 20px;
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
}

.page-hero p,
.dashboard-hero p {
  max-width: 58ch;
  margin-block: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Hero entrance: one choreographed load sequence instead of scattered fades. */
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

html.js .page-hero > *,
html.js .dashboard-hero > * {
  animation: hero-rise 680ms var(--ease-out-expo) backwards;
}

html.js .page-hero > :nth-child(1),
html.js .dashboard-hero > :nth-child(1) {
  animation-delay: 60ms;
}

html.js .page-hero > :nth-child(2),
html.js .dashboard-hero > :nth-child(2) {
  animation-delay: 150ms;
}

html.js .page-hero > :nth-child(3),
html.js .dashboard-hero > :nth-child(3) {
  animation-delay: 250ms;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--primary-light);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 0;
}

.btn-hero {
  display: inline-block;
  min-height: 0;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-btn);
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.btn-hero:hover {
  background: var(--dark-green);
}

.hero-link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-link:hover {
  color: var(--dark-green);
}

/* -------------------------------------------------------------- sections */

.section,
.page-hero,
.dashboard-hero {
  width: min(100% - 2 * var(--page-gutter), var(--max));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0;
}

.section-muted {
  width: 100%;
  max-width: none;
  padding-inline: max(var(--page-gutter), calc((100% - var(--max)) / 2));
  background: var(--surface);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-heading h2 {
  margin: 0;
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.section-heading h2 + p,
.section-heading p {
  margin: 12px 0 0;
  color: var(--muted);
}

.event-section + .event-section {
  margin-top: clamp(48px, 7vw, 80px);
}

/* ----------------------------------------------------------------- cards */

.cards-grid {
  display: grid;
  gap: 22px;
}

.cards-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.sponsor-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 28px;
  transition: border-color var(--speed) var(--ease-out),
    box-shadow var(--speed) var(--ease-out),
    transform var(--speed) var(--ease-out);
}

.content-card:hover,
.action-card:hover,
.sponsor-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.benefits-section {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 96px clamp(24px, 5vw, 64px);
}

.benefits-section .section-heading {
  max-width: 720px;
  margin-bottom: 0;
}

.benefits-section .section-heading h2 {
  color: var(--color-brand-green);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
}

.benefits-section .section-heading p {
  margin-top: 12px;
  color: #6B7280;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 400;
}

.benefits-section .benefits-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 24px;
}

.benefits-stats {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin: 40px 0 56px;
}

.benefits-stats__item {
  padding: 0 40px;
}

.benefits-stats__item:first-child {
  padding-left: 0;
}

.benefits-stats__number {
  display: block;
  margin-bottom: 6px;
  color: var(--color-foret);
  font-family: "Fraunces", Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}

.benefits-stats__label {
  display: block;
  color: #9CA3AF;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.benefits-stats__divider {
  width: 1px;
  height: 40px;
  flex-shrink: 0;
  background: #E5E7EB;
}

.benefits-section .benefit-card {
  display: flex;
  flex-direction: column;
  overflow: visible;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #FFFFFF;
  color: inherit;
  text-decoration: none;
  transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 280ms ease,
    border-color 280ms ease;
}

.benefits-section .benefit-card:hover {
  border-color: rgba(15, 61, 36, 0.25);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  transform: translateY(-3px);
}

.benefits-section .benefit-card__media {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(135deg, #0F3D24 0%, #1A5C3A 50%, #0F3D24 100%);
}

.benefits-section .benefit-card__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 600ms ease;
}

.benefits-section .benefit-card:nth-child(1) .benefit-card__photo {
  object-position: center 50%;
}

.benefits-section .benefit-card:nth-child(2) .benefit-card__photo {
  object-position: center 55%;
}

.benefits-section .benefit-card:nth-child(3) .benefit-card__photo {
  filter: brightness(1.08);
  object-position: center 45%;
}

.benefits-section .benefit-card:nth-child(4) .benefit-card__photo {
  object-position: center 45%;
}

.benefits-section .benefit-card:hover .benefit-card__photo {
  transform: scale(1.03);
}

.benefits-section .benefit-card__overlay {
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.benefits-section .benefit-card__photo + .benefit-card__overlay {
  background: none;
}

.benefits-section .benefit-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 32px 28px;
  border-radius: 0 0 12px 12px;
  background: #FFFFFF;
}

.benefits-section .benefit-card__title {
  margin: 0 0 8px;
  color: #111827;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.benefits-section .benefit-card__desc {
  margin: 0;
  color: #6B7280;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}

.benefits-section .benefit-card__link {
  display: inline-block;
  margin-top: auto;
  padding-top: 20px;
  color: var(--color-foret, #0F3D24);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(15, 61, 36, 0.4);
  text-underline-offset: 4px;
}

.benefits-section .benefit-card:hover .benefit-card__link {
  text-decoration-color: var(--color-foret, #0F3D24);
}

/* Mission band: full-bleed brand statement. */
.mission-band {
  background: radial-gradient(120% 160% at 50% -30%, var(--primary-dark) 0%, var(--primary-deep) 58%);
  color: #fff;
}

/* The statement emerges as the band scrolls into view (CSS-only timeline). */
@supports (animation-timeline: view()) {
  @keyframes mission-emerge {
    from {
      opacity: 0.15;
      transform: translateY(30px) scale(0.97);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  html.js .mission-band-inner {
    animation: mission-emerge linear both;
    animation-timeline: view(block);
    animation-range: entry 5% entry 75%;
  }
}

.mission-band-inner {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) clamp(24px, 5vw, 64px) clamp(45px, 6.3vw, 78px);
  text-align: center;
}

.mission-statement {
  margin: 0 0 28px;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.mission-link {
  color: #fff;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--primary-light);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

.mission-link:hover {
  text-decoration-color: #fff;
}

/* News: featured article + compact ruled list. */
.news-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.news-feature h3 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
}

.news-feature h3 a {
  color: var(--primary-deep);
  text-decoration: none;
}

.news-feature h3 a:hover {
  color: var(--primary);
}

.news-feature-excerpt {
  margin: 0 0 18px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  border-top: 1px solid var(--border);
  text-decoration: none;
  transition: background var(--speed) var(--ease-out);
}

.news-row:hover {
  background: var(--surface);
}

.news-row-meta {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.news-row-title {
  color: var(--primary-deep);
  font-weight: 650;
  line-height: 1.35;
}

.news-row-arrow {
  display: inline-grid;
  place-items: center;
  color: var(--primary);
  transition: transform var(--speed) var(--ease-out);
}

.news-row-arrow svg {
  width: 18px;
  height: 18px;
}

.news-row:hover .news-row-arrow,
.document-row:hover .news-row-arrow {
  transform: translateX(4px);
}

.news-list-more {
  margin-top: 20px;
  font-size: 0.95rem;
}

/* Document rows: compact ruled list with file icon. */
.document-rows {
  display: flex;
  flex-direction: column;
  max-width: 860px;
}

.document-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 12px;
  border-top: 1px solid var(--border);
  text-decoration: none;
  border-radius: 8px;
  transition: background var(--speed) var(--ease-out);
}

.document-row:last-of-type {
  border-bottom: 1px solid var(--border);
}

.document-row:hover {
  background: #fff;
}

.document-row-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: var(--primary-tint);
  color: var(--primary-deep);
}

.document-row-icon svg {
  width: 22px;
  height: 22px;
}

.document-row-type {
  display: block;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 650;
}

.document-row-title {
  display: block;
  margin-top: 2px;
  color: var(--primary-deep);
  font-weight: 650;
  line-height: 1.35;
}

.home-sponsors {
  --home-sponsor-visual-width: 232px;
  --home-sponsor-visual-height: 284px;
  width: min(100%, 1280px);
  padding: 80px clamp(24px, 5vw, 64px) 24px;
  background: #FFFFFF;
}

.home-sponsors .section-heading {
  max-width: none;
  margin-bottom: 56px;
  text-align: center;
}

.home-sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 900px;
  margin: 0 auto;
  gap: 48px;
}

.home-sponsor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  transition: transform 200ms ease;
}

.home-sponsor-card:hover {
  transform: translateY(-2px);
}

.home-sponsor-image {
  display: flex;
  width: var(--home-sponsor-visual-width);
  height: var(--home-sponsor-visual-height);
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: none;
  overflow: hidden;
}

.home-sponsor-card img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 20px;
  border-radius: inherit;
  object-fit: contain;
}

.home-sponsor-card.is-portrait img {
  padding: 0;
  object-fit: cover;
  object-position: center top;
}

.home-sponsor-card.is-logo .home-sponsor-image {
  border: 1px solid #E7ECE8;
}

.home-sponsor-name {
  width: var(--home-sponsor-visual-width);
  max-width: var(--home-sponsor-visual-width);
  margin: 20px 0 0;
  color: var(--color-foret, #0F3D24);
  font-family: "Fraunces", Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}

.home-sponsor-description {
  width: var(--home-sponsor-visual-width);
  max-width: var(--home-sponsor-visual-width);
  margin: 8px 0 0;
  color: #3A3A3A;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-align: center;
  text-transform: uppercase;
}

/* Next event spotlight: full-bleed feature before the footer. */
.next-event-spotlight {
  background: #F0F4F1;
  color: #1F2937;
}

.announcements-carousel {
  position: relative;
  overflow: hidden;
}

.announcements-carousel__viewport {
  overflow: hidden;
}

.announcements-carousel__track {
  display: flex;
  transition: transform 300ms ease;
  will-change: transform;
}

.announcement-slide {
  width: 100%;
  min-width: 100%;
  flex: 0 0 100%;
}

.announcements-carousel__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(15, 61, 36, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-foret, #0F3D24);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 200ms ease, border-color 200ms ease;
}

.announcements-carousel__arrow:hover,
.announcements-carousel__arrow:focus-visible {
  border-color: rgba(15, 61, 36, 0.4);
  background: #fff;
}

.announcements-carousel__arrow:focus-visible {
  outline: 2px solid var(--color-foret, #0F3D24);
  outline-offset: 3px;
}

.announcements-carousel__arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.announcements-carousel__arrow--previous {
  left: clamp(8px, 1.5vw, 22px);
}

.announcements-carousel__arrow--next {
  right: clamp(8px, 1.5vw, 22px);
}

.announcements-carousel__dots {
  position: absolute;
  z-index: 2;
  bottom: 22px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transform: translateX(-50%);
}

.announcements-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 61, 36, 0.28);
  cursor: pointer;
  transition: background-color 200ms ease, transform 200ms ease;
}

.announcements-carousel__dot:hover,
.announcements-carousel__dot:focus-visible,
.announcements-carousel__dot.is-active {
  background: var(--color-foret, #0F3D24);
}

.announcements-carousel__dot.is-active {
  transform: scale(1.2);
}

.announcements-carousel__dot:focus-visible {
  outline: 2px solid var(--color-foret, #0F3D24);
  outline-offset: 3px;
}

.next-event-inner {
  display: grid;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) clamp(24px, 5vw, 64px) clamp(45px, 6.3vw, 78px);
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.next-event-media {
  margin: 0;
}

.next-event-media.is-placeholder {
  overflow: hidden;
  border-radius: 12px;
  background: rgba(15, 61, 36, 0.07);
}

.announcement-image-placeholder {
  display: grid;
  width: 100%;
  height: min(34vw, 400px);
  min-height: 280px;
  max-height: 400px;
  place-items: center;
  color: rgba(15, 61, 36, 0.3);
}

.announcement-image-placeholder svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.next-event-media img {
  display: block;
  width: 100%;
  height: min(34vw, 400px);
  min-height: 280px;
  max-height: 400px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center 40%;
}

.next-event-content {
  max-width: 520px;
  align-self: center;
}

.next-event-eyebrow {
  margin: 0 0 18px;
  color: #4B5563;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.next-event-date {
  margin: 0 0 18px;
  color: var(--color-foret, #0F3D24);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.next-event-content h2 {
  margin: 0;
  color: var(--color-foret, #0F3D24);
  font-family: "Fraunces", Georgia, serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.12;
}

.next-event-subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  font-weight: 400;
  line-height: 1.6;
}

.next-event-meta {
  margin: 12px 0 0;
  color: #4B5563;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.next-event-meta p {
  margin: 0;
}

.next-event-meta .next-event-location {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
}

.next-event-location svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--primary-deep);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.next-event-meta a {
  color: inherit;
  text-decoration: none;
}

.next-event-meta a:hover,
.next-event-meta a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.next-event-description {
  margin: 16px 0 0;
  color: #4B5563;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.next-event-description--vigie {
  max-width: 360px;
}

.next-event-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.next-event-link {
  color: var(--color-foret, #0F3D24);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.next-event-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: 1px solid #fff;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

/* Newsletter signup band before the footer. */
.newsletter-section {
  background: transparent;
  color: #fff;
}

.newsletter-inner {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) clamp(24px, 5vw, 64px) clamp(45px, 6.3vw, 78px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.site-footer .newsletter-inner h2 {
  margin: 0;
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: none;
}

.newsletter-inner > p {
  max-width: 620px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.8);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* Links to /infolettre, which holds the real consent form. The homepage band
   includes a visual email field but deliberately performs no submission:
   signup requires CSRF, an explicit consent checkbox and double opt-in.

   It is a `.btn` so it keeps the site-wide button shape, height and press
   feedback, and only inverts its colours: the band sits on `--primary-deep`,
   where the light-page green button would nearly disappear. */
.newsletter-actions {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  width: min(100%, 620px);
  margin: 24px auto 0;
}

.newsletter-email-preview {
  flex: 1 1 300px;
  min-width: 0;
  min-height: 50px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  line-height: 1.3;
}

.newsletter-email-preview::placeholder {
  color: #fff;
  opacity: 0.7;
}

.newsletter-section .newsletter-email-preview:hover,
.newsletter-section .newsletter-email-preview:focus,
.newsletter-section .newsletter-email-preview:focus-visible {
  color: var(--primary-deep);
}

.newsletter-section .newsletter-email-preview:hover::placeholder,
.newsletter-section .newsletter-email-preview:focus::placeholder,
.newsletter-section .newsletter-email-preview:focus-visible::placeholder {
  color: var(--primary-deep);
}

.newsletter-section .newsletter-email-preview:hover,
.newsletter-section .newsletter-email-preview:focus,
.newsletter-section .newsletter-email-preview:focus-visible {
  background: rgba(255, 255, 255, 0.6);
}

.newsletter-email-preview:focus-visible {
  border: 1px solid #fff;
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: none;
}

.site-footer .newsletter-cta {
  flex: 0 0 auto;
  background: #fff;
  color: var(--primary-deep);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.site-footer .newsletter-cta:hover {
  background: var(--primary-tint);
  color: var(--primary-deep);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 12px 26px rgba(0, 0, 0, 0.22);
}

.newsletter-cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* The band's real form (2 Dec.). The consent sentence opens under the field
   once it is used (site.js adds .js-newsletter, then .is-open); without
   JavaScript it is simply shown. */
.newsletter-footer-consent {
  width: min(100%, 620px);
  margin: 12px auto 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.newsletter-footer-consent a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Keyboard focus shows on the dark band (Neon, 2 Dec.: the site's outline
   has the band's own colour). */
.newsletter-footer-consent a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.newsletter-footer-form.js-newsletter .newsletter-footer-consent {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.25s ease, margin-top 0.25s ease, opacity 0.2s ease, visibility 0s linear 0.25s;
}

.newsletter-footer-form.js-newsletter.is-open .newsletter-footer-consent {
  max-height: 400px;
  margin-top: 12px;
  opacity: 1;
  visibility: visible;
  transition: max-height 0.25s ease, margin-top 0.25s ease, opacity 0.2s ease 0.05s;
}

.newsletter-footer-error {
  width: min(100%, 620px);
  margin: 20px auto 0;
  color: #ffd9d3;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

/* A sent request: the form gives way to this card. */
.newsletter-success {
  width: min(100%, 520px);
  margin: 28px auto 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
  animation: newsletter-success-in 0.35s ease both;
  /* Its content centred when site.js gives it the form's height. */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.newsletter-success:focus:not(:focus-visible) {
  outline: none;
}

.newsletter-success:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.newsletter-success-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary-deep);
}

.newsletter-success-icon svg {
  width: 22px;
  height: 22px;
}

.site-footer .newsletter-success-title {
  margin: 12px 0 0;
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  line-height: 1.2;
}

.site-footer .newsletter-success-text {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.5;
}

@keyframes newsletter-success-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .newsletter-footer-form.js-newsletter .newsletter-footer-consent,
  .newsletter-footer-form.js-newsletter.is-open .newsletter-footer-consent {
    transition: none;
  }

  .newsletter-success {
    animation: none;
  }
}

@media (max-width: 768px) {
  .home-sponsor-grid {
    grid-template-columns: 1fr;
  }

  .next-event-inner {
    grid-template-columns: 1fr;
  }

  .next-event-content {
    max-width: none;
  }

  .next-event-media img {
    height: min(62vw, 360px);
    min-height: 220px;
  }

  .announcement-image-placeholder {
    height: min(62vw, 360px);
    min-height: 220px;
  }

  .announcements-carousel__arrow {
    width: 36px;
    height: 36px;
  }

  .newsletter-actions {
    flex-direction: column;
  }

  .newsletter-email-preview,
  .newsletter-cta {
    width: 100%;
    flex-basis: auto;
  }
}

/* Closing invitation band before the footer. */
.member-cta {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.member-cta-inner {
  width: min(100% - 2 * var(--page-gutter), 760px);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 104px) 0;
  text-align: center;
}

.member-cta h2 {
  margin: 0 0 16px;
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.member-cta p {
  max-width: 56ch;
  margin: 0 auto 28px;
  color: var(--muted);
}

.card-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 12px;
  background: var(--primary-tint);
  color: var(--primary-deep);
  font-weight: 750;
  font-size: 1.05rem;
}

.content-card h3,
.action-card h2,
.sponsor-card h3 {
  margin: 0 0 10px;
  color: var(--primary-deep);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.3;
}

.content-card h3 a {
  text-decoration: none;
}

.content-card h3 a:hover {
  color: var(--primary);
}

.action-card {
  text-decoration: none;
}

.action-card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--primary-tint);
  color: var(--primary-deep);
  transition: background var(--speed-slow) var(--ease-out),
    color var(--speed-slow) var(--ease-out),
    transform var(--speed-slow) var(--ease-out-expo);
}

.action-card:hover .action-card-icon {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.action-card-icon svg {
  width: 24px;
  height: 24px;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.photo-strip a {
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.photo-strip img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 400ms var(--ease-out);
}

.photo-strip a:hover img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .photo-strip img {
    transition: none;
  }

  .photo-strip a:hover img {
    transform: none;
  }
}

.action-card h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.action-card h2::after {
  content: "\2192";
  color: var(--primary);
  font-weight: 400;
  transition: transform var(--speed) var(--ease-out);
}

.action-card:hover h2::after {
  transform: translateX(4px);
}

.content-card p,
.action-card p,
.sponsor-card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.content-card > p:last-of-type {
  margin-bottom: 0;
}

.content-card .text-link {
  font-size: 0.95rem;
}

.content-card h3 + p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.news-card {
  display: flex;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  transition: border-color var(--speed) var(--ease-out),
    background-color var(--speed) var(--ease-out);
}

.news-card:hover {
  border-color: var(--border-strong);
  background: color-mix(in srgb, var(--primary-tint) 24%, #fff);
}

.news-card:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.news-card[hidden] {
  display: none;
}

.news-card-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 22px 24px;
  color: inherit;
  text-decoration: none;
}

.news-card-link:focus-visible {
  outline: none;
}

.news-card h3 {
  margin: 0;
  color: var(--primary-deep);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.3;
}

.news-card-topics {
  display: grid;
  gap: 7px;
  margin: 18px 0 0;
  padding-left: 1.15rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
}

.news-card-topics li::marker {
  color: var(--primary);
}

.news-card-cta {
  margin-top: auto;
  padding-top: 22px;
  color: var(--primary-deep);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--primary) 38%, transparent);
  text-underline-offset: 0.2em;
}

.page-hero-wide .page-hero p {
  max-width: none;
}

/* --------------------------------------------------------- events index */

.events-page {
  --event-card-inline-padding: 18px;
  padding-top: 0;
}

.events-page .event-section + .event-section {
  margin-top: clamp(54px, 6.7vw, 80px);
}

.events-upcoming-heading {
  margin: clamp(44px, 5.5vw, 68px) 0 0;
}

.event-featured {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  align-items: stretch;
  gap: clamp(32px, 5vw, 64px);
  max-width: none;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px) var(--event-card-inline-padding);
  border: 0;
  border-radius: var(--radius-card);
  background: var(--bg);
}

.event-featured-media,
.event-past-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface);
}

.event-featured-media {
  width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
}

.event-featured-media img,
.event-past-media img,
.event-image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.event-featured-media img,
.event-past-media img {
  object-fit: cover;
}

.event-image-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.event-image-placeholder svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
  opacity: 0.42;
}

.event-featured-content {
  align-self: center;
  padding-block: clamp(8px, 2vw, 20px);
}

.event-featured-eyebrow {
  margin: 0 0 14px;
  color: var(--primary-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-featured-content h3 {
  margin: 0;
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.event-featured-schedule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.event-featured-day {
  color: #2f6b3a;
  font-family: var(--font-serif);
  font-size: 72px;
  font-weight: 400;
  line-height: 1;
}

.event-featured-date-meta {
  display: grid;
  gap: 4px;
}

.event-featured-month,
.event-featured-time {
  color: #2f6b3a;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.2;
}

.event-featured-month {
  text-transform: uppercase;
}

.event-featured-location {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
}

.event-featured-location svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--primary-deep);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.event-location-link {
  color: inherit;
  text-decoration: none;
}

.event-location-link:hover {
  text-decoration: underline;
}

.event-location-copy {
  display: inline-flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.event-location-history {
  margin-top: 2px;
  color: #6E6E6E;
  font-family: inherit;
  font-size: calc(1em - 2px);
  font-weight: 400;
  line-height: 1.35;
}

.event-featured-content .btn {
  margin-top: 26px;
}

.events-past-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 36px);
}

.events-upcoming-grid {
  margin-top: 24px;
}

.event-upcoming-card-link {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-card);
  cursor: pointer;
}

.event-upcoming-card-link:hover .text-link {
  text-decoration: underline;
}

/* Image, title, date and link sit on shared rows across the cards, so a
   title that wraps pushes every card's date and link down together instead
   of leaving one card out of line. */
@supports (grid-template-rows: subgrid) {
  /* A row gap here would be shared out into the subgrid rows and push the
     link away from the date; the cards' own padding spaces their rows. */
  .events-upcoming-grid {
    row-gap: 0;
  }

  .events-upcoming-grid .event-past-card > .event-upcoming-date {
    align-self: start;
  }

  .events-upcoming-grid > .event-upcoming-card-link,
  .events-upcoming-grid .event-past-card {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0;
  }

  .events-upcoming-grid .event-past-card > .text-link {
    justify-self: start;
    align-self: start;
    margin-top: 6px;
  }
}

.events-upcoming-grid .event-past-card {
  height: 100%;
  padding: 18px var(--event-card-inline-padding);
  border: 0;
  border-radius: var(--radius-card);
}

.event-past-card {
  min-width: 0;
}

.event-past-media {
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
}

.event-past-card > .event-upcoming-date {
  margin: 3px 0 0;
  color: #6E6E6E;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.event-upcoming-date-main,
.event-upcoming-date-separator,
.event-upcoming-date-time {
  color: inherit;
  font: inherit;
}

.event-past-card h3 {
  margin: 0;
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 500;
  line-height: 1.2;
}

.event-past-card > p {
  display: -webkit-box;
  max-width: 38ch;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.event-past-card .text-link {
  display: inline-block;
  margin-top: 11px;
  color: #2f6b3a;
  font-size: 13px;
  font-weight: 500;
}

.events-past-list {
  display: grid;
}

.event-past-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  color: inherit;
}

.event-past-row:last-child {
  border-bottom: 1px solid var(--border);
}

.event-past-thumbnail {
  width: 96px;
  height: 96px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--surface);
}

.event-past-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-past-thumbnail .event-image-placeholder svg {
  width: 26px;
  height: 26px;
}

.event-past-row-copy {
  position: relative;
  min-width: 0;
  padding-right: clamp(150px, 18vw, 220px);
}

.event-past-row-heading,
.event-past-row-details {
  display: block;
}

.event-past-row-heading h3 {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
}

.event-past-row-heading time {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 1.12rem;
  text-align: right;
}

.event-past-row-details {
  margin-top: 6px;
}

.event-past-row-details p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-past-photos-link {
  display: inline-block;
  margin-top: 6px;
  color: #2f6b3a;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--primary-light);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--speed) var(--ease-out), color var(--speed) var(--ease-out);
}

.event-past-photos-link:hover,
.event-past-photos-link:focus-visible {
  color: #2f6b3a;
  text-decoration-color: #2f6b3a;
}

.events-empty-state {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.65;
  text-align: center;
}

@media (max-width: 900px) {
  .event-featured {
    grid-template-columns: 1fr;
    max-width: 680px;
  }

  .events-past-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .event-featured {
    padding: 16px var(--event-card-inline-padding);
  }

  .events-past-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .event-past-row {
    align-items: start;
    gap: 14px;
  }

  .event-past-row-heading,
  .event-past-row-details {
    display: block;
  }

  .event-past-row-copy {
    padding-right: 0;
  }

  .event-past-row-heading time {
    position: static;
    display: block;
    margin-top: 4px;
    transform: none;
    text-align: left;
  }
}

.events-list {
  display: grid;
}

.event-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
}

.event-row:last-child {
  border-bottom: 1px solid var(--border);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: start;
  gap: 2px;
  margin: 0;
  padding: 16px 8px 12px;
  border-radius: var(--radius-card);
  background: var(--primary-tint);
  text-align: center;
  transition: background var(--speed-slow) var(--ease-out),
    transform var(--speed-slow) var(--ease-out-expo);
}

.event-row:hover .event-date {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.event-row-past .event-date {
  background: var(--surface);
}

.event-date-day {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary-deep);
}

.event-date-month {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--primary-dark);
}

.event-row-body .meta {
  margin-bottom: 8px;
}

.event-row-body h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 700;
}

.event-row-body h3 a {
  color: var(--text);
  text-decoration: none;
}

.event-row-body h3 a:hover {
  color: var(--primary);
}

.event-row-body > p:not(.meta) {
  margin: 0;
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.65;
}

.event-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 20px;
}

.event-card-actions .btn {
  min-height: 40px;
  padding: 7px 18px;
  font-size: 0.92rem;
}

.meta {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.visibility-badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--primary-tint);
  color: var(--primary-deep);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.section-action {
  margin-top: 36px;
  text-align: center;
}

.map-frame {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 38vw, 460px);
  border: 0;
}

/* ----------------------------------------------------------------- account */

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.account-card h2 {
  margin-top: 0;
  color: var(--primary-deep);
  font-size: 1.3rem;
}

.account-card dl {
  margin: 0;
}

.account-card dl div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.account-card dt {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.account-card dd {
  margin: 0;
}

.account-card .btn {
  margin-top: 20px;
}

/* ------------------------------------------------------------- page hero */

.page-hero {
  padding-block: clamp(44px, 6vw, 72px) clamp(20px, 3vw, 36px);
}

.prose {
  max-width: 720px;
}

.prose > * + * {
  margin-top: 1.05rem;
}

.prose h2,
.prose h3 {
  color: var(--primary-deep);
  line-height: 1.25;
  margin-top: 2rem;
}

.prose h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.6rem;
}

.prose a {
  color: var(--primary-dark);
  text-decoration-color: var(--primary-light);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--primary);
}

/* ------------------------------------------------ privacy statement */

.privacy-page {
  padding-top: clamp(12px, 2vw, 20px);
  padding-bottom: clamp(80px, 10vw, 128px);
}

.privacy-content {
  max-width: none;
  color: #333;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
}

.privacy-content > p:first-child {
  margin-top: 0;
  color: var(--primary-deep);
  font-size: 1.08rem;
  font-weight: 650;
}

.privacy-content > p:nth-child(2) {
  margin-top: 12px;
  margin-bottom: clamp(38px, 5vw, 54px);
  font-size: 1.04rem;
  line-height: 1.8;
}

.privacy-content h2 {
  margin: clamp(34px, 4vw, 46px) 0 12px;
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.28rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}

.privacy-content h2 + p {
  margin-top: 0;
}

.privacy-content > p:last-child {
  margin-top: clamp(48px, 6vw, 68px);
  color: var(--primary-deep);
  font-weight: 650;
}

/* --------------------------------------------------------- galleries index */

.gallery-page-hero .page-hero {
  padding-top: calc(var(--header-height) + var(--page-top-gap, 60px));
}

.gallery-index-page {
  padding-top: clamp(28px, 4vw, 48px);
}

.gallery-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}

.gallery-index-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
}

.gallery-index-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--surface);
}

.gallery-index-date {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 5px 8px;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}

.gallery-index-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease-out);
}

.gallery-index-cover:hover img,
.gallery-index-cover:focus-visible img {
  transform: scale(1.02);
}

.gallery-index-content {
  padding: 22px 22px 24px;
}

.gallery-index-content h2 {
  margin: 0 0 16px;
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.2;
}

.gallery-index-content h2 a {
  color: inherit;
  text-decoration: none;
}

.gallery-index-content h2 a:hover {
  color: var(--primary);
}

.gallery-index-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.gallery-index-link {
  flex: 0 0 auto;
  color: var(--primary-dark);
  font-weight: 500;
  text-decoration-line: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.gallery-index-link:hover {
  color: var(--primary);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-index-cover img {
    transition: none;
  }

  .gallery-index-cover:hover img,
  .gallery-index-cover:focus-visible img {
    transform: none;
  }
}

/* ------------------------------------------------------- association */

.association-page-hero .page-hero {
  padding-top: calc(var(--header-height) + var(--page-top-gap, 96px));
  padding-bottom: clamp(12px, 1.5vw, 20px);
}

.association-page-hero .page-hero h1 {
  margin-bottom: 0;
}

.events-page-hero .page-hero {
  padding-top: calc(var(--header-height) + var(--page-top-gap, 60px));
  padding-bottom: clamp(12px, 2vw, 20px);
}

.events-page-hero .page-hero h1 + p,
.privacy-page-hero h1 + p {
  margin-top: 8px;
}

.association-page {
  width: min(100% - 2 * var(--page-gutter), var(--max));
  margin: 0 auto;
  padding: clamp(24px, 3vw, 36px) 0 clamp(80px, 10vw, 128px);
}

.association-chapter + .association-chapter {
  margin-top: clamp(80px, 10vw, 120px);
}

.association-chapter h2,
.association-chapter h3 {
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
}

.association-chapter h2 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 4vw, 2.65rem);
}

.association-chapter h3 {
  margin: clamp(32px, 5vw, 48px) 0 14px;
  font-size: clamp(1.35rem, 2.7vw, 1.7rem);
}

.association-chapter p,
.association-chapter li {
  line-height: 1.75;
}

.association-chapter > p + p,
.association-history-intro p + p,
.association-accordion-content p + p {
  margin-top: 1.1rem;
}

.association-chapter ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.association-intro-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
  gap: clamp(42px, 7vw, 88px);
  align-items: start;
}

.association-history-lead-media {
  width: 100%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  background: var(--surface);
}

.association-history-lead-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.association-intro-copy {
  padding-top: clamp(6px, 1vw, 14px);
}

.association-intro-copy h2 {
  margin-bottom: 22px;
}

.association-pullquote {
  margin: clamp(32px, 5vw, 48px) 0 0;
  padding: 8px 0 8px clamp(20px, 4vw, 32px);
  border-left: 4px solid var(--primary);
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.7vw, 1.5rem);
  font-style: italic;
}

.association-pullquote p {
  line-height: 1.55;
}

.association-pullquote cite {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-style: normal;
}

/* ---------------------------------------------- sécurité du quartier */

.safety-page-shell,
.conseil-page-shell {
  width: min(100% - 2 * var(--page-gutter), 1040px);
  margin: 0 auto;
}

.safety-page-shell .page-hero,
.safety-page-shell .safety-page,
.conseil-page-shell .page-hero,
.conseil-page-shell .conseil-page {
  width: 100%;
  margin-inline: 0;
}

.safety-page {
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(80px, 10vw, 128px);
}

.safety-content {
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
}

.safety-lead-media {
  width: 100%;
  margin: 0 0 clamp(42px, 6vw, 64px);
}

.safety-lead-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
}

.safety-content h2 {
  margin: clamp(44px, 6vw, 64px) 0 20px;
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.safety-content h2:first-child {
  margin-top: 0;
}

.safety-content ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 1.25rem;
}

.safety-content li {
  padding-left: 0.2rem;
}

.safety-content li::marker {
  color: var(--primary);
}

.safety-content strong {
  color: var(--primary-deep);
  font-weight: 650;
}

.safety-notice {
  margin: clamp(52px, 7vw, 76px) 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--primary-deep);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.6;
}

.newsletter-inner--page {
  width: min(100% - 2 * var(--page-gutter), var(--max));
  padding-inline: 0;
}

@media (max-width: 700px) {
  .safety-page-shell,
  .conseil-page-shell,
  .newsletter-inner--page {
    width: min(100% - 2 * var(--page-gutter), var(--max));
  }

  .safety-content h2 {
    margin-top: 38px;
  }
}

.association-history-intro {
  width: 100%;
  max-width: 64ch;
  margin: 0;
}

.association-history-intro p {
  margin: 0;
  text-wrap: pretty;
}

.association-history-timeline {
  margin-top: clamp(64px, 8vw, 96px);
}

.association-accordion {
  border-top: 1px solid var(--border);
}

.association-accordion-item {
  border-bottom: 1px solid var(--border);
}

.association-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 24px 0;
  border: 0;
  background: transparent;
  color: var(--primary-deep);
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
}

.association-accordion-trigger:hover {
  color: var(--primary);
}

.association-accordion-trigger:focus-visible {
  border-radius: 4px;
  outline: 3px solid color-mix(in srgb, var(--primary) 30%, transparent);
  outline-offset: 4px;
}

.association-accordion-chevron {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform var(--speed-slow) var(--ease-out);
}

.association-accordion-item.is-open .association-accordion-chevron {
  transform: rotate(180deg);
}

.association-accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 380ms var(--ease-out), visibility 0s 380ms;
}

.association-accordion-item.is-open .association-accordion-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 380ms var(--ease-out);
}

.association-accordion-content {
  min-height: 0;
  overflow: hidden;
}

.association-accordion-item.is-open .association-accordion-content {
  padding-bottom: clamp(28px, 5vw, 44px);
}

.association-accordion-content h3:first-child {
  margin-top: 6px;
}

.association-accordion-content .association-pullquote {
  margin-block: 28px;
}

/* ----------------------------------------------- conseil d’administration */

.conseil-page-hero .page-hero {
  padding-bottom: clamp(18px, 2vw, 26px);
  text-align: left;
}

.conseil-page {
  padding-top: 0;
  padding-bottom: clamp(80px, 10vw, 128px);
}

.conseil-editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.7fr) minmax(0, 1fr);
  gap: clamp(44px, 5vw, 60px);
  width: 100%;
  align-items: start;
  margin-inline: auto;
}

.conseil-board-block {
  width: 100%;
  margin: 0;
}

.conseil-board-photo {
  position: relative;
  width: 100%;
  margin: 0;
}

.conseil-board-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
}

.conseil-board-hotspots {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
}

.conseil-board-hotspot {
  position: absolute;
  top: 38%;
  height: 59%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.conseil-board-hotspot--1 { left: 8.5%; width: 11.5%; }
.conseil-board-hotspot--2 { left: 20%; width: 10.3%; }
.conseil-board-hotspot--3 { left: 30.3%; width: 8.4%; }
.conseil-board-hotspot--4 { left: 38.7%; width: 10.4%; }
.conseil-board-hotspot--5 { left: 49.1%; width: 11.25%; }
.conseil-board-hotspot--6 { left: 60.35%; width: 11.35%; }
.conseil-board-hotspot--7 { left: 71.7%; width: 10.6%; }
.conseil-board-hotspot--8 { left: 82.3%; width: 12.7%; }

.conseil-board-hotspot:focus-visible {
  outline: 2px solid rgba(38, 77, 52, 0.8);
  outline-offset: -2px;
}

.conseil-board-tooltip {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  display: grid;
  gap: 1px;
  min-width: max-content;
  padding: 6px 9px;
  border-radius: 4px;
  background: rgba(24, 43, 30, 0.94);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.25;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.conseil-board-tooltip strong {
  font-weight: 600;
}

.conseil-board-tooltip span {
  color: rgba(255, 255, 255, 0.78);
}

.conseil-board-hotspot--1 .conseil-board-tooltip {
  left: 0;
  transform: translate(0, -6px);
}

.conseil-board-hotspot--8 .conseil-board-tooltip {
  right: 0;
  left: auto;
  transform: translate(0, -6px);
}

.conseil-board-hotspot:hover .conseil-board-tooltip,
.conseil-board-hotspot:focus-visible .conseil-board-tooltip,
.conseil-board-hotspot.is-active .conseil-board-tooltip {
  opacity: 1;
  transform: translate(-50%, -10px);
}

.conseil-board-hotspot--1:hover .conseil-board-tooltip,
.conseil-board-hotspot--1:focus-visible .conseil-board-tooltip,
.conseil-board-hotspot--1.is-active .conseil-board-tooltip,
.conseil-board-hotspot--8:hover .conseil-board-tooltip,
.conseil-board-hotspot--8:focus-visible .conseil-board-tooltip,
.conseil-board-hotspot--8.is-active .conseil-board-tooltip {
  transform: translate(0, -10px);
}

.conseil-section {
  width: min(100%, 960px);
  margin-inline: auto;
}

.conseil-board-photo + .conseil-board-info {
  margin-top: clamp(20px, 2.5vw, 26px);
}

.conseil-section + .conseil-section {
  margin-top: clamp(24px, 3.5vw, 38px);
}

.conseil-board-info {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 36px);
  width: 100%;
  align-items: start;
  margin-inline: auto;
}

.conseil-board-info .conseil-section {
  width: 100%;
  margin: 0;
}

.conseil-board-info .conseil-section h2 {
  margin-bottom: 8px;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.22;
  white-space: nowrap;
}

.conseil-section h2 {
  margin: 0 0 clamp(15px, 2vw, 20px);
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.18;
}

.conseil-member-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.conseil-member-list li {
  min-width: 0;
  padding: 0;
}

.conseil-member-name {
  color: var(--text);
  font-weight: 600;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.conseil-member-list li.is-photo-active .conseil-member-name {
  color: var(--primary-dark);
  text-decoration-line: underline;
  text-decoration-color: currentColor;
}

.conseil-member-role {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.conseil-honorary {
  color: var(--muted);
}

.conseil-honorary h2 {
  margin-bottom: 10px;
}

.conseil-honorary ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.conseil-honorary li {
  color: var(--text);
  font-weight: 600;
}

.conseil-minutes {
  width: 100%;
  margin-top: 0;
}

.conseil-minutes-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.conseil-minutes-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.22rem, 1.7vw, 1.5rem);
  white-space: nowrap;
}

.conseil-carousel-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.conseil-carousel-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--primary-dark);
  cursor: pointer;
  place-items: center;
}

.conseil-carousel-arrow:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.conseil-carousel-arrow:disabled {
  cursor: default;
  opacity: 0.35;
}

.conseil-carousel-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.conseil-carousel-viewport {
  height: 284px;
  overflow: hidden;
}

.conseil-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.conseil-carousel-viewport:focus-visible {
  border-radius: var(--radius-card);
  outline: 3px solid color-mix(in srgb, var(--primary) 28%, transparent);
  outline-offset: 4px;
}

.conseil-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 260ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.conseil-minute-group {
  display: grid;
  flex: 0 0 100%;
  grid-auto-rows: 88px;
  align-content: start;
  gap: 10px;
  min-width: 0;
  opacity: 0.6;
  transition: opacity 220ms ease;
}

.conseil-minute-group.is-active {
  opacity: 1;
}

.conseil-minute-card {
  display: flex;
  min-height: 88px;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 15px;
  border: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
  border-radius: var(--radius-card);
  background: #fff;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.conseil-minute-card:hover {
  border-color: color-mix(in srgb, var(--primary) 38%, var(--border));
  background: color-mix(in srgb, var(--primary-tint) 32%, #fff);
}

.conseil-minute-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 28%, transparent);
  outline-offset: -1px;
}

@media (prefers-reduced-motion: reduce) {
  .conseil-carousel-track,
  .conseil-minute-group,
  .conseil-minute-card {
    transition: none;
  }
}

.conseil-minute-card time {
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  font-weight: 600;
  line-height: 1.25;
}

.conseil-minute-link {
  width: fit-content;
  margin-top: auto;
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.conseil-minute-link:hover {
  color: var(--primary);
}

.conseil-minute-page {
  padding-top: calc(var(--header-height) + var(--page-top-gap, 60px));
  padding-bottom: clamp(80px, 10vw, 128px);
}

.conseil-minute-article {
  width: min(100%, 1040px);
  margin-inline: auto;
}

.conseil-minute-back {
  display: block;
  width: min(100%, 1000px);
  margin: 0 auto 30px;
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.conseil-minute-header {
  width: min(100%, 1000px);
  margin-bottom: 22px;
  margin-inline: auto;
}

.conseil-minute-header h1 {
  margin: 0;
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(2.05rem, 4.15vw, 3.3rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-align: left;
}

.conseil-minute-date {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.conseil-minute-body {
  width: min(100%, 1000px);
  margin-inline: auto;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.74;
}

.conseil-minute-intro {
  margin-bottom: 22px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.74;
}

.conseil-minute-intro .conseil-minute-lede {
  margin-bottom: 15px;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: left;
}

.conseil-minute-intro .conseil-minute-lede strong {
  font-weight: 400;
}

.conseil-minute-body .conseil-minute-intro p {
  margin: 0 0 15px;
  text-align: left;
}

.conseil-minute-body .conseil-minute-intro p:last-child {
  margin-bottom: 0;
}

.conseil-minute-body h2,
.conseil-minute-body h3 {
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-weight: 500;
}

.conseil-minute-body h2 {
  margin: clamp(40px, 4.75vw, 48px) 0 8px;
  font-size: clamp(1.12rem, 1.75vw, 1.32rem);
  line-height: 1.35;
}

.conseil-minute-sections > h2:first-child {
  margin-top: 0;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.conseil-minute-body h3 {
  margin: 20px 0 6px;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  line-height: 1.4;
}

.conseil-minute-body p {
  margin: 0 0 15px;
  hyphens: auto;
  text-align: justify;
  text-justify: inter-word;
}

.conseil-minute-body strong {
  font-weight: 600;
}

.conseil-minute-body .conseil-minute-bullet {
  position: relative;
  margin-bottom: 10px;
  padding-left: 20px;
}

.conseil-minute-body .conseil-minute-bullet::before {
  position: absolute;
  top: 0;
  left: 2px;
  color: var(--primary-dark);
  content: "•";
}

@media (max-width: 900px) {
  /* minmax(0, 1fr): a bare 1fr cannot shrink below the photo's no-wrap name
     tooltips, which pushed the page 34-54px sideways below ~345px. */
  .conseil-editorial-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 64px;
  }
}

@media (max-width: 760px) {
  .conseil-board-info {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .conseil-board-info .conseil-section h2 {
    white-space: normal;
  }

  .conseil-minutes-heading {
    align-items: flex-end;
  }

  .conseil-minute-card {
    min-height: 88px;
  }

  .conseil-minute-page {
    padding-top: calc(var(--header-height) + var(--page-top-gap, 8px));
  }

  .conseil-minute-header h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .conseil-minute-header {
    margin-bottom: 22px;
  }
}

/* ------------------------------------------------ charte et règlements */

body:has(.charter-page) {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
}

body:has(.charter-page) > main {
  flex: 1 0 auto;
}

.charter-page-hero .page-hero {
  padding-top: calc(var(--header-height) + var(--page-top-gap, 60px));
  padding-bottom: 40px;
  text-align: center;
}

.charter-page-hero .page-hero p {
  max-width: none;
  margin-inline: auto;
}

.charter-page {
  width: min(100% - 2 * var(--page-gutter), 980px);
  margin: 0 auto;
  padding-bottom: 0;
}

.charter-blocks {
  border-top: 1px solid #dfe2df;
}

.charter-block-header {
  margin: 0;
}

.charter-block-header h2 {
  margin: 0;
}

.charter-block {
  border-bottom: 1px solid #dfe2df;
}

.charter-major-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 27px 0;
  border: 0;
  background: transparent;
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.charter-major-trigger:hover {
  color: var(--primary);
}

.charter-major-trigger:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 5px;
}

.charter-major-heading {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.charter-major-preview {
  max-width: none;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.5;
}

.charter-block.is-open > .charter-block-header .charter-major-preview {
  display: none;
}

.charter-major-chevron {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: transform 220ms var(--ease-out-expo);
}

.charter-block.is-open > .charter-block-header .charter-major-chevron {
  transform: rotate(180deg);
}

.charter-major-panel {
  padding: 6px 0 38px;
}

.charter-introduction {
  max-width: 48rem;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.8;
}

.charter-introduction p,
.charter-information p {
  margin: 0;
}

.charter-neighborhood-block {
  margin-top: 14px;
  padding: 0;
}

.charter-information {
  max-width: 760px;
  margin-bottom: 28px;
  padding: 4px 0 4px 18px;
  border-left: 2px solid #d7dbd8;
  color: var(--muted);
  font-size: 0.94rem;
  font-style: normal;
  line-height: 1.7;
}

.charter-information a,
.charter-accordion-content a {
  color: var(--primary-dark);
  text-decoration-color: var(--primary-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.charter-information a:hover,
.charter-accordion-content a:hover {
  color: var(--primary);
}

.charter-page .association-accordion {
  border-top-color: #dfe2df;
}

.charter-page .association-accordion-item {
  border-bottom-color: #dfe2df;
}

.charter-page .association-accordion-trigger {
  padding-block: 18px;
  font-size: clamp(1.05rem, 1.6vw, 1.23rem);
}

.charter-accordion-label {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.charter-regulation-icon {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.charter-accordion-content {
  max-width: 860px;
  padding-right: clamp(20px, 5vw, 48px);
  color: #404344;
  font-size: 0.98rem;
  line-height: 1.78;
}

.charter-accordion-regulations .charter-accordion-content {
  padding-left: 34px;
}

.charter-accordion-content p,
.charter-accordion-content ol,
.charter-accordion-content ul {
  margin-top: 0;
  margin-bottom: 0;
}

.charter-accordion-content > * + * {
  margin-top: 1.05rem;
}

.charter-accordion-content ol,
.charter-accordion-content ul {
  padding-left: 1.55rem;
}

.charter-accordion-content ol.legal-articles {
  display: block;
  padding-left: 0;
  list-style: none;
  counter-reset: legal-article var(--legal-start);
}

.charter-accordion-content .legal-articles > li {
  display: grid;
  grid-template-columns: 3.25ch minmax(0, 1fr);
  column-gap: 0.8rem;
  align-items: start;
  counter-increment: legal-article;
}

.charter-accordion-content .legal-articles > li::before {
  grid-column: 1;
  color: var(--primary-deep);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
  content: counter(legal-article) ".";
}

.charter-accordion-content .legal-articles > li > * {
  grid-column: 2;
}

.charter-accordion:not(.charter-accordion-regulations) .charter-accordion-content > p {
  margin-left: calc(3.25ch + 0.8rem);
}

.charter-accordion-content .legal-articles + .legal-articles,
.charter-accordion-content .legal-articles + p,
.charter-accordion-content p + .legal-articles {
  margin-top: 1.2rem;
}

.charter-accordion-content li + li {
  margin-top: 0.45rem;
}

.charter-accordion-content h3 {
  margin: 1.8rem 0 0.7rem;
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.charter-accordion-content strong {
  color: var(--primary-deep);
  font-weight: 650;
}

/* ------------------------------------------------ crue des eaux */

.flood-page-hero .page-hero p {
  max-width: none;
}

.flood-page {
  width: min(100% - 2 * var(--page-gutter), var(--max));
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) 0 clamp(88px, 10vw, 128px);
}

.flood-editorial-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(40px, 6vw, 72px);
  max-width: none;
}

.flood-page .flood-editorial-section + .flood-editorial-section {
  margin-top: clamp(52px, 6vw, 76px);
}

.flood-section-copy {
  min-width: 0;
}

.flood-page .flood-section-heading {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: 2.125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: wrap;
}

.flood-section-actions {
  margin-top: 24px;
}

.flood-resource-link {
  border-color: var(--primary);
  background: #fff;
  color: var(--primary-dark);
}

.flood-resource-link:hover {
  border-color: var(--primary-dark);
  background: var(--primary-tint);
  color: var(--primary-deep);
}

.flood-section-media,
.flood-section-media-stack {
  margin: 0;
}

.flood-editorial-section > .flood-section-media,
.flood-section-media-stack {
  width: 100%;
  max-width: 520px;
}

.flood-editorial-section:first-child > .flood-section-media,
.flood-section-media-stack {
  margin-left: auto;
}

.flood-section-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
}

.flood-section-media-stack .flood-section-media + .flood-section-media {
  width: 100%;
  margin-top: 16px;
  margin-left: 0;
}

@media (max-width: 820px) {
  .flood-page-hero .page-hero,
  .flood-page {
    width: min(100% - 2 * var(--page-gutter), var(--max));
  }

  .flood-editorial-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .flood-editorial-section > .flood-section-media,
  .flood-section-media-stack {
    max-width: none;
    margin-left: 0;
  }

  .flood-section-media-stack .flood-section-media + .flood-section-media {
    width: 100%;
  }
}

.association-filmstrip {
  position: relative;
  width: min(calc(100vw - 48px), var(--max));
  margin: 0 50% clamp(52px, 7vw, 76px);
  transform: translateX(-50%);
}

.association-filmstrip-viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-padding-inline: 36px;
  scroll-snap-type: x proximity;
}

.association-filmstrip-viewport::-webkit-scrollbar {
  display: none;
}

.association-filmstrip-viewport:focus-visible {
  border-radius: var(--radius-input);
  outline: 3px solid color-mix(in srgb, var(--primary) 28%, transparent);
  outline-offset: 5px;
}

.association-filmstrip-track {
  position: relative;
  display: flex;
  gap: 30px;
  width: max-content;
  margin: 0;
  padding: 0 36px 18px;
  list-style: none;
}

.association-filmstrip-track::before {
  position: absolute;
  top: 7px;
  right: 0;
  left: 0;
  height: 2px;
  background: color-mix(in srgb, var(--primary-deep) 72%, transparent);
  content: "";
}

.association-filmstrip-item {
  position: relative;
  flex: 0 0 220px;
  width: 220px;
  scroll-snap-align: start;
}

.association-filmstrip-dot {
  position: absolute;
  top: 2px;
  left: 50%;
  z-index: 1;
  width: 12px;
  height: 12px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--primary-deep);
  transform: translateX(-50%);
}

.association-filmstrip-card {
  padding-top: 30px;
}

.association-chapter .association-filmstrip-year {
  margin: 0 0 12px;
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.3vw, 1.6rem);
  font-weight: 600;
  line-height: 1;
  text-align: left;
}

.association-filmstrip-image {
  display: grid;
  width: 220px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  place-items: center;
  border-radius: 4px;
  background: var(--surface);
}

.association-filmstrip-image img {
  width: 100%;
  height: 100%;
  filter: grayscale(0.72) contrast(1.03);
  object-fit: cover;
  transition: filter 300ms var(--ease-out), transform 500ms var(--ease-out);
}

.association-filmstrip-image--portrait img {
  object-fit: cover;
  object-position: center 42%;
}

.association-filmstrip-card:hover .association-filmstrip-image img {
  filter: grayscale(0.2) contrast(1.02);
  transform: scale(1.018);
}

.association-filmstrip-image svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
  opacity: 0.34;
}

.association-chapter .association-filmstrip-caption {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: left;
}

.association-history-sections {
  margin-top: clamp(88px, 10vw, 124px);
}

/* À propos with its blocs in another order (Site web › Modifier): the same
   space above a bloc that no longer comes first, none above the first. */
.association-chapter > .association-intro-grid:not(:first-child) {
  margin-top: clamp(64px, 8vw, 96px);
}

.association-chapter > .association-history-timeline:first-child,
.association-chapter > .association-history-sections:first-child {
  margin-top: 0;
}

/* Blocs added in Site web › Modifier (site/snippets/blocs/): the page's own
   headings, text and photos, the same space as the sections around them. */
.page-bloc {
  margin-top: clamp(64px, 8vw, 96px);
}

.page-bloc:first-child,
.association-chapter > .page-bloc:first-child,
.flood-page > .page-bloc:first-child {
  margin-top: 0;
}

/* Any page: a section after an added bloc keeps the same space. */
.page-bloc + :not(.page-bloc) {
  margin-top: clamp(64px, 8vw, 96px);
}

/* Crue des eaux: the space its blocs keep between them. */
.flood-page > .page-bloc,
.flood-page > .page-bloc + .flood-editorial-section {
  margin-top: clamp(52px, 6vw, 76px);
}

.association-chapter > .page-bloc + .association-history-timeline {
  margin-top: clamp(64px, 8vw, 96px);
}

.page-bloc h2 {
  margin: 0 0 24px;
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 600;
  line-height: 1.2;
}

.page-bloc p {
  line-height: 1.75;
}

.page-bloc-copy p + p {
  margin-top: 1.1rem;
}

.page-bloc-copy {
  max-width: 68ch;
}

.page-bloc-split {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
  gap: clamp(42px, 7vw, 88px);
  align-items: center;
}

.page-bloc-split.is-image-right {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
}

.page-bloc-split.is-image-right .page-bloc-media {
  order: 2;
}

.page-bloc-media,
.page-bloc-figure {
  margin: 0;
}

.page-bloc-media img,
.page-bloc-figure img,
.page-bloc .page-bloc-gallery img {
  display: block;
  width: 100%;
  border-radius: var(--radius-card);
  object-fit: cover;
}

.page-bloc-media img {
  aspect-ratio: 4 / 5;
}

.page-bloc-figure figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.page-bloc .page-bloc-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-bloc .page-bloc-gallery img {
  aspect-ratio: 4 / 3;
}

.page-bloc--citation .association-pullquote {
  margin-top: 0;
}

.page-bloc-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px clamp(32px, 5vw, 64px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.page-bloc-callout > div {
  max-width: 60ch;
}

.page-bloc-callout h2 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.page-bloc-callout p {
  margin: 0;
}

@media (max-width: 900px) {
  .page-bloc-split,
  .page-bloc-split.is-image-right {
    grid-template-columns: 1fr;
  }

  .page-bloc-split.is-image-right .page-bloc-media {
    order: 0;
  }

  .page-bloc-media {
    width: min(100%, 520px);
  }
}

.association-history-section {
  padding: 0;
  border: 0;
}

.association-history-section + .association-history-section {
  margin-top: clamp(72px, 9vw, 112px);
}

.association-section-intro {
  max-width: 68ch;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.association-section-intro h2,
.association-section-intro p {
  margin: 0;
}

.association-section-intro h2 {
  margin-bottom: 18px;
}

.association-section-intro p {
  max-width: 54ch;
  color: var(--muted);
}

.association-achievements .association-section-intro {
  max-width: none;
}

.association-achievements .association-section-intro p {
  max-width: none;
}

.association-achievement-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(40px, 6vw, 72px);
  padding: 0;
  list-style: none;
}

.association-achievement-grid li {
  display: block;
  min-height: 0;
  padding: 7px 0;
  color: var(--primary-deep);
  font-weight: 600;
}

.association-neighbourhood > h2 {
  max-width: none;
  margin-bottom: clamp(44px, 6vw, 68px);
  font-size: clamp(1.8rem, 3.2vw, 2.35rem);
  text-wrap: balance;
}

.association-editorial-flow {
  display: grid;
  gap: clamp(72px, 9vw, 112px);
}

.association-editorial-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.9fr);
  gap: clamp(44px, 7vw, 84px);
  align-items: start;
}

.association-editorial-row--reverse {
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.25fr);
}

.association-editorial-row--gallery {
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.25fr);
  gap: clamp(44px, 7vw, 84px);
}

.association-editorial-visual figure,
.association-history-feature,
.association-history-gallery-pair figure {
  margin: 0;
}

.association-editorial-visual img,
.association-history-feature img,
.association-history-gallery-pair img {
  display: block;
  width: 100%;
  filter: grayscale(0.48) contrast(1.04);
  object-fit: cover;
}

.association-history-feature img {
  aspect-ratio: 4 / 3;
}

.association-history-gallery-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 36px);
}

.association-history-gallery-single {
  width: min(100%, 400px);
}

.association-history-gallery-pair img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.association-history-fusion {
  margin-top: clamp(34px, 4vw, 46px);
}

.association-history-fusion .association-history-entry p {
  max-width: none;
}

.association-editorial-visual figcaption,
.association-history-feature figcaption,
.association-history-gallery-pair figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.association-history-copy {
  border: 0;
}

.association-history-entry {
  padding: 0;
  border: 0;
}

.association-history-entry + .association-history-entry {
  margin-top: clamp(34px, 4vw, 46px);
}

.association-history-copy .association-history-entry:first-child h3 {
  margin-top: 0;
}

.association-history-entry h3 {
  margin: 0 0 14px;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
}

.association-history-entry p {
  margin: 0;
  max-width: 64ch;
  text-wrap: pretty;
}

.association-history-builders > .association-history-entry p {
  max-width: none;
}

.association-history-builders > .association-history-entry .association-pullquote p {
  max-width: none;
}

.association-history-entry p + p {
  margin-top: 1rem;
}

.association-history-entry .association-pullquote {
  margin-block: 26px;
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
}

.association-archive-interlude {
  margin: 0;
}

.association-archive-eyebrow {
  margin: 0 0 clamp(18px, 2vw, 24px);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.association-archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 30px);
  align-items: start;
}

.association-media-item {
  display: block;
  color: var(--primary-deep);
  text-decoration: none;
}

.association-media-preview {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: color-mix(in srgb, var(--surface) 88%, var(--primary-light));
}

.association-media-preview img {
  display: block;
  width: 100%;
  height: 100%;
  filter: grayscale(0.28) contrast(1.025);
  object-fit: cover;
  object-position: top;
  transition: filter 360ms cubic-bezier(0.32, 0.72, 0, 1), transform 520ms cubic-bezier(0.32, 0.72, 0, 1);
}

.association-media-title {
  display: block;
  padding: 10px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 1vw, 1rem);
  font-weight: 600;
  line-height: 1.35;
}

.association-media-item:hover .association-media-preview img {
  filter: grayscale(0) contrast(1.02);
  transform: scale(1.018);
}

@media (max-width: 1100px) {
  .association-archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.association-filmstrip::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 18px;
  z-index: 2;
  width: 84px;
  background: linear-gradient(90deg, transparent, var(--bg));
  content: "";
  pointer-events: none;
  transition: opacity var(--speed);
}

.association-filmstrip.is-at-end::after {
  opacity: 0;
}

.association-filmstrip-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--primary-deep);
  box-shadow: var(--shadow-soft);
  color: var(--bg);
  cursor: pointer;
  transform: translateY(-50%);
}

.association-filmstrip-arrow[hidden] {
  display: none;
}

.association-filmstrip-arrow:hover {
  background: var(--color-foret-hover);
}

.association-filmstrip-arrow:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 34%, transparent);
  outline-offset: 3px;
}

.association-filmstrip-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.association-filmstrip-arrow-prev {
  left: 8px;
}

.association-filmstrip-arrow-next {
  right: 8px;
}

.association-timeline {
  position: relative;
  margin-top: clamp(32px, 5vw, 48px);
}

.association-timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: color-mix(in srgb, var(--primary) 40%, transparent);
  content: "";
  transform: translateX(-50%);
}

.association-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  align-items: center;
}

.association-timeline-item + .association-timeline-item {
  margin-top: 60px;
}

.association-timeline-card {
  grid-column: 1;
  width: min(100%, 320px);
  justify-self: end;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
  box-shadow: var(--shadow-soft);
}

.association-timeline-item:nth-child(even) .association-timeline-card {
  grid-column: 3;
  justify-self: start;
}

.association-timeline-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 12px;
  height: 12px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 45%, transparent);
  transform: translate(-50%, -50%);
}

.association-timeline-year {
  margin: 0 0 16px;
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.45rem);
  font-weight: 600;
  line-height: 1;
}

.association-timeline-image {
  display: grid;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-card) - 4px);
  background: var(--surface);
}

.association-timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.association-timeline-image svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
  opacity: 0.42;
}

.association-timeline-description {
  margin: 16px 0 0;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.6;
}

.association-placeholder {
  margin-top: 16px;
  padding: 22px 24px;
  border-radius: var(--radius-input);
  background: var(--surface);
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 900px) {
  .association-intro-grid,
  .association-editorial-row,
  .association-editorial-row--reverse {
    grid-template-columns: 1fr;
  }

  .association-history-lead-media {
    width: min(100%, 520px);
  }

  .association-intro-copy {
    padding-top: 0;
  }

  .association-history-timeline {
    margin-top: 56px;
  }

  .association-editorial-flow {
    gap: 64px;
  }

  .association-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .association-section-intro {
    max-width: none;
  }

  .association-achievement-grid {
    grid-template-columns: 1fr;
  }

  .association-filmstrip {
    width: calc(100vw - 16px);
    margin-bottom: 48px;
  }

  .association-filmstrip-track {
    gap: 24px;
    padding-inline: 24px;
  }

  .association-filmstrip-viewport {
    scroll-padding-inline: 24px;
  }

  .association-filmstrip-item,
  .association-filmstrip-image {
    width: 190px;
  }

  .association-filmstrip-item {
    flex-basis: 190px;
  }

  .association-filmstrip-arrow {
    display: none;
  }

  .association-filmstrip::after {
    width: 48px;
  }

  .association-timeline::before {
    left: 20px;
  }

  .association-timeline-item {
    display: block;
    padding-left: 56px;
  }

  .association-timeline-item + .association-timeline-item {
    margin-top: 44px;
  }

  .association-timeline-card,
  .association-timeline-item:nth-child(even) .association-timeline-card {
    width: 100%;
  }

  .association-timeline-dot {
    left: 20px;
  }
}

@media (max-width: 560px) {
  .association-archive-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .association-page {
    width: min(100% - 2 * var(--page-gutter), 780px);
  }

  .association-accordion-trigger {
    padding-block: 20px;
  }

}

@media (max-width: 640px) {
  .charter-page-hero .page-hero {
    padding-bottom: 28px;
  }

  .charter-page {
    width: min(100% - 2 * var(--page-gutter), 980px);
  }

  .charter-major-trigger {
    gap: 16px;
    padding-block: 22px;
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  .charter-major-panel {
    padding-top: 4px;
    padding-bottom: 32px;
  }

  .charter-neighborhood-block {
    margin-top: 0;
    padding: 0;
    border-top: 0;
  }

  .charter-page .association-accordion-trigger {
    gap: 14px;
    padding-block: 20px;
    font-size: 1.08rem;
  }

  .charter-regulation-icon,
  .charter-page .association-accordion-chevron {
    width: 20px;
    height: 20px;
  }

  .charter-accordion-regulations .charter-accordion-content {
    padding-left: 0;
  }

  .charter-accordion-content {
    padding-right: 0;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .association-filmstrip-viewport {
    scroll-behavior: auto;
  }

  .association-accordion-panel,
  .association-accordion-chevron {
    transition: none;
  }
}

.membership-hero {
  width: 100%;
  margin: 0;
  padding: calc(var(--header-height) + var(--page-top-gap, clamp(84px, 6.75vw, 90px))) 0 clamp(30px, 2.6vw, 36px);
  text-align: center;
}

.membership-step-indicator {
  width: 100%;
  margin-bottom: 36px;
}

.membership-step-indicator ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.membership-step-indicator li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 9px;
  color: #8A8F9B;
  font-size: 0.78rem;
  line-height: 1.3;
  text-align: center;
}

[data-membership-dev-step-navigation="true"] .membership-step-indicator li {
  cursor: pointer;
}

[data-membership-dev-step-navigation="true"] .membership-step-indicator li:focus-visible {
  outline: none;
}

[data-membership-dev-step-navigation="true"] .membership-step-indicator li:focus-visible .membership-step-node {
  outline: 3px solid rgba(62, 122, 82, 0.24);
  outline-offset: 3px;
}

.membership-step-indicator li:not(:last-child)::after {
  position: absolute;
  top: 17px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 1px;
  background: #D0D5DA;
  content: "";
}

.membership-step-indicator li.is-complete::after {
  background: var(--primary-deep);
}

.membership-step-node {
  position: relative;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #D0D5DA;
  border-radius: 50%;
  background: var(--bg);
  color: #8A8F9B;
  font-weight: 600;
}

.membership-step-indicator li.is-active .membership-step-node,
.membership-step-indicator li.is-complete .membership-step-node {
  border-color: var(--primary-deep);
  background: var(--primary-deep);
  color: var(--bg);
}

.membership-step-indicator li.is-active .membership-step-label {
  color: var(--text);
  font-weight: 700;
}

.membership-step-indicator li.is-complete .membership-step-label {
  color: var(--text);
}

.membership-step-check {
  display: none;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.membership-step-indicator li.is-complete .membership-step-number {
  display: none;
}

.membership-step-indicator li.is-complete .membership-step-check {
  display: block;
}

.membership-hero h1 {
  margin: 0;
  color: var(--primary-deep);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.25rem, 5vw, 3.85rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.membership-hero p {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  line-height: 1.6;
}

[data-membership-current-step="1"] .membership-hero {
  padding-bottom: 48px;
}

[data-membership-current-step="2"] .membership-hero {
  padding-bottom: 18px;
}

[data-membership-current-step="1"] .membership-hero h1,
[data-membership-current-step="2"] .membership-hero h1,
[data-membership-current-step="3"] .membership-hero h1 {
  font-size: clamp(2.45rem, 4vw, 3rem);
}

.membership-hero .membership-price-line {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(38, 77, 52, 0.08);
  color: #2f6b3a;
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 500;
}

.membership-period-selector {
  width: min(100%, 520px);
  margin: 20px auto 0;
  padding: 0;
  border: 0;
}

.membership-summary-card .membership-period-selector {
  min-width: 0;
  margin: 0;
}

.membership-period-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.membership-period-options:has(.membership-period-option:only-child) {
  grid-template-columns: minmax(0, 270px);
  justify-content: center;
}

.membership-period-standard {
  display: flex;
  width: min(100%, 270px);
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 14px;
  border: 1px solid #D0D5DA;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 0.87rem;
}

.membership-period-standard strong {
  color: var(--primary-deep);
  white-space: nowrap;
}

.membership-period-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 14px;
  border: 1px solid #D0D5DA;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--speed) var(--ease-out), background var(--speed) var(--ease-out);
}

.membership-period-option:has(input:checked) {
  border-color: var(--primary-deep);
  background: rgba(38, 77, 52, 0.06);
}

.membership-period-option input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--primary-deep);
}

.membership-period-option span,
.membership-period-option strong {
  font-size: 0.87rem;
  line-height: 1.35;
}

.membership-period-option span {
  text-align: left;
}

.membership-period-option strong {
  color: var(--primary-deep);
  font-weight: 650;
  white-space: nowrap;
}

.membership-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  color: var(--primary-deep);
}

.membership-success-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.membership-hero .membership-success-message {
  margin-top: 24px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 1rem;
}

.membership-hero .membership-success-message + .membership-success-message {
  margin-top: 8px;
}

/* Sign-up step 3 (Anabelle, 11 November): what happens next stands out. */
.membership-hero .membership-success-message.membership-success-emphasis {
  color: var(--primary-deep);
  font-weight: 600;
}

.membership-success-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.membership-success-actions .membership-success-button {
  width: auto;
  min-height: 58px;
  margin-top: 0;
  padding: 10px 22px;
}

.membership-checkout {
  width: min(100% - 2 * var(--page-gutter), var(--max));
  margin: 0 auto;
  padding: 0 0 clamp(72px, 9vw, 112px);
}

[data-membership-visible-steps][hidden] {
  display: none;
}

.membership-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(48px, 5.5vw, 72px);
  width: calc(50% - clamp(24px, 2.75vw, 36px));
  margin: 0 auto;
  align-items: start;
}

[data-membership-current-step="1"] .membership-checkout-grid {
  gap: 32px;
}

[data-membership-current-step="2"] .membership-checkout-grid {
  gap: 0;
}

.membership-details {
  min-width: 0;
}

.membership-sidebar {
  padding-top: 0;
}

.membership-renewal-entry {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: nowrap;
}

.membership-renewal-entry a {
  color: var(--primary-deep);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.membership-renewal-entry a:hover {
  color: var(--primary);
}

.membership-details > h2,
.membership-form-section > h2,
.membership-summary-card h2,
.membership-help-card h2 {
  margin: 0;
  color: var(--primary-deep);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.membership-summary-card h2 {
  font-size: clamp(2rem, 3.1vw, 2.55rem);
}

.membership-details > h2,
.membership-form-section > h2 {
  font-size: clamp(1.35rem, 1.8vw, 1.5rem);
}

.membership-details > h2 {
  margin-bottom: 13px;
}

.membership-checkout-form {
  display: grid;
  gap: 17px;
}

.membership-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.membership-password-row .membership-field {
  align-content: start;
}

.membership-form-section {
  display: grid;
  gap: 10px;
  margin-top: 48px;
  padding-top: 0;
  border-top: 0;
}

.membership-directory-section {
  margin-top: 34px;
}

.membership-auto-renewal-section {
  margin-top: 24px;
}

.membership-auto-renewal-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 0;
  padding: 0;
  color: var(--text);
  cursor: pointer;
}

.membership-auto-renewal-option input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--primary-deep);
}

.membership-auto-renewal-option span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.membership-auto-renewal-option strong {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.membership-auto-renewal-option small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.membership-form-section-help,
.membership-field-help,
.membership-inline-error {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.membership-form-section-help,
.membership-field-help {
  color: var(--muted);
}

.membership-inline-error {
  color: var(--danger);
}

.membership-directory-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.membership-directory-checkbox input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--primary-dark);
}

.membership-directory-fields {
  display: grid;
  gap: 17px;
}

.membership-directory-fields[hidden] {
  display: none;
}

.membership-field {
  display: grid;
  align-content: start;
  gap: 7px;
}

.membership-field label {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 500;
}

.membership-field input,
.membership-field select,
.membership-card-field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #D0D5DA;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  transition: border-color var(--speed) var(--ease-out), box-shadow var(--speed) var(--ease-out);
}

.membership-field input,
.membership-field select {
  padding: 11px 14px;
}

#membership-address {
  font-size: calc(1rem - 1px);
}

.membership-field input::placeholder,
.membership-card-field input::placeholder {
  color: #8A8F9B;
  opacity: 1;
}

.membership-field input:focus-visible,
.membership-field select:focus-visible,
.membership-card-field input:focus-visible {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(62, 122, 82, 0.15);
}

.membership-field input[aria-invalid="true"],
.membership-field select[aria-invalid="true"] {
  border-color: #C97878;
}

.membership-field input[aria-invalid="true"]:focus-visible,
.membership-field select[aria-invalid="true"]:focus-visible {
  border-color: #B96666;
  box-shadow: 0 0 0 3px rgba(185, 102, 102, 0.13);
}

.membership-field-error {
  margin: -1px 0 0;
  color: #A55252;
  font-size: 0.78rem;
  line-height: 1.4;
}

.membership-summary-payment {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #C9CED3;
}

.membership-summary-payment[hidden] {
  display: none;
}

.membership-payment-method-note {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid #C9CED3;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.membership-payment-label {
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}

.membership-card-field {
  position: relative;
}

.membership-card-field input {
  padding: 11px 44px 11px 14px;
}

.membership-card-field-wide input {
  padding-left: 48px;
}

.membership-payment-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.membership-field-icon {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #737987;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transform: translateY(-50%);
  pointer-events: none;
}

.membership-field-icon-left {
  left: 15px;
}

.membership-field-icon-right {
  right: 15px;
}

.membership-sidebar {
  position: static;
  display: grid;
  gap: 24px;
  align-self: start;
}

.membership-summary-card,
.membership-help-card {
  border: 1px solid rgba(15, 61, 36, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(15, 61, 36, 0.1), 0 2px 8px rgba(15, 61, 36, 0.06);
}

.membership-summary-card {
  padding: clamp(28px, 2.5vw, 32px) clamp(24px, 2.25vw, 28px);
}

.membership-payment-summary {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.membership-payment-today,
.membership-payment-scheduled {
  margin: 0;
  color: var(--primary-deep);
  line-height: 1.35;
}

.membership-payment-today {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: 1rem;
  white-space: nowrap;
}

.membership-payment-today strong {
  color: var(--primary-deep);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 400;
}

.membership-payment-currency {
  font-size: 0.82em;
  line-height: 1;
}

.membership-payment-scheduled {
  font-size: 0.95rem;
  font-weight: 500;
}

.membership-payment-scheduled strong {
  font-size: 1.05rem;
}

.membership-stripe-placeholder {
  display: flex;
  min-height: 184px;
  align-items: center;
  justify-content: center;
  padding: 22px 24px;
  border: 1px solid #D0D5DA;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.membership-stripe-placeholder > span:last-child {
  display: grid;
  gap: 3px;
  text-align: center;
}

.membership-stripe-placeholder strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.membership-stripe-placeholder small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.membership-auto-renewal-section.is-disabled {
  opacity: 0.52;
}

.membership-payment-later {
  margin-top: 22px;
}

.membership-payment-later-option strong {
  color: var(--muted);
  font-weight: 500;
}

.membership-payment-later-option small[hidden] {
  display: none;
}

.membership-summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.membership-summary-total {
  margin-top: 22px;
  color: var(--primary-deep);
  font-size: 1.2rem;
}

.membership-summary-total strong:last-child {
  font-size: 1.35rem;
  white-space: nowrap;
}

.membership-summary-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.membership-pay-button {
  width: 100%;
  min-height: 58px;
  margin-top: 26px;
  border-color: var(--primary-deep);
  background: var(--primary-deep);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
}

.membership-pay-button:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  color: #fff;
  box-shadow: var(--shadow-btn-hover);
}

.membership-summary-card .membership-pay-button {
  margin-top: 32px;
}

/* Step-2 payment choices: each option is a full-width row the reader can tick
   anywhere on, with the consequence spelled out under its name. */
.membership-payment-options {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
  text-align: left;
}

.membership-payment-options legend {
  margin-bottom: 10px;
  padding: 0;
  color: var(--primary-deep);
  font: 600 0.86rem/1.3 var(--font-sans);
}

/* Anabelle (5 November): no tinted card for the ticked option; the ticked
   box says it. Plain rows divided by hairlines, like a form list. */
.membership-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}

.membership-option:last-child {
  border-bottom: 1px solid var(--border);
}

.membership-option:hover strong {
  color: var(--primary-deep);
}

.membership-option:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.55;
}

.membership-option:has(input:focus-visible) {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.membership-option input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--primary-dark);
}

.membership-option > span {
  display: grid;
  gap: 2px;
}

.membership-option strong {
  color: var(--text);
  font: 600 0.9rem/1.35 var(--font-sans);
}

.membership-option > span > span {
  color: var(--muted);
  font: 400 0.82rem/1.45 var(--font-sans);
}

.renewal-summary-card > .membership-option {
  margin-top: 22px;
  border-bottom: 1px solid var(--border);
}

/* Already renewed: one button opens the card fields (Anabelle, 11 November). */
.renewal-auto-optin > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  cursor: pointer;
}

.renewal-auto-optin > summary::-webkit-details-marker {
  display: none;
}

.renewal-auto-optin[open] > summary {
  display: none;
}

.renewal-summary-card .renewal-auto-later {
  display: flex;
  margin: 18px auto 0;
}

/* Stripe's form inside the page. Stripe draws its own fields; we only give
   it room and a calm loading line. */
.membership-embedded-mount {
  min-height: 120px;
  margin-top: 20px;
}

[data-stripe-error][hidden],
.membership-embedded-mount[hidden] {
  display: none;
}

.membership-embedded-loading {
  margin: 0;
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.membership-payment-stage {
  width: min(100% - 2 * var(--page-gutter), 720px);
  margin: 0 auto;
  padding-bottom: clamp(60px, 8vw, 100px);
}

.membership-embedded-payment {
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
}

.membership-embedded-later {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.membership-embedded-later a {
  color: var(--primary-deep);
  font-weight: 600;
}

/* Step 1 is taller than most screens, and its button has to stay in view
   without tightening the form: it sticks to the bottom of the viewport until
   the reader scrolls to its place. The white ring keeps fields from showing
   through behind it while it is stuck. */
.membership-checkout-form .membership-pay-button[data-membership-continue] {
  position: sticky;
  bottom: 16px;
  z-index: 1;
  box-shadow: 0 0 0 16px var(--bg);
}

/* Law 25 checkbox on step 2, laid out like the president's example: a box
   and one sentence with the link, above the button that creates the account. */
.membership-consent {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: left;
}

.membership-consent .membership-directory-checkbox {
  align-items: flex-start;
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.5;
}

.membership-consent .membership-directory-checkbox input {
  flex: none;
  margin-top: 2px;
}

.membership-consent a {
  color: var(--primary-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.membership-summary-card .membership-consent + .membership-pay-button {
  margin-top: 20px;
}

.membership-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.membership-summary-card .membership-secure-note {
  margin-top: 22px;
}

.membership-secure-note svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.membership-stripe-wordmark {
  display: block;
  width: auto;
  height: 18px;
}

/* D4: the manual-payment aside (Interac, cheque) under the card payment. */
.membership-manual-payment {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.membership-manual-payment p {
  margin: 0;
}

.membership-manual-payment p + p {
  margin-top: 8px;
}

.membership-manual-payment a {
  color: var(--primary-deep);
  font-weight: 600;
}

.membership-help-plain {
  padding: 32px 0 48px;
  border-top: 1px solid #D0D5DA;
  text-align: center;
}

.membership-help-plain-title,
.membership-help-plain-question {
  color: #6E6E6E;
  font-family: var(--font-sans);
  font-size: 14px;
}

.membership-help-plain-title {
  margin: 0;
  color: #3A3A3A;
  font-weight: 600;
}

.membership-help-plain-question {
  margin: 2px 0 0;
  font-weight: 400;
}

.membership-help-plain-link {
  display: inline-block;
  margin-top: 12px;
  color: #2f6b3a;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 3px;
}

.membership-help-plain-link:hover {
  text-decoration: underline;
}

.membership-back-button {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary-deep);
  font: 500 0.95rem/1.3 var(--font-sans);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  cursor: pointer;
}

.membership-back-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.membership-back-button:hover {
  text-decoration-color: currentColor;
}

.membership-help-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding: clamp(16px, 2vw, 20px);
  border: 1px solid #D0D5DA;
  border-radius: var(--radius-card);
  background: transparent;
  box-shadow: none;
}

[data-membership-current-step="1"] .membership-help-card {
  margin-top: 0;
}

.membership-help-card h2 {
  flex: none;
  font-size: 1rem;
  font-weight: 400;
}

.membership-help-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.membership-help-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--primary-deep);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.membership-help-copy {
  min-width: 0;
  text-align: left;
}

.membership-help-link {
  width: auto;
  min-height: 40px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--primary-deep);
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--primary-deep);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.membership-help-link:hover {
  background: var(--primary-tint);
  color: var(--primary-deep);
  text-decoration: none;
}

@media (max-width: 860px) {
  .membership-checkout-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    width: 100%;
  }

  .membership-details,
  .membership-sidebar {
    width: min(100%, 620px);
    margin-inline: auto;
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .membership-success-actions {
    flex-direction: column;
  }

  .membership-success-actions .membership-success-button {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .membership-hero {
    padding-top: calc(var(--header-height) + var(--page-top-gap, 56px));
  }
}

@media (max-width: 560px) {
  .membership-hero {
    padding: calc(var(--header-height) + var(--page-top-gap, 40px)) 0 34px;
  }

  .membership-hero h1 {
    font-size: clamp(2.45rem, 13vw, 3.1rem);
  }

  .membership-checkout-grid {
    gap: 38px;
  }

  .membership-period-options {
    grid-template-columns: 1fr;
  }

  .membership-payment-row {
    grid-template-columns: 1fr;
  }

  .membership-summary-card {
    padding: 26px 22px;
  }

  .membership-help-card {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 16px;
  }

  .membership-help-link {
    grid-column: 2;
    justify-self: start;
  }

}

@media (max-width: 640px) {
  .membership-field-row {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------- event detail */

.event-detail-page {
  width: min(100% - 2 * var(--page-gutter), var(--max));
  margin: 0 auto;
  padding: calc(var(--header-height) + var(--page-top-gap, 24px)) 0 clamp(80px, 10vw, 128px);
}

.event-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 44px;
  color: #2f6b3a;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.event-detail-back-arrow {
  position: relative;
  display: inline-block;
  width: 15.5px;
  height: 10px;
  flex: 0 0 15.5px;
  font-size: 0;
}

.event-detail-back-arrow::before,
.event-detail-back-arrow::after {
  position: absolute;
  left: 1px;
  color: inherit;
  content: "";
}

.event-detail-back-arrow::before {
  top: 50%;
  width: 14.5px;
  height: 1.75px;
  border-radius: 999px;
  background: currentColor;
  transform: translateY(-50%);
}

.event-detail-back-arrow::after {
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg);
  transform-origin: 0 0;
}

.event-detail-back:hover {
  color: #254f2c;
  text-decoration: underline;
}

.event-detail-hero {
  width: 100%;
  height: min(500px, calc((100vw - 40px) / 2));
  margin: 0 0 48px;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface);
}

.event-detail-hero img,
.event-detail-hero .event-image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-detail-header .page-hero {
  width: 100%;
  padding: 0 0 36px;
}

.event-detail-header .page-hero h1 {
  margin-bottom: 0;
}

.event-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr);
  gap: clamp(40px, 7vw, 88px);
  align-items: start;
}

@media (min-width: 761px) {
  .event-detail-page--detailed .event-detail-copy {
    transform: translateY(-18px);
  }
}

.event-detail-copy .prose {
  max-width: 680px;
  color: #333;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.event-detail-copy .prose > p:first-child {
  margin-bottom: 40px;
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
}

.event-detail-programme {
  margin-top: 40px;
}

.event-detail-programme .event-detail-programme-label {
  margin: 0 0 12px;
  color: #6E6E6E;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.event-detail-programme ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-detail-programme li {
  position: relative;
  padding-left: 12px;
  color: #333;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
}

.event-detail-programme li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 4px;
  height: 4px;
  background: #2f6b3a;
  content: "";
  transform: translateY(-50%);
}

.event-detail-duration {
  margin-top: 24px;
}

.event-detail-sidebar {
  min-width: 0;
}

.event-facts {
  display: grid;
  gap: 20px;
  margin: 0 0 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.event-facts,
.event-facts div,
.event-facts dt,
.event-facts dd {
  border-radius: 0;
}

.event-facts div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 0;
}

.event-facts div + div {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.event-facts dt {
  color: #6E6E6E;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.event-facts dd {
  margin: 0;
  color: #1a1a1a;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.event-detail-cta {
  width: 100%;
  justify-content: center;
}

.event-detail-cta + .event-facts {
  margin-top: 32px;
}

.event-detail-cta.btn-primary {
  background: #2f6b3a;
  color: #fff;
}

.event-detail-cta-outline {
  width: auto;
  min-height: 40px;
  padding: 8px 18px;
  border: 1.5px solid #2f6b3a;
  background: transparent;
  color: #2f6b3a;
  font-size: 14px;
}

.event-detail-cta-outline:hover {
  border-color: #2f6b3a;
  background: #2f6b3a;
  color: #fff;
}

.event-halloween-programme {
  margin-top: 0;
}

.event-halloween-programme h2 {
  margin: 0 0 16px;
  color: #173c24;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.event-halloween-programme ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-halloween-programme li {
  position: relative;
  padding-left: 15px;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
}

.event-halloween-programme li::before {
  position: absolute;
  top: 0.82em;
  left: 0;
  width: 4px;
  height: 4px;
  background: #2f6b3a;
  content: "";
  transform: translateY(-50%);
}

.event-halloween-programme strong {
  color: #25342a;
  font-weight: 600;
}

.event-halloween-route,
.event-halloween-participation,
.event-halloween-sponsors {
  margin-top: 30px;
}

.event-halloween-route h3,
.event-halloween-participation h3 {
  margin: 0 0 10px;
  color: #173c24;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 23px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.event-halloween-route p,
.event-halloween-participation p {
  margin: 0;
}

.event-route-map-frame {
  width: 100%;
  height: 360px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.event-route-map {
  display: block;
  width: 100%;
  height: calc(100% + 68px);
  border: 0;
  transform: translateY(-68px);
}

.event-secondary-link {
  display: inline-flex;
  margin-top: 10px;
  color: #2f6b3a;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.event-secondary-link:hover {
  color: #173c24;
}

.event-participation-cta {
  width: auto;
  min-height: 40px;
  margin-top: 14px;
  padding: 8px 14px;
}

.event-participation-cta.btn-primary,
.event-participation-cta.btn-primary:visited {
  border-color: var(--color-foret);
  background: var(--color-foret);
  color: #fff;
  text-decoration: none;
}

.event-participation-cta.btn-primary:hover {
  border-color: var(--color-foret-hover);
  background: var(--color-foret-hover);
  color: #fff;
  box-shadow: none;
}

.event-halloween-sponsors {
  margin-top: 22px;
}

.event-sponsor-logos {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
}

.event-sponsor-logo {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.event-sponsor-logo--duquette {
  flex: 0 1 220px;
  width: min(220px, 100%);
  min-width: 0;
}

.event-sponsor-logo--sunlife {
  flex: 0 1 190px;
  width: 190px;
  min-width: 0;
}

.event-detail-sidebar .event-halloween-sponsors h3 {
  margin: 0 0 8px;
  color: #6e6e6e;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .event-halloween-programme ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .event-detail-hero {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .event-detail-layout {
    grid-template-columns: 1fr;
  }

  .event-route-map-frame {
    height: 300px;
  }

  .event-sponsor-logos {
    flex-wrap: wrap;
  }

}

/* ----------------------------------------------------------------- forms */

.form-section {
  display: grid;
  place-items: center;
}

.login-page {
  display: grid;
  place-items: center;
  width: min(100% - 2 * var(--page-gutter), 460px);
  min-height: clamp(600px, 72vh, 760px);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 104px) 0;
}

.login-shell {
  width: 100%;
}

.login-gate-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px 18px;
  border-left: 3px solid var(--primary);
  border-radius: 10px;
  background: var(--primary-tint);
  color: var(--primary-deep);
}

.login-gate-message svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.login-gate-message p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.5;
}

.login-heading {
  margin-bottom: 32px;
  text-align: center;
}

.login-heading h1 {
  margin: 0;
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 7vw, 3.65rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.login-heading p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.login-page .auth-form {
  padding: 30px;
}

.contact-page {
  width: min(100% - 2 * var(--page-gutter), 700px);
  padding-top: calc(var(--header-height) + var(--page-top-gap, 60px));
}

.contact-page .login-heading {
  margin-bottom: 44px;
}

.auth-form.contact-form {
  border: 0;
  padding: 26px 0 0;
  box-shadow: none;
}

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

.auth-form.contact-form label {
  margin-top: 22px;
}

.auth-form.contact-form .contact-form-row:first-child label {
  margin-top: 0;
}

.auth-form.contact-form input[type="text"],
.auth-form.contact-form input[type="email"],
.auth-form.contact-form input[type="tel"],
.auth-form.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid #e0e2e0;
  border-radius: var(--radius-input);
  background: #fff;
  transition: border-color var(--speed) var(--ease-out), box-shadow var(--speed) var(--ease-out);
}

.auth-form.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.auth-form.contact-form input:focus,
.auth-form.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
  outline: none;
}

.auth-form.contact-form .btn {
  display: flex;
  width: 220px;
  max-width: 100%;
  margin: 26px auto 0;
}

.contact-details {
  display: grid;
  gap: 2px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.65;
  text-align: center;
}

.contact-details a {
  color: var(--primary-deep);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-forgot-password {
  margin: 8px 0 0;
  font-size: 13px;
  text-align: right;
}

.login-forgot-password a {
  color: var(--primary-deep);
  text-decoration: none;
}

.login-forgot-password a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-membership-link {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.login-membership-link a {
  color: var(--primary-deep);
  font-weight: 600;
  text-decoration: none;
}

.login-membership-link a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* /mot-de-passe-oublie reuses the login shell; its message-only states put a
   button first in the card, where the form spacing above it does not apply. */
.password-reset-page .auth-form > .btn:first-child {
  margin-top: 0;
}

.password-reset-hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-layout {
  width: min(100%, 960px);
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(260px, 1fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: stretch;
}

.auth-form {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.auth-help-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 32px;
}

.auth-help-card h2 {
  margin: 8px 0 12px;
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.12;
}

.auth-help-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.auth-help-card .text-link {
  width: fit-content;
  margin-top: 10px;
}

.auth-help-card .form-help {
  margin-top: 18px;
}

.auth-form label {
  display: block;
  margin: 18px 0 6px;
  color: var(--primary-deep);
  font-size: 0.95rem;
  font-weight: 650;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form .password-field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-input);
  background: #fff;
  transition: border-color var(--speed) var(--ease-out), box-shadow var(--speed) var(--ease-out);
}

.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus,
.auth-form .password-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}

.auth-form .btn {
  width: 100%;
  margin-top: 24px;
}

/* The eye inside password fields, added by site.js. */
.password-field {
  position: relative;
  display: block;
}

.password-field input[type] {
  width: 100%;
  padding-right: 52px;
}

/* Edge draws its own eye in password fields: one is enough. */
.password-field input::-ms-reveal,
.password-field input::-ms-clear {
  display: none;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-input);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle[aria-pressed="true"] {
  color: var(--primary);
}

.password-toggle:hover {
  background: var(--primary-tint);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.static-preview-notice {
  padding: 10px 24px;
  background: var(--primary-deep);
  color: var(--primary-tint);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-weight: 500 !important;
  color: var(--text) !important;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-dark);
}

.form-error {
  padding: 12px 16px;
  border-radius: var(--radius-input);
  background: var(--danger-tint);
  color: var(--danger);
  font-weight: 600;
}

.form-help,
.notice {
  color: var(--muted);
  font-size: 0.93rem;
}

/* Toned notices. The bare `.notice` stays a quiet aside (it is shared with
   `.form-help`); only the toned variants become a surface, so a guard message
   or a validation error reads as a state and not as fine print. Full borders
   rather than an accent stripe, and one shape scale with the rest of the UI. */
.notice-info,
.notice-warning,
.notice-critical {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid;
  border-radius: var(--radius-input);
  font-size: 1rem;
}

.notice-info > *,
.notice-warning > *,
.notice-critical > * {
  margin: 0;
  color: inherit;
}

.notice-info h2,
.notice-warning h2,
.notice-critical h2 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.notice-info {
  border-color: var(--primary-light);
  background: var(--primary-tint);
  color: var(--primary-deep);
}

.notice-warning {
  border-color: #d8ae63;
  background: var(--warning-tint);
  color: var(--warning);
}

.notice-critical {
  border-color: #e3b4b4;
  background: var(--danger-tint);
  color: var(--danger);
}

/* `--primary` on `--primary-tint` is only 4.04:1, so links inside a toned
   notice take the deeper green to stay above 4.5:1. */
.notice-info a:not(.btn) {
  color: var(--primary-deep);
  font-weight: 650;
}

.notice-warning a:not(.btn),
.notice-critical a:not(.btn) {
  color: inherit;
  font-weight: 650;
}

/* -------------------------------------------------------------- dashboard */

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.85fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.status-card {
  border-radius: var(--radius-card);
  background: var(--primary-deep);
  color: #fff;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.status-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
}

.status-card .meta {
  color: var(--primary-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.status-card span {
  color: var(--primary-tint);
  font-size: 0.95rem;
}

/* The status card is a dark surface, so the toned notices drop their light
   borders and tints here and lean on translucent white fills instead. */
.status-card .notice {
  margin-top: 16px;
  padding: 14px;
  border: 0;
  border-radius: var(--radius-input);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.95rem;
}

.status-card .notice-warning {
  background: rgba(247, 191, 101, 0.2);
}

.status-card .notice-critical {
  background: rgba(255, 115, 115, 0.24);
}

.status-card .notice p {
  margin: 0;
  color: #fff;
}

.status-card .btn {
  margin-top: 18px;
  width: fit-content;
  background: #fff;
  color: var(--primary-deep);
}

.status-card .btn:hover {
  background: var(--primary-tint);
  color: var(--primary-deep);
}

.status-card form {
  margin: 0;
}

/* The suspended-access block is a section-level statement rather than an
   inline alert, so it takes a card's room and a real heading on top of the
   critical tone it inherits. It is the same component on the dashboard and on
   the account page; only the button's emphasis differs, because one offers the
   renewal and the other only points at the file. */
.renewal-access-notice {
  gap: 14px;
  margin-bottom: 32px;
  padding: clamp(24px, 4vw, 32px);
  border-radius: var(--radius-card);
}

.renewal-access-notice h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.15;
}

/* Long copy stays near-black rather than red: the tint and the heading already
   carry the tone, and a full paragraph of --danger is tiring to read. */
.renewal-access-notice p {
  max-width: 65ch;
  color: var(--text);
}

.renewal-access-notice p:last-child {
  margin-top: 4px;
}

/* --------------------------------------------------------------- galleries */

.gallery-album-page {
  padding-top: 12px;
}

.gallery-album-hero .page-hero {
  padding-bottom: 12px;
}

.gallery-placeholder {
  margin-top: 24px;
  border: 1.5px dashed var(--primary-light);
  border-radius: var(--radius-card);
  padding: 48px;
  color: var(--muted);
  background: var(--surface);
  text-align: center;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.photo-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  transition: box-shadow var(--speed-slow) var(--ease-out),
    border-color var(--speed-slow) var(--ease-out);
}

.photo-card[hidden],
.gallery-more[hidden] {
  display: none;
}

.photo-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 320ms var(--ease-out);
}

.photo-card:hover img {
  transform: scale(1.025);
}

.photo-card figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* The grid photo is a button into the viewer; give it visible affordance. */
.photo-link {
  display: block;
  cursor: zoom-in;
}

.gallery-back {
  margin: 0 0 24px;
  font-size: 0.95rem;
}

/* ---------------------------------------------------------------- lightbox */

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: none;
  place-items: center;
}

.lightbox[open] {
  display: grid;
}

.lightbox::backdrop {
  background: rgba(16, 28, 19, 0.93);
}

.lightbox[open] .lightbox-stage {
  animation: lightbox-in 280ms var(--ease-out-expo);
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}

.lightbox-stage {
  margin: 0;
  max-width: min(100vw - 144px, 1200px);
  text-align: center;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: min(82dvh, 900px);
  margin: 0 auto;
  border-radius: var(--radius-card);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-stage figcaption {
  margin-top: 14px;
  color: var(--primary-tint);
  font-size: 0.95rem;
}

.lightbox-button {
  position: fixed;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background var(--speed) var(--ease-out), transform var(--speed) var(--ease-out-expo);
}

.lightbox-button:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(1.06);
}

.lightbox-button svg {
  width: 22px;
  height: 22px;
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  translate: 0 -50%;
}

.lightbox-next {
  right: 20px;
  top: 50%;
  translate: 0 -50%;
}

.lightbox-counter {
  position: fixed;
  bottom: 18px;
  left: 50%;
  translate: -50% 0;
  margin: 0;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .lightbox-stage {
    max-width: calc(100vw - 24px);
  }

  .lightbox-stage img {
    max-height: 72dvh;
  }

  .lightbox-prev {
    left: 10px;
    top: auto;
    bottom: 14px;
    translate: none;
  }

  .lightbox-next {
    right: 10px;
    top: auto;
    bottom: 14px;
    translate: none;
  }
}

/* --------------------------------------------------------------- directory */

.directory-toolbar {
  max-width: 920px;
  margin-bottom: 28px;
}

.directory-search {
  margin-top: 22px;
}

.directory-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-deep);
  font-weight: 700;
}

.directory-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.directory-search input[type="search"] {
  width: min(100%, 360px);
  min-height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-input);
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 0 14px;
}

.directory-search input[type="search"]:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(94, 135, 89, 0.18);
  outline: none;
}

.directory-letter-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.directory-letter-filter a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: #fff;
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background var(--speed) var(--ease-out), border-color var(--speed) var(--ease-out), color var(--speed) var(--ease-out);
}

.directory-letter-filter a:hover,
.directory-letter-filter a:focus-visible,
.directory-letter-filter a.is-active {
  border-color: var(--primary-light);
  background: var(--primary-deep);
  color: #fff;
}

.directory-count {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.member-directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.member-card,
.empty-state {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 24px;
}

.member-card h2,
.empty-state h2 {
  margin: 0 0 16px;
  color: var(--primary-deep);
  font-size: 1.18rem;
  line-height: 1.3;
}

.member-card dl {
  margin: 0;
}

.member-card dl div + div {
  margin-top: 14px;
}

.member-card dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.member-card dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.member-card a {
  color: var(--primary-dark);
  text-decoration-color: var(--primary-light);
  text-underline-offset: 3px;
}

.empty-state {
  grid-column: 1 / -1;
  background: var(--surface);
}

.residents-directory-page {
  background: #fff;
}

.residents-directory-page .page-hero {
  padding-top: calc(var(--header-height) + var(--page-top-gap, 60px));
  padding-bottom: 38px;
  text-align: center;
}

.residents-directory-page .page-hero h1 {
  margin-bottom: 18px;
}

.residents-directory-page .page-hero p {
  max-width: none;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.residents-directory-content {
  width: min(100% - 2 * var(--page-gutter), var(--max));
  margin: 0 auto;
  padding-bottom: clamp(80px, 9vw, 120px);
}

.residents-directory-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: stretch;
  gap: 16px;
  width: min(100%, 886px);
  margin: 0 auto 14px;
}

/* Sponsor carousel above the directory search: one sponsor per slide, each
   in its own ad's colours, condensed to image, name, one line and contact.
   Dots as on the À propos timeline rails. */
.sponsor-carousel {
  width: min(100%, 886px);
  margin: 0 auto 26px;
}

.sponsor-carousel-stage {
  position: relative;
}

/* Previous / next, inside the frame's edges, over the slide. */
.sponsor-carousel-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--color-foret, #0F3D24);
  box-shadow: 0 1px 6px rgba(15, 38, 24, 0.10);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 200ms ease, transform 200ms ease;
}

.sponsor-carousel-arrow--prev {
  left: 12px;
}

.sponsor-carousel-arrow--next {
  right: 12px;
}

.sponsor-carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-50%) scale(1.06);
}

.sponsor-carousel-arrow:focus-visible {
  outline: 2px solid var(--color-foret, #0F3D24);
  outline-offset: 2px;
}

.sponsor-carousel-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.sponsor-carousel-viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.sponsor-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.sponsor-carousel-viewport:focus {
  outline: none;
}

.sponsor-carousel-track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* position: relative keeps the screen-reader-only link text inside the
   scroller; without it, the off-screen slides widen the page on phones. */
.sponsor-slide {
  position: relative;
  display: grid;
  flex: 0 0 100%;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 196px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--slide-bg);
  color: var(--slide-ink);
}

.sponsor-slide-media {
  position: relative;
  overflow: hidden;
  background: var(--slide-panel);
}

.sponsor-slide-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The side margin leaves room for the previous arrow. */
.sponsor-slide-media.is-contain img {
  inset: 22px 56px;
  width: calc(100% - 112px);
  height: calc(100% - 44px);
  object-fit: contain;
}

/* A tall photo shown whole, full height, centred on the panel colour. */
.sponsor-slide-media.is-portrait img {
  object-fit: contain;
}

/* A logo panel the same colour as the slide needs a hairline to stay a panel. */
.sponsor-slide-media.is-contain {
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.08);
}

.sponsor-slide-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  /* The right padding clears the next arrow. */
  padding: 22px 66px 22px clamp(22px, 4vw, 40px);
}

.sponsor-slide-body p {
  margin: 0;
}

/* The sponsor's title or trade, read as a quiet subtitle under the name. */
.sponsor-slide-kicker {
  margin-top: -2px;
  opacity: 0.68;
  font-size: 0.86rem;
  font-style: italic;
  font-weight: 400;
}

.sponsor-slide-name {
  margin: 0;
  color: var(--slide-accent);
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
  line-height: 1.1;
}

.sponsor-slide-line {
  max-width: 46ch;
  font-size: 0.98rem;
  line-height: 1.45;
}

.sponsor-slide-body .sponsor-slide-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
  margin-top: 6px;
  font-size: 0.92rem;
}

.sponsor-slide-contact a {
  color: inherit;
  text-decoration: none;
}

.sponsor-slide-phone {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.sponsor-slide-contact .sponsor-slide-web {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.sponsor-slide-contact a:hover {
  color: var(--slide-accent);
}

.sponsor-slide-contact a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

.sponsor-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 10px;
}

/* 8px dots as on the timeline rails, inside a 24px target. */
.sponsor-carousel-dot {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.sponsor-carousel-dot::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(15, 61, 36, 0.28);
  transition: background-color 200ms ease, transform 200ms ease;
}

.sponsor-carousel-dot:hover::before,
.sponsor-carousel-dot.is-active::before {
  background: var(--color-foret, #0F3D24);
}

.sponsor-carousel-dot.is-active::before {
  transform: scale(1.2);
}

.sponsor-carousel-dot:focus-visible {
  outline: 2px solid var(--color-foret, #0F3D24);
  outline-offset: -2px;
  border-radius: 50%;
}

@media (prefers-reduced-motion: reduce) {
  .sponsor-carousel-viewport {
    scroll-behavior: auto;
  }
}

@media (max-width: 640px) {
  /* On phones the arrows sit on the photo band at the top of the slide. */
  .sponsor-carousel-arrow {
    top: 75px;
    width: 34px;
    height: 34px;
  }

  .sponsor-slide {
    grid-template-columns: 1fr;
    grid-template-rows: 150px auto;
  }

  .sponsor-slide-media.is-contain img {
    inset: 16px;
    width: calc(100% - 32px);
    height: calc(100% - 32px);
  }

  .sponsor-slide-media.is-contain {
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
  }

  .sponsor-slide-body {
    justify-content: flex-start;
    padding: 18px 20px 20px;
  }

  .sponsor-slide-line {
    font-size: 0.92rem;
  }
}

.residents-directory-count {
  margin: 0 0 20px;
  color: var(--muted);
  font: 400 0.84rem/1.4 var(--font-sans);
  text-align: right;
  white-space: nowrap;
}

.residents-directory-search {
  position: relative;
  width: 100%;
  min-width: 0;
}

.residents-directory-search > svg {
  position: absolute;
  top: 50%;
  left: 20px;
  width: 21px;
  height: 21px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.residents-directory-search > svg * {
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.residents-directory-search input {
  width: 100%;
  min-height: 60px;
  border: 1px solid #dedede;
  border-radius: var(--radius-input);
  background: #fff;
  color: var(--text);
  font: 400 0.98rem/1.4 var(--font-sans);
  padding: 0 20px 0 56px;
  transition: border-color var(--speed) var(--ease-out), box-shadow var(--speed) var(--ease-out);
}

.residents-directory-search input::placeholder {
  color: #74747b;
  opacity: 1;
}

.residents-directory-search input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(62, 122, 82, 0.12);
  outline: none;
}

.residents-directory-street-filter {
  width: 100%;
  max-width: 100%;
}

.residents-directory-street-filter select {
  width: 100%;
  max-width: 100%;
  min-height: 60px;
  appearance: none;
  border: 1px solid #dedede;
  border-radius: var(--radius-input);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%236b6f72' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 11px center;
  background-repeat: no-repeat;
  background-size: 11px 7px;
  color: var(--text);
  cursor: pointer;
  font: 400 0.98rem/1.4 var(--font-sans);
  padding: 0 44px 0 18px;
  transition: border-color var(--speed) var(--ease-out), box-shadow var(--speed) var(--ease-out);
}

.residents-directory-street-filter select:focus-visible {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(62, 122, 82, 0.12);
  outline: none;
}

.residents-directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.resident-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: #fff;
  padding: 15px;
}

.resident-card-photo {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 4px;
  object-fit: cover;
}

.resident-card-photo-placeholder {
  display: grid;
  place-items: center;
  background: #f0f1ef;
}

.resident-card-photo-placeholder img {
  width: 44px;
  height: 44px;
  opacity: 0.45;
}

.resident-card-content {
  min-width: 0;
  padding: 7px 7px 0 0;
}

.resident-card h2 {
  margin: 0 0 14px;
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.7vw, 1.55rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.015em;
  overflow-wrap: normal;
}

.resident-card-name-line {
  display: block;
}

.resident-card-name-connector {
  font-size: 0.72em;
}

.resident-card-contact {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  list-style: none;
}

.resident-card-contact li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-width: 0;
}

.resident-card-contact svg {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: #93969a;
}

.resident-card-contact svg * {
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resident-card-contact a {
  color: var(--primary-dark);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.resident-card-contact a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.resident-card[hidden],
.residents-directory-empty[hidden],
.residents-directory-more[hidden] {
  display: none;
}

.residents-directory-empty {
  margin: 42px 0 0;
  color: var(--muted);
  text-align: center;
}

.residents-directory-more,
.gallery-more {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.residents-directory-more button,
.gallery-more button {
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  cursor: pointer;
  font: 600 0.9rem/1.4 var(--font-sans);
  padding: 3px 1px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.residents-directory-more button:hover,
.residents-directory-more button:focus-visible,
.gallery-more button:hover,
.gallery-more button:focus-visible {
  color: var(--primary);
}

.residents-directory-more button:focus-visible,
.gallery-more button:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 5px;
}

@media (max-width: 1040px) {
  .residents-directory-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .residents-directory-filters {
    grid-template-columns: 1fr;
    gap: 12px;
    width: min(100%, 600px);
  }
}

@media (max-width: 560px) {
  .residents-directory-page .page-hero {
    padding-bottom: 30px;
  }

  .residents-directory-filters {
    margin-bottom: 14px;
  }

  .residents-directory-search input,
  .residents-directory-street-filter select {
    min-height: 54px;
    font-size: 0.9rem;
  }

  .residents-directory-search input {
    padding-left: 50px;
  }

  .residents-directory-search > svg {
    left: 17px;
  }

  .resident-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .resident-card-photo {
    width: 88px;
    height: 88px;
  }

  .resident-card h2 {
    margin-bottom: 16px;
    font-size: clamp(1.2rem, 6vw, 1.45rem);
  }

  .resident-card-contact {
    gap: 9px;
    font-size: 0.79rem;
  }

  .resident-card-contact li {
    grid-template-columns: 15px minmax(0, 1fr);
    gap: 7px;
  }

  .resident-card-contact svg {
    width: 15px;
    height: 15px;
  }
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

/* ------------------------------------------------------ commanditaires */

.commanditaires-page {
  padding-top: clamp(24px, 3vw, 36px);
}

.commanditaires-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 310px));
  max-width: 660px;
  margin-inline: auto;
  justify-content: center;
  gap: clamp(30px, 4vw, 40px);
}

.commanditaire-entry {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: inherit;
  text-align: center;
  text-decoration: none;
}

.commanditaire-visual {
  display: flex;
  width: 100%;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  border: 1px solid #E2E8E3;
  border-radius: 12px;
  background: #FFFFFF;
  overflow: hidden;
  transition: border-color 200ms ease;
}

a.commanditaire-entry:hover .commanditaire-visual {
  border-color: color-mix(in srgb, var(--primary) 42%, #E2E8E3);
}

a.commanditaire-entry:focus-visible {
  border-radius: 12px;
  outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent);
  outline-offset: 5px;
}

.commanditaire-visual img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.commanditaire-entry--portrait .commanditaire-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.commanditaire-entry--sunlife .commanditaire-visual img {
  width: 82%;
  height: 82%;
}

.commanditaire-entry--duquette .commanditaire-visual img {
  width: 94%;
  height: 94%;
}

/* The Répertoire banner's sponsors (Anabelle, 11 November): their images
   are small, so they fill most of the square instead of floating in it; the
   tiny Marina logo stops at half, to stay sharp. */
.commanditaire-entry--banner .commanditaire-visual img {
  width: 80%;
  height: 80%;
}

.commanditaire-entry--banner.commanditaire-entry--small .commanditaire-visual img {
  width: 50%;
  height: 50%;
}

/* Uniprix's round logo stays a little smaller than the wide ones, so it does
   not look heavier beside them (13 November). */
.commanditaire-entry--banner.commanditaire-entry--small-logo .commanditaire-visual img {
  width: 62%;
  height: 62%;
}

/* A sponsor whose logo has not arrived yet (13 November): its initials on
   the site's light green, until the logo replaces them. */
.commanditaire-entry--pending .commanditaire-visual {
  background: var(--primary-tint);
}

.commanditaire-initials {
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
}

.commanditaire-name {
  margin-top: 13px;
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.25;
}

.commanditaire-description {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (min-width: 901px) {
  .commanditaire-description {
    width: max-content;
    max-width: calc(100% + 48px);
    align-self: center;
  }
}

/* Wide screens: three per row (Anabelle, 11 November), the last row centred. */
@media (min-width: 1100px) {
  .commanditaires-grid {
    display: flex;
    flex-wrap: wrap;
    max-width: 1010px;
  }

  .commanditaires-grid > .commanditaire-entry {
    width: 310px;
  }
}

@media (max-width: 900px) {
  .commanditaires-grid {
    gap: clamp(26px, 4vw, 34px) clamp(20px, 4vw, 30px);
  }
}

@media (max-width: 560px) {
  .commanditaires-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }
}

/* ----------------------------------------------------------------- footer */

.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
  background: var(--primary-deep);
  color: var(--primary-tint);
}

.footer-grid {
  width: min(100% - 2 * var(--page-gutter), var(--max));
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) 0;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
}

/* "Fait avec Kirby" (Kirby's free licence asks for a link): a quiet last line. */
.footer-credit {
  width: min(100% - 2 * var(--page-gutter), var(--max));
  margin: calc(-1 * clamp(24px, 3vw, 40px)) auto 0;
  padding: 0 0 clamp(20px, 3vw, 28px);
  color: var(--primary-light);
  font-size: 0.8rem;
  opacity: 0.75;
}

.site-footer .footer-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .footer-credit a:hover {
  color: #fff;
}

.footer-grid p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--primary-light);
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  transition: color var(--speed) var(--ease-out);
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social-link {
  display: inline-grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 6px;
  opacity: 0.82;
  transition: background var(--speed) var(--ease-out), border-color var(--speed) var(--ease-out), opacity var(--speed) var(--ease-out);
}

.footer-social-link svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-social-link:hover {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

.site-footer ul a:hover {
  color: var(--primary-light);
}

.site-footer ul a:hover,
.footer-grid p a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  text-decoration-color: var(--primary-light);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 10px;
}

.site-footer ul a {
  font-size: 0.96rem;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-footer {
  color: #fff;
  margin-bottom: 16px;
}

.brand.brand-footer {
  width: 260px;
  height: 67px;
}

.brand-footer .brand-logo {
  height: 67px;
}

.brand-footer small {
  color: var(--primary-light);
  white-space: normal;
}

.brand-footer .brand-mark {
  background: #fff;
  color: var(--primary-deep);
}

/* ------------------------------------------------------------ back to top */

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: var(--z-top);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  box-sizing: border-box;
  border: 1.5px solid transparent;
  border-radius: 50%;
  background-color: #2f6b3a;
  color: #fff;
  box-shadow: var(--shadow-raised);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity var(--speed-slow) var(--ease-out),
    transform var(--speed-slow) var(--ease-out-expo),
    background-color 200ms ease,
    color 200ms ease,
    border-color 200ms ease;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

.back-to-top:hover {
  background: var(--primary-dark);
}

.back-to-top.is-inverted {
  border-color: #2f6b3a;
  background-color: #fff;
  color: #2f6b3a;
}

.back-to-top.is-inverted:hover {
  border-color: var(--primary-dark);
  background-color: var(--surface);
  color: var(--primary-dark);
}

.site-header.is-scrolled ~ .back-to-top {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ------------------------------------------------------------- responsive */

/* Tablet and mobile drawer navigation. Desktop remains the base above 1080px. */
@media (max-width: 1080px) {
  :root {
    --header-height: 80px;
    --page-gutter: 32px;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  .site-header {
    padding-inline: var(--page-gutter);
  }

  /* The logo is a 4.76:1 wordmark, so it is sized by height: sizing it by
     width is what made it smaller on tablet than on desktop. */
  .brand {
    width: auto;
    flex: 0 0 auto;
  }

  .brand-logo,
  .brand-header-logo {
    width: auto;
    height: 52px;
    max-width: none;
  }

  .nav-shell {
    position: relative;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-nav-toggle {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    padding: 12px;
    place-content: center;
    gap: 5px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--primary-deep);
    cursor: pointer;
  }

  .mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-header.nav--over-hero .mobile-nav-toggle {
    color: #FFFFFF;
  }

  .site-header.is-mobile-menu-open .mobile-nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.is-mobile-menu-open .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-mobile-menu-open .mobile-nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-nav-panel {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 22px max(var(--page-gutter), calc((100vw - var(--max-w)) / 2)) 32px;
    border-top: 1px solid var(--border);
    background: #FFFFFF;
  }

  .site-header.is-mobile-menu-open .mobile-nav-panel {
    display: block;
  }

  .primary-nav {
    display: grid;
    width: 100%;
    gap: 4px;
    margin-left: 0;
  }

  .primary-nav > a,
  .primary-nav .nav-menu > summary {
    width: 100%;
    min-height: 48px;
    justify-content: space-between;
    padding: 11px 4px;
    color: var(--primary-deep);
    font-size: 1rem;
    text-decoration: none;
  }

  .site-header.nav--over-hero .mobile-nav-panel .primary-nav > a,
  .site-header.nav--over-hero .mobile-nav-panel .primary-nav .nav-menu > summary {
    color: var(--primary-deep);
  }

  .mobile-nav-panel .nav-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 22px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--border);
  }

  .mobile-nav-panel .nav-actions.member-nav-actions {
    display: none;
  }

  .mobile-nav-panel .nav-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    justify-content: center;
  }

  .site-header.nav--over-hero .mobile-nav-panel .btn-secondary {
    border-color: var(--primary-deep);
    color: var(--primary-deep);
  }

  .event-detail,
  .dashboard-hero,
  .account-layout,
  .auth-layout,
  .membership-path,
  .news-editorial,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .benefits-section .benefit-card__media {
    height: 220px;
  }

  .nav-actions {
    margin-left: auto;
  }

  .cards-grid-3,
  .cards-grid-4,
  .gallery-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .primary-nav .nav-menu {
    width: 100%;
  }

  .primary-nav .member-nav-menu {
    margin-left: 0;
  }

  /* In the drawer every row reads the same: Espace membre drops the desktop
     pill (it became a full-width tinted box), and the current section is told
     apart by the same quiet underline the desktop nav uses. */
  .primary-nav .member-nav-menu > summary,
  .primary-nav .member-nav-menu > summary:hover,
  .primary-nav .member-nav-menu[open] > summary,
  .primary-nav .member-nav-menu.is-open > summary,
  .site-header.nav--over-hero .primary-nav .member-nav-menu > summary,
  .site-header.nav--over-hero .primary-nav .member-nav-menu > summary:hover,
  .site-header.nav--over-hero .primary-nav .member-nav-menu[open] > summary,
  .site-header.nav--over-hero .primary-nav .member-nav-menu.is-open > summary {
    min-height: 48px;
    padding: 11px 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--primary-deep);
    font-weight: 500;
  }

  .primary-nav > a:hover,
  .primary-nav .nav-menu > summary:hover {
    color: var(--primary);
  }

  .primary-nav > a[aria-current="page"],
  .primary-nav .nav-menu.is-open > summary,
  .site-header.nav--over-hero .mobile-nav-panel .primary-nav > a[aria-current="page"],
  .site-header.nav--over-hero .mobile-nav-panel .primary-nav .nav-menu.is-open > summary,
  .primary-nav .member-nav-menu.is-open > summary,
  .site-header.nav--over-hero .primary-nav .member-nav-menu.is-open > summary {
    color: var(--color-foret);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--color-foret) 45%, transparent);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 7px;
  }

  .nav-menu-panel {
    position: static;
    min-width: 0;
    margin-top: 8px;
    padding: 4px 0 8px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: none;
    animation: none;
  }

  .nav-menu-panel a {
    padding: 10px 16px;
    border-radius: 6px;
  }

  /* Pages whose top block never cleared the header: login, and any page that
     opens directly on the bare page hero (infolettre, documents, default). */
  .login-page:not(.contact-page) {
    padding-top: calc(var(--header-height) + var(--page-top-gap, 40px));
  }

  /* Desktop renders this hero at 72px, i.e. 8px under the 64px header. */
  main > .page-hero:first-child {
    padding-top: calc(var(--header-height) + var(--page-top-gap, 8px));
  }
  /* Touch widths: browser-default 13px select/textarea text makes iOS zoom
     the page on focus. Desktop keeps its current rendering. */
  select,
  textarea {
    font: inherit;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .gallery-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mission-statement {
    font-size: clamp(2rem, 3.2vw, 2.125rem);
    line-height: 1.26;
  }
}

/* Phone tier. Shares the 640px line with the page-level phone rules below. */
@media (max-width: 640px) {
  :root {
    --header-height: 72px;
    --page-gutter: 20px;
  }

  .brand-logo,
  .brand-header-logo {
    height: 46px;
  }

  .nav-shell {
    width: 100%;
  }

  /* Drawer actions stack full width: two columns wrapped "Devenir membre"
     onto two lines at 360px and below. */
  .mobile-nav-panel .nav-actions {
    grid-template-columns: 1fr;
  }

  .mobile-nav-panel .nav-actions .btn {
    min-height: 48px;
    white-space: nowrap;
  }
}

/* Rail dots exist only where the rails do (<= 640px). */
.phone-rail-dots {
  display: none;
}

@media (max-width: 640px) {
  .section {
    padding-block: 48px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading h2 {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  .event-banner-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .page-hero h1,
  .dashboard-hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.3rem);
    line-height: 1.12;
  }

  .page-hero p,
  .dashboard-hero p {
    font-size: 1.02rem;
  }

  .button-row .btn {
    width: 100%;
  }

  .cards-grid-3,
  .cards-grid-4,
  .gallery-index-grid {
    grid-template-columns: 1fr;
  }

  .gallery-index-page {
    padding-top: 24px;
  }

  .event-row {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 16px;
  }

  .photo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .event-date {
    padding: 10px 6px 8px;
  }

  .event-date-day {
    font-size: 1.55rem;
  }

  .event-date-month {
    font-size: 0.72rem;
  }

  .benefits-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
    margin: 32px 0 40px;
  }

  .benefits-stats .benefits-stats__item {
    min-width: 0;
    padding: 0 4px;
    text-align: center;
  }

  .benefits-stats__divider {
    display: none;
  }

  .benefits-stats__number {
    margin-bottom: 5px;
    font-size: 26px;
  }

  .benefits-stats__label {
    font-size: 10px;
    letter-spacing: 0.06em;
    line-height: 1.3;
  }

  .benefits-section,
  .home-sponsors {
    padding-inline: var(--page-gutter);
  }

  .benefits-section {
    padding-block: 48px;
  }

  .benefits-section .section-heading h2 {
    font-size: 30px;
  }

  .home-sponsors {
    padding-block: 48px 32px;
  }

  .home-sponsors .section-heading {
    margin-bottom: 32px;
  }

  /* Shared phone rail: card collections stay compact without changing their
     desktop/tablet presentation. The next card peeks in as the affordance. */
  .benefits-section .benefits-bento,
  .events-past-grid,
  .association-archive-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    grid-template-columns: none;
    gap: 14px;
    max-width: none;
    margin-inline: calc(-1 * var(--page-gutter));
    padding-inline: var(--page-gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--page-gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  /* Slide indicators for the rails (built by site.js). Same dot as the
     announcements carousel so every slideshow on the site reads alike. */
  .phone-rail-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 18px;
  }

  .phone-rail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(15, 61, 36, 0.28);
    cursor: pointer;
    transition: background-color 200ms ease, transform 200ms ease;
  }

  .phone-rail-dot.is-active {
    background: var(--color-foret, #0F3D24);
    transform: scale(1.2);
  }

  .benefits-section .benefits-bento::-webkit-scrollbar,
  .events-past-grid::-webkit-scrollbar,
  .association-archive-grid::-webkit-scrollbar {
    display: none;
  }

  .benefits-section .benefit-card,
  .events-past-grid > *,
  .association-archive-grid > * {
    min-width: 0;
    scroll-snap-align: start;
  }

  .benefits-section .benefits-bento {
    grid-auto-rows: 1fr;
  }

  .benefits-section .benefit-card__media {
    height: 160px;
  }

  .home-sponsor-image {
    width: 100%;
    height: 200px;
  }

  .home-sponsor-name,
  .home-sponsor-description {
    width: 100%;
    max-width: none;
  }

  .news-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .news-row-meta {
    grid-column: 1 / -1;
    order: -1;
  }

  .card,
  .sponsor-card,
  .auth-form,
  .auth-help-card {
    padding: 22px;
  }

  .contact-page {
    width: min(100% - 2 * var(--page-gutter), 700px);
  }

  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form-row:first-child .contact-form-field + .contact-form-field label {
    margin-top: 22px;
  }

  .account-card dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .event-facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ------------------------------------------------------------- infolettre */

/* The consent form shares its control vocabulary with `.auth-form`: same input
   height, border weight, radius and focus treatment. Two authenticated forms
   that look like different products is the tell we are avoiding here. */

.newsletter-signup {
  max-width: 760px;
}

.newsletter-form {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

/* Labels sit above their input rather than beside it: it survives long French
   labels without a column squeeze, and it is the more forgiving reading order
   for the residents this form is aimed at. */
.newsletter-form .form-grid {
  display: grid;
  gap: 6px;
}

/* Scoped to the field labels. The consent control is also a <label>, but it
   carries a full paragraph of copy: at 650 the whole consent statement renders
   bold, which is both harder to read and a strange thing to shout. */
.newsletter-form .form-grid label {
  color: var(--primary-deep);
  font-size: 0.95rem;
  font-weight: 650;
}

.newsletter-form .form-grid input + label {
  margin-top: 18px;
}

.newsletter-form .form-grid label .meta {
  font-weight: 400;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-input);
  background: #fff;
  color: var(--text);
  font: inherit;
  transition: border-color var(--speed) var(--ease-out),
    box-shadow var(--speed) var(--ease-out);
}

.newsletter-form input[type="text"]:focus-visible,
.newsletter-form input[type="email"]:focus-visible,
.newsletter-consent input:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}

/* The checkbox is the consent record, so it gets a visible focus ring of its
   own; `box-shadow` alone is invisible on a native control in forced colours. */
.newsletter-consent input:focus-visible {
  outline: 2px solid var(--primary-deep);
  outline-offset: 3px;
}

.newsletter-consent {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  line-height: 1.55;
}

.newsletter-consent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--primary-dark);
}

.newsletter-consent a {
  color: var(--primary);
  font-weight: 650;
}

.newsletter-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 40rem) {
  .newsletter-form .btn {
    width: 100%;
  }
}

/* Scroll reveals: only when JS is running; content stays visible without it. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--speed-reveal) var(--ease-out-expo),
    transform var(--speed-reveal) var(--ease-out-expo);
}

html.js [data-reveal="left"] {
  transform: translateX(-18px);
}

html.js [data-reveal="right"] {
  transform: translateX(18px);
}

html.js [data-reveal="scale"] {
  transform: scale(0.96);
}

html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* Staggered groups: children enter one after another once the group is seen. */
html.js [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--speed-reveal) var(--ease-out-expo),
    transform var(--speed-reveal) var(--ease-out-expo);
  transition-delay: calc(var(--reveal-index, 0) * var(--stagger));
}

html.js [data-reveal-stagger].is-revealed > * {
  opacity: 1;
  transform: none;
}

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

  html.js [data-reveal],
  html.js [data-reveal-stagger] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .benefits-section .benefit-card:hover {
    transform: none;
  }

  .benefits-section .benefit-card__photo,
  .benefits-section .benefit-card__link {
    transition-duration: 0ms;
  }

  .benefits-section .benefit-card:hover .benefit-card__photo {
    transform: scale(1);
  }
}
/* ------------------------------------------------------ Projet Portail Nord */

.portail-nord-page {
  padding-top: clamp(20px, 3vw, 32px);
  padding-bottom: clamp(88px, 10vw, 128px);
}

.portail-editorial-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(42px, 6vw, 76px);
}

.portail-introduction,
.portail-history {
  display: block;
}

.portail-introduction .portail-copy,
.portail-history .portail-copy {
  max-width: none;
}

.portail-introduction .portail-copy p,
.portail-history .portail-copy p {
  font-size: 1rem;
  line-height: 1.65;
  text-align: justify;
}

.portail-introduction .portail-media,
.portail-history .portail-media {
  width: 100%;
  margin: 0 0 clamp(22px, 3vw, 30px);
}

.portail-introduction .portail-copy p + p,
.portail-history .portail-copy p + p {
  margin-top: 0.9rem;
}

.portail-history .portail-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(1.65rem, 2.6vw, 2.05rem);
}

.portail-editorial-section + .portail-editorial-section,
.portail-editorial-section + .portail-chronology,
.portail-chronology + .portail-editorial-section,
.portail-editorial-section + .portail-document {
  margin-top: clamp(72px, 9vw, 112px);
}

.portail-introduction + .portail-history {
  margin-top: clamp(54px, 6vw, 76px);
}

.portail-copy {
  max-width: 620px;
}

.portail-copy h2,
.portail-chronology h2,
.portail-document h2 {
  margin: 0 0 22px;
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.6vw, 2.55rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.portail-copy p {
  margin: 0;
  color: var(--text);
  line-height: 1.75;
}

.portail-copy p + p {
  margin-top: 1.15rem;
}

.portail-media {
  width: 100%;
  margin: 0;
}

.portail-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
}

.portail-media-archive-detail {
  border-radius: var(--radius-card);
}

.portail-media-archive-detail img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.portail-chronology ol {
  margin: 0;
  padding: 0 0 0 26px;
  border-left: 1px solid var(--border-strong);
  list-style: none;
}

.portail-chronology li {
  position: relative;
  color: var(--text);
  line-height: 1.65;
}

.portail-chronology li + li {
  margin-top: 18px;
}

.portail-chronology li::before {
  position: absolute;
  top: 0.65em;
  left: -30px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  content: '';
}

.portail-actions {
  margin-top: 24px;
}

.portail-resource-link {
  border-color: var(--primary);
  background: #fff;
  color: var(--primary-dark);
}

.portail-resource-link:hover {
  border-color: var(--primary-dark);
  background: var(--primary-tint);
  color: var(--primary-deep);
  box-shadow: none;
}

.portail-pdf-viewer {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #f4f4f1;
}

.portail-pdf-toolbar {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 0.9rem;
}

.portail-pdf-toolbar button {
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-btn);
  background: #fff;
  color: var(--primary-dark);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.portail-pdf-toolbar button:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--primary-tint);
}

.portail-pdf-toolbar button:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.45;
}

.portail-pdf-canvas-wrap {
  display: grid;
  place-items: start center;
  overflow: visible;
  padding: clamp(18px, 3vw, 30px);
}

.portail-pdf-canvas-wrap canvas {
  display: block;
  max-width: 100%;
  height: auto;
  background: #fff;
}

.portail-pdf-error {
  max-width: 480px;
  margin: auto;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 820px) {
  .portail-editorial-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .portail-copy {
    max-width: 720px;
  }

}

@media (max-width: 560px) {
  .portail-editorial-section + .portail-editorial-section,
  .portail-editorial-section + .portail-chronology,
  .portail-chronology + .portail-editorial-section,
  .portail-editorial-section + .portail-document {
    margin-top: 64px;
  }

  .portail-resource-link {
    width: 100%;
  }

  .portail-pdf-toolbar {
    gap: 8px;
    font-size: 0.8rem;
  }

  .portail-pdf-toolbar button {
    padding-inline: 8px;
  }

  .portail-pdf-canvas-wrap {
    padding: 14px;
  }
}

/* -------------------------------------------------- member account frontend */

.member-account {
  padding-top: 18px;
}

/* Welcome, renewal and payment notices sit above the account layout. */
.member-account > .notice-info,
.member-account > .notice-warning,
.member-account > .notice-critical:not(.renewal-access-notice) {
  margin: 0 0 18px;
}

/* The renewal reminder is its own card, like the panels below: the date in
   the serif, and a real button to act on it. Real problems (expired,
   pending) keep the notice box. */
.member-renewal-reminder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  margin: 0 0 28px;
  padding: clamp(20px, 3vw, 28px) clamp(22px, 4vw, 44px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.member-renewal-reminder .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
}

/* Yellow: a warning that does not take access away. Red is for the notices
   that do (ended, payment required). Anabelle, 16 Nov. */
.member-renewal-reminder .member-status-dot {
  background: #d39b2a;
}

.member-renewal-reminder-date {
  margin: 0;
  color: var(--color-foret);
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 500;
  line-height: 1.25;
}

.member-renewal-reminder .btn {
  flex: 0 0 auto;
}

.member-welcome h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  font-weight: 600;
}

/* One column: a tab bar over the panel. The bar stays where it is on the
   page (no sticky sidebar following the scroll). */
.member-account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.member-account-sidebar {
  min-width: 0;
}

.member-account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(20px, 3vw, 36px);
  border-bottom: 1px solid var(--border-strong);
}

.member-account-tabs button {
  margin-bottom: -1px;
  padding: 14px 0 13px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 560;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--speed) var(--ease-out), border-color var(--speed) var(--ease-out);
}

/* The selected tab: darker and underlined on the bar's line, the usual tab
   pattern. No tinted box, no side bar. */
.member-account-tabs button:hover {
  color: var(--primary-deep);
  border-bottom-color: var(--primary-light);
}

.member-account-tabs button[aria-selected="true"] {
  color: var(--color-foret);
  font-weight: 650;
  border-bottom-color: var(--color-foret);
}

.member-account-tabs button:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

.member-account-mobile-label,
.member-account-mobile-select {
  display: none;
}

.member-account-content {
  min-width: 0;
}

.member-account-panel[hidden],
.member-profile-field-edit[hidden],
.member-profile-edit-actions[hidden],
.member-profile-photo-controls[hidden],
.member-renewal-save-actions[hidden],
.member-payment-method-editor[hidden],
.member-payment-method-confirm[hidden],
.renewal-information-edit[hidden] {
  display: none;
}

.member-account-panel {
  min-height: 440px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.member-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.member-panel-heading .eyebrow,
.renewal-confirmation .eyebrow {
  margin: 0 0 6px;
}

.member-panel-heading h2,
.renewal-confirmation h2,
.member-suggestion-dialog h2 {
  margin: 0;
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.15;
}

.member-text-button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary-deep);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--primary-light);
  text-underline-offset: 4px;
  cursor: pointer;
}

.member-text-button:hover {
  color: var(--primary);
}

.member-text-button-muted {
  color: var(--muted);
}

.member-icon-button,
.member-avatar-edit {
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary-deep);
  cursor: pointer;
}

.member-icon-button {
  width: 34px;
  height: 34px;
  margin-top: 3px;
}

.member-icon-button[hidden] {
  display: none;
}

.member-icon-button svg {
  width: 20px;
  height: 20px;
}

.member-icon-button:hover,
.member-avatar-edit:hover {
  color: var(--primary);
}

.member-icon-button:focus-visible,
.member-avatar-edit:focus-visible {
  border-radius: 5px;
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.member-profile-summary {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  column-gap: clamp(24px, 4vw, 42px);
  row-gap: 0;
  align-items: start;
}

.member-profile-avatar-column {
  position: relative;
  width: 104px;
}

.member-profile-avatar {
  position: relative;
  width: 104px;
  aspect-ratio: 1;
}

.member-profile-avatar-media {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
}

.member-profile-avatar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-avatar-edit {
  position: absolute;
  right: -2px;
  bottom: 2px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 38, 24, 0.12);
}

.member-avatar-edit svg {
  width: 15px;
  height: 15px;
}

.member-profile-photo-controls {
  display: grid;
  justify-items: start;
  gap: 8px;
  width: 140px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.member-profile-fields,
.member-membership-list,
.renewal-information-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 30px;
  margin: 0;
}

.member-profile-fields > div,
.member-membership-list > div,
.renewal-information-list > div {
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.member-profile-fields dt,
.member-membership-list dt,
.renewal-information-list dt,
.member-payment-label {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.025em;
}

.member-profile-fields dd,
.member-membership-list dd,
.renewal-information-list dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.member-profile-fields dd[data-profile-value="address"] {
  white-space: pre-line;
}

.member-profile-field-edit input,
.member-profile-field-edit textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #C8CED3;
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font: inherit;
  line-height: 1.4;
}

.member-profile-field-edit textarea {
  min-height: 70px;
  resize: vertical;
}

.member-profile-field-edit input:focus,
.member-profile-field-edit textarea:focus {
  border-color: var(--primary);
  outline: 2px solid var(--primary-tint);
  outline-offset: 1px;
}

.member-profile-household-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.member-profile-edit-actions {
  display: flex;
  grid-column: 2;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px 24px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.member-profile-edit-actions > div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.member-profile-field-wide,
.member-edit-field-wide,
.renewal-information-wide {
  grid-column: 1 / -1;
}

.member-preview-note {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.member-profile-photo-editor {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
}

.member-profile-photo-actions {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.member-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.member-edit-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.member-status-pill,
.member-payment-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--primary-deep);
  font-size: 0.76rem;
  font-weight: 700;
}

.member-membership-renewal,
.member-membership-payment {
  grid-column: 1 / -1;
}

.member-renewal-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.member-renewal-toggle-track {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #A7B0AA;
  transition: background var(--speed) var(--ease-out);
}

.member-renewal-toggle-track span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 38, 24, 0.22);
  transition: transform var(--speed) var(--ease-out);
}

.member-renewal-toggle[aria-checked="true"] .member-renewal-toggle-track {
  background: var(--primary);
}

.member-renewal-toggle[aria-checked="true"] .member-renewal-toggle-track span {
  transform: translateX(18px);
}

.member-renewal-toggle:focus-visible {
  border-radius: 5px;
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.member-renewal-save-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.member-renewal-save.btn {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 0.84rem;
}

.member-payment-method-summary {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.member-payment-method-editor {
  width: min(100%, 540px);
  margin-top: 18px;
}

.member-payment-method-editor h3 {
  margin: 0 0 14px;
  color: var(--primary-deep);
  font-size: 1rem;
}

.member-payment-method-editor .membership-stripe-placeholder {
  min-height: 154px;
}

.member-payment-method-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 18px;
}

.member-payment-method-confirm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.member-payment-method-confirm > div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.member-text-button-danger {
  color: #8A3434;
  text-decoration-color: #D9B7B7;
}

.member-text-button-danger:hover {
  color: #6E2424;
}

.member-outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid var(--primary-deep);
  border-radius: 7px;
  background: #fff;
  color: var(--primary-deep);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
}

.member-outline-button:hover {
  background: var(--primary-tint);
  color: var(--primary-deep);
}

.member-outline-button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.member-panel-cta {
  margin-top: 30px;
}

/* Mon compte > Adhésion: automatic renewal as one switch (Anabelle,
   11 November), the same switch as the sign-up form. */
.member-auto-renew-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.member-auto-renew-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.member-auto-renew-switch input:checked + .membership-switch {
  background: var(--primary);
}

.member-auto-renew-switch input:checked + .membership-switch::after {
  transform: translateX(18px);
}

.member-auto-renew-switch input:focus-visible + .membership-switch {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.member-auto-renew-panel {
  margin-top: 18px;
}

.member-auto-renew-panel[hidden] {
  display: none;
}

.member-auto-renew-panel form {
  display: grid;
  gap: 14px;
}

.member-auto-renew-panel .membership-summary-note {
  margin: 0;
}

.member-auto-renew-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.member-payment-list {
  border-top: 1px solid var(--border);
}

.member-payment-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.35fr) minmax(88px, 0.5fr) minmax(132px, 0.75fr) minmax(170px, 1fr) minmax(105px, 0.55fr);
  gap: clamp(14px, 2vw, 24px);
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.member-payment-row > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.member-payment-row strong,
.member-payment-row span {
  overflow-wrap: anywhere;
}

.member-payment-receipt {
  align-self: center;
}

.member-payment-status.is-unpaid {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
}

.member-payment-row span:not(.member-payment-status) {
  color: var(--muted);
  font-size: 0.82rem;
}

.member-security-card,
.member-suggestion-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 26px;
  border-radius: 12px;
  background: var(--surface);
}

#account-panel-suggestions {
  min-height: 0;
}

.member-suggestion-card {
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
}

.member-suggestion-card .btn {
  white-space: nowrap;
}

.member-security-card h3,
.member-security-card p,
.member-suggestion-card p {
  margin: 0;
}

.member-security-card h3 {
  color: var(--primary-deep);
  font-size: 1.05rem;
}

.member-security-card p {
  margin-top: 6px;
  color: var(--muted);
}

/* The new password and its confirmation read as one group, apart from the
   current password, so "Retapez" is not mistaken for a verification code. */
.member-password-new {
  margin: 18px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white, #fff);
}

.member-password-new .membership-field + .membership-field {
  margin-top: 10px;
}

.member-security-card .member-password-new .membership-field-help {
  margin: 8px 0 0;
  font-size: 0.8rem;
}

.member-password-submit {
  margin-top: 20px;
}

.member-inline-feedback {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.member-suggestion-dialog,
.member-membership-document-dialog {
  width: min(100% - 32px, 620px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  box-shadow: var(--shadow-raised);
}

.member-suggestion-dialog::backdrop,
.member-membership-document-dialog::backdrop {
  background: rgba(15, 38, 24, 0.48);
}

.member-suggestion-dialog form {
  position: relative;
  display: grid;
  gap: 20px;
  padding: clamp(28px, 5vw, 46px);
}

.member-membership-document {
  position: relative;
  display: grid;
  gap: 22px;
  padding: clamp(28px, 5vw, 46px);
}

.member-membership-document .eyebrow,
.member-membership-document h2,
.member-membership-document-note {
  margin: 0;
}

.member-membership-document h2 {
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.15;
}

.member-membership-document-details {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}

.member-membership-document-details > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.85fr) minmax(0, 1fr);
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.member-membership-document-details dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.member-membership-document-details dd {
  margin: 0;
  font-weight: 650;
}

.member-membership-document-note {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.member-membership-document-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.member-suggestion-dialog p {
  margin: 0;
  color: var(--muted);
}

.member-suggestion-dialog textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #D0D5DA;
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
}

.member-dialog-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.member-account-toast {
  position: fixed;
  z-index: 120;
  right: 24px;
  bottom: 24px;
  max-width: min(390px, calc(100% - 48px));
  padding: 14px 18px;
  border-radius: 9px;
  background: var(--primary-deep);
  color: #fff;
  box-shadow: var(--shadow-raised);
  font-size: 0.88rem;
}

.member-suggestion-dialog select {
  width: 100%;
  min-height: 46px;
  padding: 10px 40px 10px 12px;
  border: 1px solid #D0D5DA;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

@media (min-width: 901px) {
  .member-payment-row strong,
  .member-payment-row > div:first-child span,
  .member-membership-list dd,
  .member-payment-method-summary {
    white-space: nowrap;
  }
}

/* ------------------------------------------------ renewal frontend preview */

.renewal-page {
  min-height: 70vh;
}

.renewal-flow {
  width: min(100%, 720px);
  margin-inline: auto;
}

.renewal-page-hero {
  padding-bottom: clamp(34px, 4.5vw, 48px);
}

.renewal-page-panel > h2,
.renewal-confirmation h2 {
  margin: 0 0 20px;
  color: var(--primary-deep);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.renewal-page .renewal-information-card,
.renewal-page .renewal-information-edit {
  background: #fff;
}

.renewal-page .renewal-information-card {
  border: 1px solid var(--border);
}

.renewal-page .renewal-primary-action {
  margin-top: 28px;
}

.renewal-edit-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.renewal-edit-actions .btn {
  min-height: 44px;
  padding: 10px 20px;
}

.renewal-page .renewal-summary-card {
  width: min(100%, 540px);
  margin-inline: auto;
  box-shadow: none;
}

/* Nothing to pay: no "Paiement" heading, the card sits closer to the title. */
.renewal-page-hero:has(~ .renewal-panel-nothing-to-pay:not([hidden])) {
  padding-bottom: 12px;
}

/* Signup: a new house not yet in the city's list (Anabelle, 11 November). */
/* Under the whole Adresse/Courriel row, full width; empty, it takes no room. */
.address-flag {
  display: grid;
  gap: 8px;
}

.address-flag:not(:has(> :not([hidden]))) {
  display: none;
}

.address-flag > .membership-field-error,
.address-unlisted-option,
.address-unlisted-note {
  margin: 0;
}

/* Inside the address field the text-input styles must not reach the box:
   the same 18px box as "Ajouter le nom d'une autre personne du foyer". */
.membership-field .address-unlisted-option input[type="checkbox"],
.member-profile-field-edit .address-unlisted-option input[type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
  appearance: auto;
  accent-color: var(--primary-dark);
}

/* Mon compte: the required fields show their asterisk only while editing
   (Anabelle, 11 November); Téléphone secondaire has none. */
.member-profile-summary:not(.is-editing) .member-required-mark {
  display: none;
}

/* Mon compte: the box sits under the address, left-aligned, like at sign-up. */
.member-profile-field-edit .address-unlisted-option {
  justify-content: flex-start;
  width: fit-content;
  margin-top: 8px;
}

/* Shown only for an address found nowhere: [hidden] must win over display. */
.address-unlisted-option[hidden],
.address-unlisted-note[hidden] {
  display: none;
}

/* Signup: "Vous semblez déjà avoir un compte" (Anabelle, 11 November). */
.membership-existing-account p {
  margin: 0 0 10px;
}

.membership-existing-account label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 6px;
  cursor: pointer;
}

.membership-existing-account input[type="checkbox"] {
  flex: none;
  margin-top: 4px;
}

.renewal-page-panel > .membership-back-button {
  display: flex;
  margin: 18px auto 0;
}

.renewal-page .renewal-confirmation {
  padding-top: 8px;
}

.renewal-page .renewal-confirmation h2 {
  margin-bottom: 0;
}

/* The household "Ajouter" link keeps .member-text-button's look, like the
   secondary-phone button next to it (Anabelle, 11 November). */
.renewal-information-list a:not(.member-text-button) {
  color: inherit;
  text-decoration: none;
}

.renewal-information-list a:not(.member-text-button):hover {
  color: var(--primary-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.renewal-step-indicator {
  margin-bottom: clamp(38px, 6vw, 62px);
}

.renewal-confirmation > p:not(.eyebrow) {
  margin: 10px auto 0;
  color: var(--muted);
}

.renewal-information-card {
  position: relative;
  padding: 26px;
  border-radius: 12px;
  background: var(--surface);
}

.renewal-information-edit-trigger {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  border-radius: 6px;
}

.renewal-information-edit {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.renewal-information-edit > .member-text-button {
  margin-top: 24px;
}

.renewal-primary-action {
  display: flex;
  max-width: 360px;
  margin-inline: auto;
}

.renewal-summary-card {
  box-shadow: none;
}

.renewal-summary-card .membership-auto-renewal-option {
  margin-top: 24px;
}

.renewal-confirmation {
  text-align: center;
}

.renewal-confirmation .membership-success-icon {
  display: grid;
  margin: 0 auto 22px;
}

.renewal-confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

@media (max-width: 900px) {
  .member-account-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .member-account-sidebar {
    position: static;
    min-width: 0;
  }

  .member-account-tabs {
    display: none;
  }

  .member-account-mobile-label,
  .member-account-mobile-select {
    display: block;
  }

  .member-account-mobile-label {
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 650;
  }

  .member-account-mobile-select {
    width: 100%;
    min-height: 48px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font: inherit;
    text-overflow: ellipsis;
  }

  .member-payment-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-payment-row > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .member-account {
    padding-top: 0;
  }

  .member-account-layout {
    gap: 18px;
  }

  .member-account-panel {
    padding: 22px 18px;
  }

  .member-account-panel {
    min-height: 0;
  }

  .member-profile-summary {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }

  .member-panel-heading {
    margin-bottom: 26px;
    padding-bottom: 18px;
  }

  .member-icon-button {
    width: 42px;
    height: 42px;
    margin-top: 0;
  }

  .member-profile-edit-actions {
    grid-column: auto;
  }

  .member-profile-fields,
  .member-membership-list,
  .renewal-information-list,
  .member-edit-grid,
  .member-payment-row {
    grid-template-columns: 1fr;
  }

  .member-profile-field-wide,
  .member-edit-field-wide,
  .renewal-information-wide,
  .member-membership-renewal,
  .member-membership-payment {
    grid-column: auto;
  }

  .member-payment-method-actions,
  .member-payment-method-confirm {
    align-items: flex-start;
    flex-direction: column;
  }

  .member-panel-heading,
  .member-security-card,
  .member-suggestion-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .member-profile-photo-editor,
  .member-edit-actions,
  .renewal-confirmation-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  #account-panel-profil .member-panel-heading {
    align-items: flex-start;
    flex-direction: row;
  }

  .member-profile-edit-actions,
  .member-profile-edit-actions > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .member-profile-household-edit {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .member-payment-method-summary {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .member-panel-cta,
  .member-security-card .btn,
  .member-suggestion-card .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .renewal-page {
    width: min(100% - 2 * var(--page-gutter), var(--max));
  }

  .renewal-page-hero {
    padding-bottom: 30px;
  }

  .renewal-step-indicator {
    margin-bottom: 34px;
  }

  .renewal-step-indicator ol {
    min-width: 0;
  }

  .renewal-step-indicator li {
    min-width: 0;
  }

  .renewal-step-indicator .membership-step-label {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .renewal-information-card,
  .renewal-information-edit {
    padding: 22px 18px;
  }

  .renewal-information-card {
    padding-top: 54px;
  }

  .renewal-information-edit-trigger {
    top: 10px;
    right: 10px;
  }

  .renewal-primary-action,
  .renewal-summary-card .membership-pay-button,
  .renewal-confirmation-actions .btn,
  .renewal-confirmation-actions .member-text-button {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .renewal-confirmation-actions {
    width: 100%;
    gap: 16px;
  }

  .renewal-edit-actions {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
  }

  .renewal-edit-actions .btn,
  .renewal-edit-actions .member-text-button {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .member-membership-document-details > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .member-membership-document-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .renewal-step-indicator .membership-step-label {
    font-size: 0.68rem;
  }
}

.filmstrip-decades {
  display: none;
}

/* ------------------------------------------------------------ phone system */

/* One set of rules for every page at <= 640px, so pages stop drifting apart
   one Codex request at a time. Each rule repeats the component selectors it
   overrides: same specificity, later in the file. Desktop never reaches this.
   R1 reading text is left-aligned and never justified; R2 one heading scale
   (page H1 34px, section H2 26px); R4 one rhythm (page top = header + 28px,
   title and subtitle 8px apart); R5 page headers are left-aligned, except the
   single-purpose login and contact screens. */
@media (max-width: 640px) {
  :root {
    --page-top-gap: 28px;
  }

  /* R4: the member dashboard never cleared the fixed header on phones. */
  .dashboard-hero {
    padding-top: calc(var(--header-height) + var(--page-top-gap));
  }

  /* R2: page titles. */
  .page-hero h1,
  .dashboard-hero h1,
  .login-heading h1,
  .membership-hero h1,
  [data-membership-current-step="1"] .membership-hero h1,
  [data-membership-current-step="2"] .membership-hero h1,
  [data-membership-current-step="3"] .membership-hero h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  /* R2: section headings never outrank the page title. */
  .section-heading h2,
  .benefits-section .section-heading h2,
  .next-event-content h2,
  .association-chapter h2,
  .association-neighbourhood > h2,
  .safety-content h2,
  .flood-page .flood-section-heading,
  .portail-copy h2,
  .portail-chronology h2,
  .portail-document h2,
  .portail-history .portail-copy h2,
  .member-panel-heading h2,
  .renewal-confirmation h2,
  .renewal-page-panel > h2 {
    font-size: 26px;
    line-height: 1.18;
  }

  /* R4: a title and its subtitle read as one group. */
  .page-hero h1,
  .dashboard-hero h1,
  .association-page-hero .page-hero h1,
  .residents-directory-page .page-hero h1 {
    margin-bottom: 8px;
  }

  .page-hero h1 + p,
  .events-page-hero .page-hero h1 + p,
  .privacy-page-hero h1 + p {
    margin-top: 0;
  }

  .login-heading p {
    margin-top: 8px;
  }

  /* R1 + R5: left-aligned page headers. */
  .residents-directory-page .page-hero,
  .charter-page-hero .page-hero,
  .membership-hero {
    text-align: left;
  }

  .charter-page-hero .page-hero p {
    margin-inline: 0;
  }

  /* R1: justified text on a narrow column opens holes between words. */
  .conseil-minute-body p,
  .portail-introduction .portail-copy p,
  .portail-history .portail-copy p {
    text-align: left;
  }

  .membership-hero p {
    margin-top: 8px;
  }

  /* R4: one section rhythm. 48px between sections, 24px from a section
     heading to its content. Selectors match the rules they replace. */
  .section,
  .association-page,
  .flood-page,
  .portail-nord-page,
  .benefits-section {
    padding-bottom: 48px;
  }

  main > .section + .section,
  .home-sponsors {
    padding-top: 48px;
  }

  .section-heading,
  .home-sponsors .section-heading {
    margin-bottom: 24px;
  }

  .benefits-stats {
    margin-bottom: 40px;
  }

  .mission-band-inner {
    padding-block: 48px;
  }

  .association-history-timeline,
  .association-history-sections,
  .association-history-section + .association-history-section {
    margin-top: 48px;
  }

  .portail-introduction + .portail-history,
  .portail-editorial-section + .portail-editorial-section,
  .portail-editorial-section + .portail-chronology,
  .portail-chronology + .portail-editorial-section,
  .portail-editorial-section + .portail-document {
    margin-top: 48px;
  }

  /* R8: buttons. Link buttons with long labels read left-aligned when they
     must wrap; the PDF pager keeps each label on one line. */
  .flood-resource-link {
    justify-content: flex-start;
    text-align: left;
  }

  /* -- Page refinements from Anabelle's phone review (21 Oct). -- */

  /* Home: the benefit cards are on screen as soon as the rail is; a
     staggered fade-in only delayed the first swipe. */
  html.js .benefits-section .benefits-bento > * {
    opacity: 1;
    transform: none;
  }

  /* Home: the mission quote and the newsletter text break only between
     phrases (spans in home.php and footer.php), never after "et" or "de".
     The link sits closer under the quote, and the band ends sooner. */
  .mission-band-inner {
    padding-bottom: 36px;
  }

  .mission-statement {
    margin-bottom: 18px;
    font-size: 22px;
    line-height: 1.35;
  }

  .mission-statement .phrase,
  .newsletter-section .phrase {
    display: inline-block;
  }

  /* Home, Programme de vigie: two text styles instead of four (the eyebrow,
     subtitle and description mixed Inter and Public Sans at three sizes). */
  .next-event-eyebrow,
  .next-event-subtitle,
  .next-event-description {
    font-family: var(--font-sans);
  }

  .next-event-subtitle,
  .next-event-description {
    margin-block: 0 10px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
  }

  /* The subtitle no longer touches the title, and the vigie slide keeps
     only its subtitle: the patrol details are one tap away. */
  .next-event-content h2 + .next-event-subtitle {
    margin-top: 12px;
  }

  .next-event-description--vigie {
    display: none;
  }

  /* Home sponsors: all three at once, two above and the third centred
     below at the same size. Square photos keep the faces whole. */
  .home-sponsor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }

  .home-sponsor-card {
    justify-content: flex-start;
  }

  .home-sponsor-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 16px) / 2);
  }

  .home-sponsor-image {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .home-sponsor-card img {
    padding: 14px;
  }

  .home-sponsor-name {
    margin-top: 12px;
    font-size: 17px;
  }

  .home-sponsor-description {
    margin-top: 6px;
    font-size: 11px;
  }

  /* R4: the page header group sits 24px above its first photo, not 60-76px. */
  .association-page-hero .page-hero,
  .events-page-hero .page-hero {
    padding-bottom: 24px;
  }

  :is(.association-page-hero, .events-page-hero, .gallery-page-hero) + .section {
    padding-top: 0;
  }

  /* Login: the checkbox lines up with the first line of its label. */
  .checkbox-label {
    align-items: flex-start;
  }

  .checkbox-label input {
    flex: none;
    margin-top: 5px;
  }

  /* Crue des eaux: the first photo opens the page, under the introduction. */
  .flood-page > .flood-editorial-section:first-child {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .flood-page > .flood-editorial-section:first-child > .flood-section-media {
    order: -1;
    margin: 0;
  }

  /* Répertoire: photo and name on the first row, contact details across the
     full card width below instead of squeezed beside the photo. */
  .resident-card {
    grid-template-columns: 56px minmax(0, 1fr);
    row-gap: 14px;
    align-items: center;
  }

  .resident-card-photo {
    width: 56px;
    height: 56px;
  }

  .resident-card-photo-placeholder img {
    width: 26px;
    height: 26px;
  }

  .resident-card-content {
    display: contents;
  }

  .resident-card h2 {
    margin-bottom: 0;
  }

  .resident-card-contact {
    grid-column: 1 / -1;
    font-size: 15px;
  }

  /* Portail Nord: plain line breaking. Safari's text-wrap: pretty (the
     global p rule) re-rags whole paragraphs on a narrow column, pushing
     words that fit down to the next line. */
  .portail-introduction .portail-copy p,
  .portail-history .portail-copy p {
    text-wrap: wrap;
  }

  /* Portail Nord, cahier esquisse: page count on its own row, the two
     buttons side by side below it at full size. */
  .portail-pdf-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .portail-pdf-toolbar [data-pdf-status] {
    grid-column: 1 / -1;
    order: -1;
    text-align: center;
  }

  .portail-pdf-toolbar button {
    min-height: 44px;
    padding-inline: 12px;
    white-space: nowrap;
  }

  /* Devenir membre, step 2: one surface instead of a card inside a card,
     left-aligned summary, and the price in the body font. */
  .membership-summary-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .membership-payment-summary {
    text-align: left;
  }

  .membership-payment-today strong {
    font-family: var(--font-sans);
    font-size: 26px;
    font-weight: 700;
  }

  .membership-stripe-placeholder {
    min-height: 120px;
  }

  /* Devenir membre, step 3: the confirmation stays centred, as designed. */
  [data-membership-current-step="3"] .membership-hero {
    text-align: center;
  }

  .membership-success-button {
    justify-content: center;
    text-align: center;
  }

  /* À propos: "L'Association depuis 1985" is the visible title; the
     "À propos" H1 stays for screen readers and the page outline. */
  .association-page-hero:has(+ .association-page) .page-hero {
    padding-bottom: 0;
  }

  .association-page-hero:has(+ .association-page) .page-hero h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .association-page-hero + .association-page {
    padding-top: 0;
  }

  /* À propos: paragraph, photo, paragraph in the introduction, spaced by
     margins alone (the desktop grid gap would add 42px between each). */
  .association-intro-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .association-intro-copy > h2 {
    margin-bottom: 16px;
  }

  .association-history-intro p + p {
    margin-top: 0;
  }

  .association-intro-copy,
  .association-history-intro {
    display: contents;
  }

  .association-intro-copy > h2 {
    order: 1;
  }

  .association-history-intro > p:first-child {
    order: 2;
  }

  .association-history-lead-media {
    order: 3;
    margin: 20px 0;
  }

  /* À propos: tighter steps from the introduction to the chronology and
     from the chronology to "Laval-sur-le-Lac à travers le temps". */
  .association-history-timeline {
    margin-top: 32px;
  }

  .association-filmstrip {
    margin-bottom: 0;
  }

  .association-filmstrip-track {
    padding-bottom: 0;
  }

  .association-history-sections {
    margin-top: 32px;
  }

  .association-history-intro > p:not(:first-child) {
    order: 4;
  }

  /* À propos history: text and photos alternate instead of two photos in a
     row then four text entries, and the press archives sit mid-story. */
  .association-editorial-flow {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .association-editorial-row,
  .association-editorial-flow .association-history-copy,
  .association-history-fusion {
    display: contents;
  }

  .association-editorial-flow .association-history-entry,
  .association-editorial-flow .association-editorial-visual,
  .association-archive-interlude {
    margin: 0;
  }

  .association-editorial-row:not(.association-editorial-row--gallery) .association-history-entry:nth-of-type(1) { order: 1; }
  .association-editorial-row:not(.association-editorial-row--gallery) .association-history-entry:nth-of-type(2) { order: 2; }
  .association-history-feature { order: 3; }
  .association-editorial-row--gallery .association-history-entry:nth-of-type(1) { order: 4; }
  .association-history-gallery-pair { order: 5; }
  .association-editorial-row--gallery .association-history-entry:nth-of-type(2) { order: 6; }
  .association-history-builders > .association-history-entry { order: 7; }
  .association-archive-interlude { order: 8; }
  .association-history-fusion .association-history-entry { order: 9; }

  /* À propos chronology: decade chips (built by site.js) jump the strip.
     One row of equal chips, however many decades there are. */
  .filmstrip-decades {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 6px;
    margin-bottom: 16px;
  }

  .filmstrip-decade {
    min-width: 0;
    min-height: 40px;
    padding: 8px 0;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background: #FFFFFF;
    color: var(--primary-deep);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }

  .filmstrip-decade[aria-pressed="true"] {
    border-color: var(--primary-deep);
    background: var(--primary-deep);
    color: #FFFFFF;
  }
}

@media print {
  body:has(.member-membership-document-dialog.is-printing) > * {
    visibility: hidden;
  }

  .member-membership-document-dialog.is-printing,
  .member-membership-document-dialog.is-printing * {
    visibility: visible;
  }

  .member-membership-document-dialog.is-printing {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
  }

  .member-membership-document-dialog.is-printing .member-dialog-close,
  .member-membership-document-dialog.is-printing .member-membership-document-actions {
    display: none;
  }
}

/* Accueil with fewer cards or sponsors than the original (Site web ›
   Modifier le site): the same cards, laid out for their number. Four cards
   and three sponsors keep the rules above; phones keep their own. */
@media (min-width: 641px) {
  .benefits-section .benefits-bento--count-1 {
    grid-template-columns: minmax(0, 1fr);
    max-width: calc(50% - 12px);
    margin-inline: auto;
  }

  .benefits-section .benefits-bento--count-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 769px) {
  .home-sponsor-grid--count-1 {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .home-sponsor-grid--count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 600px;
  }

  .home-sponsor-grid--count-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1100px;
    gap: 32px;
  }
}

/* À propos timeline (Anabelle, 23 nov., after Linda's 18 Nov. review): whole
   cards only, four on a computer and three on a tablet, no card cut at the
   edge; the arrow is the cue to scroll. Phones keep their swipe (<= 767px). */
@media (min-width: 768px) {
  .association-filmstrip {
    --filmstrip-cols: 4;
  }

  .association-filmstrip-viewport {
    container-type: inline-size;
    scroll-padding-inline: 30px;
  }

  /* The inset equals the gap, so a step of whole cards leaves no sliver
     of the previous card at the left edge. */
  .association-filmstrip-track {
    padding-inline: 30px;
  }

  .association-filmstrip-item {
    flex-basis: calc((100cqw - 30px - var(--filmstrip-cols) * 30px) / var(--filmstrip-cols));
    width: calc((100cqw - 30px - var(--filmstrip-cols) * 30px) / var(--filmstrip-cols));
  }

  .association-filmstrip-image {
    width: 100%;
  }

  .association-filmstrip::after {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .association-filmstrip {
    --filmstrip-cols: 3;
  }
}

/* Accueil sponsors (Anabelle, 20 nov.): square pictures, and each name on one
   line, wider than the picture if it needs to be. */
.home-sponsors {
  --home-sponsor-visual-height: var(--home-sponsor-visual-width);
}

.home-sponsor-name {
  width: auto;
  max-width: none;
  white-space: nowrap;
}

/* Footer links with an icon the board chose: the same square as Facebook,
   the picture drawn in white like its icon. */
.footer-social-link--icon img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Header logo sizes the board may choose; the original height is 52px.
   Phones keep theirs. */
@media (min-width: 641px) {
  .brand-header-logo--small {
    height: 44px;
  }

  .brand-header-logo--large {
    height: 60px;
  }
}

/* ------------------------------------------------------- cookie consent */
/* Law 25 pop-up (snippets/consent-banner.php). Refuse and accept carry the
   same weight; Personnaliser is the quiet third choice. */

.consent-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* A small card at the bottom left: frosted, translucent white so the page
   still shows through, no coloured accents, text kept readable. */
.consent-banner {
  position: fixed;
  z-index: 150;
  left: 24px;
  bottom: 24px;
  display: grid;
  gap: 8px;
  width: min(440px, calc(100% - 32px));
  padding: 22px 22px 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 1px 2px rgba(15, 38, 24, 0.06), 0 14px 40px rgba(15, 38, 24, 0.16);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--speed-slow) var(--ease-out), transform var(--speed-slow) var(--ease-out-expo);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .consent-banner {
    background: rgba(255, 255, 255, 0.96);
  }
}

.consent.has-banner .consent-banner {
  opacity: 1;
  transform: none;
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner .consent-eyebrow {
  color: var(--muted);
  font-size: 0.68rem;
}

.consent-banner-title,
.consent-dialog h2 {
  margin: 0;
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
}

.consent-banner-title {
  font-size: 1.25rem;
}

.consent-banner-text {
  margin: 0;
  color: #333a35;
  font-size: 0.86rem;
  line-height: 1.55;
}

/* A plain text link to more information: grey, regular weight, hairline
   underline, so it never reads as a fourth button. */
.consent-policy-link {
  justify-self: start;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: rgba(107, 107, 101, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.consent-policy-link:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}

.consent-actions {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  align-items: center;
  gap: 8px;
}

.consent-banner .consent-actions {
  margin-top: 6px;
}

.consent-banner .consent-btn {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.86rem;
}

.consent-banner .consent-btn--outline {
  background: rgba(255, 255, 255, 0.6);
}

.consent-banner .consent-btn--quiet {
  padding-inline: 2px 8px;
}

.consent-btn {
  min-height: 44px;
  padding: 10px 16px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-btn);
  background: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--speed) var(--ease-out), color var(--speed) var(--ease-out), border-color var(--speed) var(--ease-out);
}

.consent-btn--quiet {
  padding-inline: 4px 10px;
  color: var(--primary-deep);
  text-decoration: underline;
  text-decoration-color: var(--primary-light);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.consent-btn--quiet:hover {
  text-decoration-color: currentColor;
}

.consent-btn--outline {
  border-color: var(--primary-deep);
  color: var(--primary-deep);
}

.consent-btn--outline:hover {
  background: var(--surface);
}

.consent-btn--solid {
  border-color: var(--primary-deep);
  background: var(--primary-deep);
  color: #fff;
}

.consent-btn--solid:hover {
  border-color: var(--color-foret);
  background: var(--color-foret);
}

.consent-btn:focus-visible,
.consent-policy-link:focus-visible,
.footer-consent-link:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}

/* Preferences dialog */

.consent-dialog {
  width: min(100% - 32px, 640px);
  max-height: min(88vh, 760px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-raised);
}

.consent-dialog::backdrop {
  background: rgba(15, 38, 24, 0.5);
}

.consent-dialog[open] {
  display: flex;
}

.consent-dialog-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}

.consent-dialog-header {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 28px 72px 18px 32px;
  border-bottom: 1px solid var(--border);
}

.consent-dialog h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.consent-dialog-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary-deep);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.consent-dialog-close:hover {
  background: var(--surface-strong);
}

.consent-dialog-body {
  overflow-y: auto;
  padding: 22px 32px 8px;
  overscroll-behavior: contain;
}

.consent-dialog-intro {
  margin: 0 0 18px;
  color: #3d4540;
  font-size: 0.93rem;
  line-height: 1.6;
}

/* Plain rows divided by hairlines, like a settings list. */
.consent-categories {
  margin: 0;
  padding: 0;
  border-top: 1px solid #e6e8e4;
  list-style: none;
}

.consent-category {
  padding: 18px 0;
  border-bottom: 1px solid #e6e8e4;
}

.consent-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.consent-category h3 {
  margin: 0;
  color: var(--primary-deep);
  font-size: 1.02rem;
  font-weight: 700;
}

.consent-category > p {
  margin: 6px 0 0;
  color: #3d4540;
  font-size: 0.88rem;
  line-height: 1.55;
}

.consent-always {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

.consent-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  cursor: pointer;
}

.consent-switch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.consent-switch-track {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #b9c2bc;
  transition: background var(--speed) var(--ease-out);
}

.consent-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform var(--speed) var(--ease-out);
}

.consent-switch input:checked + .consent-switch-track {
  background: var(--primary);
}

.consent-switch input:checked + .consent-switch-track::after {
  transform: translateX(20px);
}

.consent-switch input:focus-visible + .consent-switch-track {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}

.consent-items {
  margin-top: 10px;
}

.consent-items summary {
  width: fit-content;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
}

.consent-items summary:hover {
  color: var(--text);
}

.consent-items dl {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
}

.consent-items dl > div {
  padding-left: 12px;
  border-left: 2px solid #e6e8e4;
}

.consent-items dt {
  font-size: 0.86rem;
  font-weight: 700;
}

.consent-items dt span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.consent-items dd {
  margin: 4px 0 0;
  color: #3d4540;
  font-size: 0.84rem;
  line-height: 1.5;
}

.consent-not-used {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.consent-dialog-actions .consent-btn--quiet {
  justify-self: start;
}

.consent-dialog-actions .consent-btn--outline,
.consent-dialog-actions .consent-btn--solid {
  min-width: 150px;
}

.consent-dialog-actions {
  grid-template-columns: 1fr auto auto;
  margin: 0;
  padding: 16px 32px 22px;
  border-top: 1px solid var(--border);
  background: #fff;
}

/* Saved-choice confirmation */

.consent-toast {
  position: fixed;
  z-index: 150;
  left: 24px;
  bottom: 24px;
  max-width: min(390px, calc(100% - 48px));
  margin: 0;
  padding: 14px 18px;
  border-radius: 9px;
  background: var(--primary-deep);
  color: #fff;
  box-shadow: var(--shadow-raised);
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--speed-slow) var(--ease-out), transform var(--speed-slow) var(--ease-out);
}

.consent-toast.is-visible {
  opacity: 1;
  transform: none;
}

/* Footer link: a button that reads like the links around it */

.footer-consent-link {
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.footer-consent-link:hover {
  color: var(--primary-light);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

/* Embed held back until consent (event route map) */

.consent-embed-placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  height: 100%;
  padding: 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-card);
  background: var(--surface);
  text-align: center;
}

.consent-embed-placeholder p:not(.consent-eyebrow) {
  max-width: 44ch;
  margin: 0 0 6px;
  color: #3d4540;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* « Témoins » section of the Renseignements personnels page */

.consent-details {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: clamp(32px, 4vw, 44px);
  border-top: 1px solid var(--border);
  color: #333;
  line-height: 1.7;
}

.consent-details h2 {
  margin: 0 0 12px;
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.28rem, 2vw, 1.5rem);
  font-weight: 600;
}

.consent-details h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 6px;
  color: var(--primary-deep);
  font-size: 1.05rem;
}

.consent-details p {
  margin: 0;
}

.consent-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.consent-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.5;
}

.consent-table th,
.consent-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.consent-table thead th {
  background: var(--surface);
  color: var(--primary-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.consent-table tbody tr:last-child > * {
  border-bottom: 0;
}

.consent-table tbody th {
  color: var(--primary-deep);
  font-weight: 650;
  white-space: nowrap;
}

.consent-details .consent-details-action {
  margin-top: 26px;
}

/* The cookie names and durations, closed by default (Anabelle, 2 Dec.). */
.consent-technical {
  margin-top: 28px;
}

.consent-technical summary {
  width: fit-content;
  color: var(--primary-deep);
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 640px) {
  .consent-banner {
    left: 12px;
    bottom: 12px;
    gap: 6px;
    width: calc(100% - 24px);
    padding: 16px 16px 12px;
  }

  .consent-banner .consent-eyebrow {
    display: none;
  }

  .consent-banner-title {
    font-size: 1.1rem;
  }

  .consent-banner-text {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .consent-policy-link {
    font-size: 0.8rem;
  }

  .consent-banner .consent-actions {
    gap: 4px 8px;
    margin-top: 4px;
  }

  .consent-banner .consent-btn--quiet {
    min-height: 32px;
  }

  .consent-actions,
  .consent-dialog-actions {
    grid-template-columns: 1fr 1fr;
  }

  .consent-actions .consent-btn--quiet {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }

  .consent-dialog-actions .consent-btn--outline,
  .consent-dialog-actions .consent-btn--solid {
    min-width: 0;
  }

  .consent-dialog-header {
    padding: 22px 64px 16px 20px;
  }

  .consent-dialog-body {
    padding: 18px 20px 6px;
  }

  .consent-dialog-actions {
    padding: 14px 20px 18px;
  }

  .consent-toast {
    left: 16px;
    bottom: 16px;
  }

  .consent-table thead {
    display: none;
  }

  .consent-table,
  .consent-table tbody,
  .consent-table tr,
  .consent-table th,
  .consent-table td {
    display: block;
  }

  .consent-table tr {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
  }

  .consent-table tbody tr:last-child {
    border-bottom: 0;
  }

  .consent-table th,
  .consent-table td {
    padding: 2px 0;
    border: 0;
  }

  .consent-table td::before {
    content: attr(data-label) " : ";
    color: var(--muted);
    font-weight: 600;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent-banner,
  .consent-toast {
    transition: none;
    transform: none;
  }
}

/* ------------------------------------------------------- liens utiles */
/* Members-only « Liens utiles » (templates/liens-utiles.php): one card per
   category, titled with a line icon, with tap-to-call numbers. */

.useful-links-page {
  width: min(100% - 2 * var(--page-gutter, 24px), var(--max));
  margin: 0 auto;
  padding-top: clamp(8px, 2vw, 16px);
  padding-bottom: clamp(80px, 10vw, 128px);
}

.useful-links-search {
  max-width: 640px;
  margin: 0 0 10px;
}

.useful-links-search[hidden],
.useful-links-group[hidden],
.useful-link[hidden] {
  display: none;
}

.useful-links-status {
  min-height: 1.4em;
  margin: 0 0 clamp(18px, 3vw, 26px);
  color: var(--muted);
  font-size: 0.88rem;
}

.useful-links-page mark {
  padding: 0 1px;
  border-radius: 2px;
  /* The warm yellow of a browser's own find highlight, softened. */
  background: rgba(232, 181, 74, 0.38);
  color: inherit;
}

.useful-links-groups {
  columns: 2 460px;
  column-gap: 24px;
}

.useful-links-group {
  break-inside: avoid;
  margin: 0 0 24px;
  padding: 22px 24px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
  scroll-margin-top: calc(var(--header-height, 72px) + 16px);
}

.useful-links-group h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-foret);
  color: var(--color-foret);
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
}

.useful-links-group h2 .charter-regulation-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.useful-links-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.useful-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 12px 0;
  border-top: 1px solid #ecefea;
}

.useful-link:first-child {
  border-top: 0;
}

.useful-link-text {
  display: grid;
  flex: 1 1 220px;
  gap: 2px;
  min-width: 0;
}

.useful-link-name {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.useful-link-note {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.useful-link-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 14px;
  font-size: 0.92rem;
}

.useful-link-phone {
  color: var(--primary-deep);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-decoration: none;
}

.useful-link-web {
  color: var(--primary);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--primary-light);
  text-underline-offset: 3px;
}

.useful-link-phone:hover,
.useful-link-web:hover {
  color: var(--color-foret);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .useful-links-group {
    padding: 18px 18px 6px;
  }

  .useful-link-actions {
    justify-content: flex-start;
  }
}

/* Mon compte > Paiements: the card saved for 1 January (Anabelle, 5 Nov). */
.member-card-section {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.member-card-section h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-foret);
}

.member-card-status {
  display: grid;
  gap: 10px;
  margin: 0;
}

.member-card-status div {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 12px;
}

.member-card-status dt {
  color: var(--text-secondary);
}

.member-card-status dd {
  margin: 0;
  font-weight: 600;
}

.member-card-setup {
  display: grid;
  gap: 14px;
  max-width: 640px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.member-card-setup form {
  margin: 0;
}

@media (max-width: 640px) {
  .member-card-status div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.member-card-setup .membership-option {
  border-bottom: 1px solid var(--border);
}

/* Address suggestions under the field (Anabelle, 5 November). */
.address-suggest-field {
  position: relative;
}

.address-suggest-list {
  position: absolute;
  z-index: 20;
  top: calc(100% - 2px);
  right: 0;
  left: 0;
  max-height: 264px;
  margin: 0;
  padding: 6px 0;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-input);
  background: #fff;
  box-shadow: 0 10px 24px rgb(20 40 30 / 0.12);
}

.address-suggest-list[hidden] {
  display: none;
}

.address-suggest-list li {
  display: block;
  padding: 9px 14px;
  color: var(--text);
  font: 400 0.92rem/1.35 var(--font-sans);
  cursor: pointer;
}

.address-suggest-list li:hover,
.address-suggest-list li[aria-selected="true"] {
  background: #f4f5f3;
}


/* The card form shown before the Law 25 box is ticked (renewal, sign-up). */
.membership-card-lock-note {
  margin: 18px 0 8px;
  color: var(--text-secondary);
  font: 500 0.88rem/1.4 var(--font-sans);
}

.membership-embedded-mount.is-locked {
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

.membership-summary-card .membership-embedded-mount {
  margin-top: 18px;
}

.membership-pay-button[hidden] {
  display: none;
}

/* Card fields inside the page (Anabelle, 5 November): card, Law 25 box,
   automatic renewal, then the button. */
.membership-card-form {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.membership-card-element {
  min-height: 120px;
}

.membership-card-element[hidden] {
  display: none;
}

.membership-card-form .membership-option {
  border-bottom: 1px solid var(--border);
}

.membership-card-form .membership-pay-button {
  margin-top: 4px;
}

.membership-summary-card .membership-card-element {
  margin-top: 18px;
}

/* Email check under the field (Anabelle, 6 November). */
.email-check {
  display: grid;
  justify-items: start;
  gap: 4px;
  margin-top: 6px;
}

.email-check[hidden] {
  display: none;
}

.email-check p {
  margin: 0;
}

.membership-card-mandate {
  margin: 0;
  color: var(--text-secondary);
  font: 400 0.82rem/1.5 var(--font-sans);
}

.membership-card-mandate[hidden],
.membership-secure-note[hidden] {
  display: none;
}

/* Sign-up summary: the renewal reminder on its own line (Anabelle, 6 Nov). */
.membership-summary-note[data-summary-later] {
  white-space: pre-line;
}

/* Sign-up success page (Anabelle, 6 November). */
.membership-success-page .membership-step-indicator {
  width: min(100%, 480px);
  margin-inline: auto;
}

.membership-success-page .membership-success-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
}

/* Sign-up success, known address (D1): the recap card of Anabelle's
   mock-up inscription-reussie.html (approved 23 November). */
.membership-success-page .membership-hero .membership-success-message.membership-success-active {
  margin-top: 10px;
}

/* 540px and no shadow, as the mock-up renders (its renewal-summary-card). */
.membership-success-page .membership-success-recap {
  width: min(100%, 540px);
  box-sizing: border-box;
  margin: 36px auto 0;
  padding: 4px 28px 28px;
  text-align: left;
}

.membership-success-recap dl {
  margin: 0;
}

.membership-success-recap dl div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 16px 0;
}

.membership-success-recap dl div + div {
  border-top: 1px solid var(--border);
}

.membership-success-recap dt {
  color: var(--muted);
  font-size: 0.95rem;
}

.membership-success-recap dd {
  margin: 0;
  color: var(--primary-deep);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.membership-success-recap dd.is-off {
  color: var(--muted);
  font-weight: 400;
}

.membership-success-next {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.membership-success-next p {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 0.95rem;
}

.membership-success-next .btn {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
}

.membership-success-next .membership-success-receipt {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.95rem;
}

/* Centred at every width, as the mock-up is. */
.membership-success-page .membership-hero:has(.membership-success-recap) {
  text-align: center;
}

.membership-success-page .membership-hero:has(.membership-success-recap) h1,
.membership-success-page .membership-hero:has(.membership-success-recap) > .membership-success-message {
  margin-inline: auto;
  text-align: center;
}

/* On a phone the values wrap instead of running past the card (the mock-up
   clips « À faire avant le 31 décembre 2026 » at 375px). */
@media (max-width: 480px) {
  .membership-success-page .membership-success-recap {
    padding-inline: 20px;
  }

  .membership-success-recap dl div {
    gap: 16px;
  }

  .membership-success-recap dd {
    white-space: normal;
  }
}

/* Sign-up: address and postal code on one row (Anabelle, 6 November). */
.membership-field-row.membership-address-row {
  grid-template-columns: minmax(0, 1fr) minmax(110px, 9.5rem);
}

/* The unit number shows only for the condos (1000 and up), as a small field
   next to the address in the same column (Anabelle, 7 November). */
.membership-address-combo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.membership-address-combo.has-unit {
  grid-template-columns: minmax(0, 1fr) 4.25rem;
}

/* One label above both parts ("Adresse et numéro d’unité *"). */
.membership-address-street,
.membership-address-unit {
  min-width: 0;
}

.membership-address-unit input {
  text-align: center;
}

/* The suggestions keep one line even when the address field is narrower. */
.membership-address-combo .address-suggest-list {
  min-width: max-content;
}

.membership-address-unit[hidden] {
  display: none;
}

/* Mon compte and renewal: a condo address without its unit (Anabelle,
   11 November). */
.member-unit-missing {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.member-unit-missing + .member-text-button {
  margin-top: 6px;
}

.renewal-unit-required {
  margin-top: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

/* Renewal: "Vos informations ont été enregistrées." as a quiet line with a
   check, not a coloured box (Anabelle, 11 November). */
.renewal-saved {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  color: var(--primary-deep);
  font-weight: 600;
}

.renewal-saved[hidden] {
  display: none;
}

.renewal-saved svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.renewal-primary-action:disabled,
.renewal-primary-action:disabled:hover {
  opacity: 0.45;
  box-shadow: none;
  cursor: not-allowed;
}

/* Renewal page: until when the membership runs (Anabelle, 6 November). */
.renewal-expiry {
  margin-top: 6px;
  color: var(--text-secondary);
}

.renewal-expiry strong {
  color: var(--color-foret);
  font-weight: 650;
}

.renewal-summary-card .renewal-status-action {
  justify-self: center;
  margin-top: 22px;
}

/* Sign-up step 2, simplified (Anabelle, 7 November): a wider card, the price
   and its note on one line, two tiles for the 2027 choice, a switch for
   automatic renewal and a "without a card" link. */
[data-membership-current-step="2"] .membership-checkout-grid {
  width: min(640px, 100%);
}

/* The amount centred, in the site's sans serif: "0,00 $" reads as a price,
   not a headline (Anabelle, 7 November). */
.membership-summary-card[data-membership-visible-steps="2"] .membership-payment-summary {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.membership-summary-card[data-membership-visible-steps="2"] .membership-payment-today {
  gap: 8px;
}

.membership-summary-card[data-membership-visible-steps="2"] .membership-payment-today strong {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.membership-summary-card[data-membership-visible-steps="2"] .membership-summary-note {
  max-width: none;
  text-align: center;
}

.membership-plan {
  gap: 12px;
  margin-top: 20px;
}

.membership-plan-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.membership-plan-tile {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 44px 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
}

.membership-plan-tile input {
  position: absolute;
  top: 15px;
  right: 14px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--primary);
}

.membership-plan-tile:has(input:checked) {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
  background: var(--surface);
}

.membership-plan-tile:has(input:focus-visible) {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.membership-plan-tile-title {
  color: var(--text);
  font: 600 0.95rem/1.3 var(--font-sans);
}

.membership-plan-tile-text {
  color: var(--text-secondary);
  font: 400 0.84rem/1.45 var(--font-sans);
}

.membership-plan-auto {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.membership-plan-auto > span:first-child {
  display: grid;
  gap: 2px;
}

.membership-plan-auto strong {
  font: 600 0.92rem/1.3 var(--font-sans);
}

.membership-plan-auto > span:first-child > span {
  color: var(--text-secondary);
  font: 400 0.84rem/1.4 var(--font-sans);
}

.membership-plan-auto input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.membership-switch {
  position: relative;
  flex: none;
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: #c9d2c6;
  transition: background 0.15s ease;
}

.membership-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

.membership-plan-auto input:checked + .membership-switch {
  background: var(--primary);
}

.membership-plan-auto input:checked + .membership-switch::after {
  transform: translateX(18px);
}

.membership-plan-auto input:focus-visible + .membership-switch {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.membership-plan-auto:has(input:disabled) {
  opacity: 0.55;
  cursor: default;
}

.membership-plan-skip {
  justify-self: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary-dark);
  font: 400 0.86rem/1.4 var(--font-sans);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.membership-plan-skip[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .membership-plan-tiles {
    grid-template-columns: 1fr;
  }
}

/* Répertoire des membres › « Feuilleter le bottin » (Anabelle, 14 Nov.):
   a discreet link on the count's line, and the bottin as a book on white,
   two facing pages, chevrons to turn, a small toolbar below. */
/* In the search row (Anabelle, 14 Nov.): Toutes les rues, the search, then
   the bottin on the right; nothing between the title and the banner, nor
   between the search and the cards. The three take the cards' width, the
   search the most. The button is the deep forest one of « Renouveler » and
   « Devenir membre », as tall as the fields beside it. */
.residents-directory-filters.has-bottin {
  grid-template-columns: 240px minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
}

.residents-directory-filters.has-bottin .residents-directory-street-filter {
  order: -1;
}

.residents-directory-filters .residents-directory-bottin {
  min-height: 60px;
  padding-inline: 24px;
  border-color: var(--color-foret);
  background: var(--color-foret);
  color: #fff;
  font-size: 0.94rem;
  font-weight: 500;
  white-space: nowrap;
}

.residents-directory-filters .residents-directory-bottin:hover,
.residents-directory-filters .residents-directory-bottin:focus-visible {
  border-color: var(--color-foret-hover);
  background: var(--color-foret-hover);
  box-shadow: none;
}

@media (max-width: 760px) {
  .residents-directory-filters.has-bottin {
    grid-template-columns: 1fr;
  }

  /* On a phone: the bottin first, the search last, right above the cards. */
  .residents-directory-filters .residents-directory-bottin {
    order: -2;
    justify-self: start;
    min-height: 46px;
  }
}

/* A PDF as a book to leaf through (assets/js/flipbook.mjs, snippet
   flipbook.php; Anabelle, 14 Nov.): the bottin (full screen only) and the
   cahier of Projet Portail Nord (in the page, with « Plein écran »). Two
   facing pages on white, chevrons to turn, a small toolbar below. */
html.has-flipbook-open {
  overflow: hidden;
}

.flipbook {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  color: var(--text);
  outline: none;
}

.flipbook[hidden] {
  display: none;
}

.flipbook svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The title bar only in full screen. */
.flipbook-head {
  display: none;
}

.flipbook.is-expanded {
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  background: var(--bg);
}

.flipbook.is-expanded .flipbook-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px 6px 28px;
}

.flipbook-title {
  margin: 0;
  color: var(--color-foret);
  font: 600 0.95rem/1.3 var(--font-sans);
}

.flipbook-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text);
  cursor: pointer;
}

.flipbook-close:hover,
.flipbook-close:focus-visible {
  background: var(--surface);
}

.flipbook-dialog {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
}

.flipbook-dialog::backdrop {
  background: rgba(15, 61, 36, 0.25);
}

.flipbook-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

.flipbook.is-inline:not(.is-expanded) .flipbook-stage {
  padding-block: 8px 4px;
}

.flipbook-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
}

.flipbook-arrow.is-previous {
  left: 12px;
}

.flipbook-arrow.is-next {
  right: 12px;
}

.flipbook .flipbook-arrow svg {
  width: 38px;
  height: 38px;
  stroke-width: 1.4;
}

.flipbook-arrow:hover:not(:disabled),
.flipbook-arrow:focus-visible {
  color: var(--color-foret);
}

.flipbook-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

.flipbook-book {
  position: relative;
  display: flex;
  width: calc(var(--page-w, 300px) * 2);
  height: var(--page-h, 390px);
  perspective: 2400px;
  transition: transform 0.7s var(--ease-out);
}

.flipbook-book.is-single {
  width: var(--page-w, 300px);
}

.flipbook-book.is-cover {
  transform: translateX(calc(var(--page-w, 300px) * -0.5));
}

.flipbook-book.is-back {
  transform: translateX(calc(var(--page-w, 300px) * 0.5));
}

.flipbook-page {
  position: relative;
  width: var(--page-w, 300px);
  height: 100%;
  background: #fff;
  cursor: pointer;
}

.flipbook-book.is-single .flipbook-page.is-left {
  display: none;
}

.flipbook-book.is-ready .flipbook-page:not(.is-blank) {
  box-shadow: 0 2px 4px rgba(26, 56, 35, 0.08), 0 18px 40px rgba(26, 56, 35, 0.16);
}

.flipbook-page.is-blank {
  background: transparent;
  cursor: default;
}

.flipbook-page img,
.flipbook-leaf-face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.flipbook-page.is-blank img,
.flipbook-leaf-face.is-blank img,
.flipbook-page img:not([src]),
.flipbook-page img[src=""] {
  visibility: hidden;
}

/* The fold: a soft shadow along the spine. */
.flipbook-book:not(.is-single) .flipbook-page:not(.is-blank)::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  pointer-events: none;
}

.flipbook-book:not(.is-single) .flipbook-page.is-left:not(.is-blank)::after {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.1), transparent);
}

.flipbook-book:not(.is-single) .flipbook-page.is-right:not(.is-blank)::after {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.1), transparent);
}

.flipbook-leaf {
  position: absolute;
  top: 0;
  z-index: 2;
  width: var(--page-w, 300px);
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease-out), opacity 0.7s var(--ease-out);
}

.flipbook-leaf[hidden] {
  display: none;
}

.flipbook-leaf.is-right {
  left: var(--page-w, 300px);
  transform-origin: left center;
}

.flipbook-leaf.is-left {
  left: 0;
  transform-origin: right center;
}

.flipbook-leaf.is-single {
  left: 0;
  transform-origin: left center;
}

.flipbook-leaf-face {
  position: absolute;
  inset: 0;
  background: #fff;
  box-shadow: 0 18px 40px rgba(26, 56, 35, 0.16);
  backface-visibility: hidden;
}

.flipbook-leaf-face.is-back {
  transform: rotateY(180deg);
}

.flipbook-leaf.is-single .flipbook-leaf-face.is-back {
  display: none;
}

.flipbook-message {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  color: var(--muted);
  font: 400 0.95rem/1.5 var(--font-sans);
  text-align: center;
}

.flipbook-message[hidden] {
  display: none;
}

.flipbook-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: center;
  margin: 14px 0 20px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.flipbook-status {
  min-width: 76px;
  padding: 6px 14px;
  border-right: 1px solid var(--border);
  color: var(--muted);
  font: 500 0.84rem/1.2 var(--font-sans);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.flipbook-tool {
  display: grid;
  place-items: center;
  width: 38px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--text);
  cursor: pointer;
}

.flipbook-tool:hover,
.flipbook-tool:focus-visible {
  background: var(--surface);
}

.flipbook .flipbook-tool svg {
  width: 19px;
  height: 19px;
}

.flipbook-tool .is-shut,
.flipbook-tool.is-active .is-open {
  display: none;
}

.flipbook-tool.is-active .is-shut {
  display: block;
}

@media (max-width: 759px) {
  .flipbook.is-expanded .flipbook-head {
    padding: 10px 12px 4px 18px;
  }

  .flipbook-arrow {
    width: 40px;
    height: 56px;
  }

  .flipbook-arrow.is-previous {
    left: 0;
  }

  .flipbook-arrow.is-next {
    right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flipbook-book,
  .flipbook-leaf {
    transition: none;
  }
}

/* Mon compte › Profil : the virtual membership card (Anabelle, 14 Nov.).
   A card in bank-card proportions (85.6 × 54 mm), to show partners; text
   scales with the card (container units). Printed alone at real size. */
.member-virtual-card-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: clamp(22px, 4vw, 40px);
  align-items: center;
  margin-bottom: 34px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 14px;
  background: var(--surface);
}

.member-virtual-card-intro h3 {
  margin: 4px 0 10px;
  color: var(--color-foret);
  font: 600 clamp(1.3rem, 2vw, 1.55rem)/1.2 var(--font-serif);
}

/* One line on a desktop (Anabelle, 14 Nov.). */
.member-virtual-card-section .member-virtual-card-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.member-virtual-card-intro .eyebrow {
  color: var(--primary);
}

.member-virtual-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.member-virtual-card-intro .member-virtual-card-link {
  margin-top: 12px;
  font-size: 0.9rem;
}

.member-virtual-card-link a {
  color: var(--primary);
  font-weight: 600;
}

.member-virtual-card-frame {
  container-type: inline-size;
  width: 100%;
}

.member-virtual-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 85.6 / 54;
  padding: 5.5cqw 5.5cqw 0;
  border-radius: 3.6cqw;
  background: linear-gradient(135deg, #fff 0%, #eef3ec 100%);
  box-shadow: 0 2px 4px rgba(26, 56, 35, 0.08), 0 18px 40px rgba(26, 56, 35, 0.18);
  color: var(--text);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* The forest band along the bottom. */
.member-virtual-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2.2cqw;
  background: var(--color-foret);
}

.member-virtual-card-watermark {
  position: absolute;
  right: -9cqw;
  bottom: -3cqw;
  width: 61cqw;
  opacity: 0.07;
  pointer-events: none;
}

.member-virtual-card-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2.4cqw;
}

.member-virtual-card-logo {
  width: 15cqw;
  height: auto;
}

.member-virtual-card-org {
  margin: 0;
  color: var(--primary-deep);
  font: 600 2.2cqw/1.35 var(--font-sans);
}

.member-virtual-card-label {
  position: relative;
  margin: 6cqw 0 0;
  color: var(--primary);
  font: 700 2cqw/1 var(--font-sans);
  letter-spacing: 0.3cqw;
  text-transform: uppercase;
}

.member-virtual-card-name {
  position: relative;
  overflow: hidden;
  margin: 1.6cqw 0 0;
  color: var(--color-foret);
  font: 600 5.6cqw/1.15 var(--font-serif);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-virtual-card-details {
  position: absolute;
  right: 5.5cqw;
  bottom: 6.5cqw;
  left: 5.5cqw;
  display: flex;
  align-items: flex-end;
  gap: 4.4cqw;
  font: 600 2.5cqw/1.2 var(--font-sans);
}

.member-virtual-card-details small {
  display: block;
  margin-bottom: 0.5cqw;
  color: var(--muted);
  font-size: 1.55cqw;
  letter-spacing: 0.08cqw;
  text-transform: uppercase;
}

.member-virtual-card-status {
  display: inline-flex;
  align-items: center;
  gap: 1.2cqw;
  padding: 1.1cqw 2.2cqw;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--color-foret);
  font-weight: 700;
}

.member-virtual-card-status::before {
  content: "";
  width: 1.2cqw;
  height: 1.2cqw;
  border-radius: 50%;
  background: var(--primary);
}

/* No usable card without an active membership: a muted preview. */
.member-virtual-card.is-inactive {
  filter: grayscale(1);
  opacity: 0.45;
}

@media (max-width: 760px) {
  .member-virtual-card-section {
    grid-template-columns: 1fr;
  }

  .member-virtual-card-section .member-virtual-card-frame {
    order: -1;
    max-width: 420px;
  }
}

/* « Imprimer » : the card alone, at real size. */
@media print {
  body.is-printing-member-card * {
    visibility: hidden;
  }

  body.is-printing-member-card .member-virtual-card,
  body.is-printing-member-card .member-virtual-card * {
    visibility: visible;
  }

  /* Half the page wide, centred (Anabelle, 14 Nov.: bigger than a real card). */
  body.is-printing-member-card .member-virtual-card-frame {
    position: fixed;
    top: 15mm;
    left: 25%;
    width: 50%;
  }

  body.is-printing-member-card .member-virtual-card {
    box-shadow: none;
    outline: 0.2mm solid #ccc;
  }
}

/* Mon compte : the membership notices (pending, in verification, ended,
   renewal required) in the same calm card as the renewal reminder: white,
   a thin border, a small label with a coloured dot, a serif line, the
   action on the right. No coloured backgrounds (Anabelle, 14 Nov.). */
.member-status-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  margin: 0 0 16px;
  padding: clamp(20px, 3vw, 28px) clamp(22px, 4vw, 44px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.member-status-notice > div {
  flex: 1 1 320px;
  min-width: 0;
}

.member-status-notice-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--muted);
  font: 600 0.78rem/1.2 var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.member-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.member-status-notice.is-warning .member-status-dot,
.member-status-notice.is-info .member-status-dot {
  background: #d39b2a;
}

.member-status-notice.is-critical .member-status-dot {
  background: #c2412d;
}

.member-status-notice-title {
  max-width: 60ch;
  margin: 0;
  color: var(--color-foret);
  font: 500 clamp(1.15rem, 2.2vw, 1.4rem)/1.3 var(--font-serif);
}

.member-status-notice-text {
  max-width: 65ch;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.member-status-notice .btn {
  flex: 0 0 auto;
}

/* A member-only page seen by an ended membership (template renewal-required;
   Anabelle, 14 Nov.): the success page turned around, centred; a solid red
   padlock with a white keyhole in a soft pink circle. */
.renewal-required-page .membership-hero {
  max-width: 780px;
  margin-inline: auto;
  padding-top: calc(var(--header-height) + clamp(36px, 6vw, 72px));
  text-align: center;
}

.renewal-required-page h1 {
  margin-inline: auto;
  text-wrap: balance;
}

.renewal-required-page .membership-success-message {
  max-width: 46ch;
  margin-inline: auto;
}

.membership-success-icon.renewal-required-icon {
  width: 84px;
  height: 84px;
  margin-bottom: 28px;
}

.renewal-required-icon svg .renewal-required-ring {
  fill: #fdecea;
  stroke: #f6cdc6;
  stroke-width: 2;
}

.renewal-required-icon svg .renewal-required-shackle {
  fill: none;
  stroke: #b8322a;
  stroke-width: 4.5;
  stroke-linecap: round;
}

.renewal-required-icon svg .renewal-required-body {
  fill: #c2412d;
  stroke: none;
}

.renewal-required-icon svg .renewal-required-keyhole {
  fill: #fff;
  stroke: none;
}

.renewal-required-page .membership-success-actions {
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.renewal-required-page .membership-success-actions .membership-success-button {
  min-width: min(100%, 300px);
  padding-inline: 32px;
}

.renewal-required-back {
  color: var(--primary);
  font-weight: 600;
}

/* A page built in the Panel (Pages › Ajouter une page, 17 nov.): its text
   across the page's width, like the blocks around it. */
.page-built-text .prose {
  max-width: none;
}

/* Its text right under a photo goes with it (Anabelle, 17 nov.), not a section away. */
.page-built > .page-bloc--image + .page-built-text {
  margin-top: clamp(24px, 3vw, 32px);
}
