/* ============================================================
   CONVERGENCE DURABLE — Main CSS
   Extends baseline.css. Load both in this order:
     1. baseline.css
     2. main.css
   ============================================================ */

/* --- Extra tokens ------------------------------------------ */
:root {
  --max-w-wide:    1100px;
  --max-w-narrow:  640px;
  --nav-h:         60px;
  --yellow:        #fcb900;
  --yellow-dark:   #d49d00;
  --tag-green:     #3a7c4e;
  --tag-teal:      #2a7c72;
  --tag-orange:    #c96b2a;
  --tag-blue:      #2a5c9e;
  --tag-purple:    #6b3a9e;
  --tag-rose:      #a03060;
  --tag-yellow:    #8a6800;
  --shadow-sm:     0 1px 4px rgba(0,0,0,.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,.12);
  --transition:    .18s ease;
}

/* --- Wide container ---------------------------------------- */
.container-wide {
  max-width: var(--max-w-wide);
  margin:    0 auto;
  padding:   0 1.25rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.nav-logo {
  flex-shrink: 0;
  line-height: 0;
}
.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: .25rem;
  padding: 0;
  margin: 0 auto;
  flex-wrap: nowrap;
}
.nav-links a {
  color: var(--white);
  font-family: var(--font-ui);
  font-size: .85rem;
  padding: .35rem .6rem;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background var(--transition);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  text-decoration: none;
  background: rgba(255,255,255,.15);
}
.nav-links a[aria-current="page"] {
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.nav-social {
  display: flex;
  gap: .4rem;
  align-items: center;
}
.nav-social a {
  color: var(--white);
  line-height: 0;
  opacity: .85;
  transition: opacity var(--transition);
}
.nav-social a:hover { opacity: 1; text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: .4rem;
  line-height: 0;
}

/* Close button hidden by default everywhere */
.nav-close { display: none; }

/* Mobile overlay */
@media (max-width: 860px) {
  .nav-links,
  .nav-social { display: none; }

  .nav-toggle { display: flex; }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: fixed;
    inset: 0;
    background: var(--nav-bg);
    z-index: 200;
    padding: 2rem;
  }
  .nav-links.is-open li { width: 100%; text-align: center; }
  .nav-links.is-open a {
    font-size: 1.2rem;
    padding: .6rem 1rem;
    display: block;
  }
  .nav-social.is-open {
    display: flex;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 201;
    gap: 1.5rem;
  }
  .nav-social.is-open a svg { width: 24px; height: 24px; }

  .nav-close {
    position: fixed;
    top: 1rem;
    right: 1.25rem;
    z-index: 202;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
    display: none;
  }
  .nav-close.is-open { display: block; }
}

/* ============================================================
   HERO
   ============================================================ */

.hero-wrap {
  position: relative;
  overflow: hidden;
  background-image: url('../assets/backgrounds/2.webp');
  background-size: cover;
  background-position: center;
}
.hero-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .84);
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 1;
  padding: 3.5rem 1.25rem;
  text-align: center;
}
.hero-logo {
  height: 110px;
  width: auto;
  margin: 0 auto 1.5rem;
}
.hero-slogan {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: .5rem;
}
.hero-slogan em {
  font-style: normal;
  color: var(--yellow-dark);
}
.hero-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero CTA always centered */
.hero-cta-wrap { display: flex; justify-content: center; margin-top: 2rem; }

@media (min-width: 769px) {
  .hero {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 3rem;
    max-width: var(--max-w-wide);
    margin: 0 auto;
    padding: 4rem 1.25rem;
  }
  .hero-logo { margin: 0; flex-shrink: 0; height: 130px; }
  .hero-subtitle { margin-left: 0; }
  .hero-cta-wrap { justify-content: flex-start; }
}

/* ============================================================
   OVERVIEW / STATS
   ============================================================ */

.overview {
  background: var(--gray-light);
}
.overview-cols {
  display: grid;
  gap: 2rem;
}
.overview-cols h2 {
  font-size: 1.15rem;
  margin-bottom: .75rem;
  padding-bottom: .3rem;
  border-bottom: 2px solid var(--yellow);
  display: inline-block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.stat-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1rem;
  text-align: center;
}
.stat-value {
  font-family: var(--font-ui);
  font-size: 2rem;
  font-weight: 700;
  color: var(--yellow-dark);
  line-height: 1.1;
}
.stat-label {
  font-family: var(--font-ui);
  font-size: .78rem;
  color: var(--muted);
}

@media (min-width: 769px) {
  .overview-cols { grid-template-columns: 1fr 1fr; }
  .stats-grid    { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   EVENT CARDS
   ============================================================ */

.events-section {
  position: relative;
  overflow: hidden;
}
.events-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/backgrounds/1.webp');
  background-size: cover;
  background-position: center;
  opacity: .04;
  pointer-events: none;
  z-index: 0;
}
.events-section > * { position: relative; z-index: 1; }
.events-section h2 { margin-bottom: 1.5rem; }

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 560px) { .events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .events-grid { grid-template-columns: repeat(4, 1fr); } }

.event-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition);
}
.event-card:hover { box-shadow: var(--shadow-md); }

.event-card-image {
  aspect-ratio: 16/10;
  background: var(--gray-light);
  position: relative;
  overflow: hidden;
  display: block;
}
.event-card-image img { width: 100%; height: 100%; object-fit: cover; }
.event-card-image:hover { opacity: .9; }
.event-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-light);
}
.event-card-image-placeholder img {
  width: 48px;
  height: 48px;
  opacity: .45;
  filter: invert(30%) sepia(40%) saturate(600%) hue-rotate(100deg);
}

.event-card-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
  padding: .75rem 1rem 0;
}

.event-date {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--yellow);
  color: #1a1a1a;
  border-radius: 4px;
  padding: .2rem .6rem;
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.event-date--range { font-size: .7rem; flex-direction: column; gap: 0; }
.event-date--range span { display: block; }
/* event-date--announcement removed — dateless entries go to /blog */

.event-card-location {
  display: flex;
  align-items: center;
  gap: .25rem;
  font-family: var(--font-ui);
  font-size: .75rem;
  color: var(--muted);
}

.event-card-body {
  padding: .5rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.event-card-body h3 {
  font-size: 1rem;
  margin-bottom: .25rem;
  flex: 1;
}
.event-card-partner {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-ui);
  font-size: .75rem;
  color: var(--muted);
  margin-top: .5rem;
}
.event-card-partner img { width: 20px; height: 20px; border-radius: 50%; }

/* announcement variant removed */

/* ============================================================
   PARTNER CARDS
   ============================================================ */

.partner-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: box-shadow var(--transition);
}
.partner-card:hover { box-shadow: var(--shadow-md); }

.partner-card-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  object-fit: contain;
  border: 1px solid var(--border);
  background: var(--green-light);
  flex-shrink: 0;
}
.partner-card-logo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}
.partner-card-header { display: flex; align-items: center; gap: .75rem; }

.partner-card h3 { margin-bottom: 0; }
.partner-card-desc {
  font-size: .88rem;
  color: var(--muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.partner-card-footer {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  justify-content: flex-end;   /* buttons right-aligned */
  margin-top: auto;
}

/* Map highlight state */
.partner-card.is-map-focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(252,185,0,.25);
}

/* "Voir sur la carte" button */
.btn--map {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}
.btn--map:hover,
.partner-card.is-map-focus .btn--map {
  border-color: var(--yellow);
  color: var(--yellow-dark);
  background: rgba(252,185,0,.08);
  text-decoration: none;
}

/* ============================================================
   TAGS / BADGES
   ============================================================ */

.tags { display: flex; flex-wrap: wrap; gap: .35rem; }

.tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 600;
  padding: .15rem .55rem;
  border-radius: 20px;
  background: var(--tag-green);
  color: var(--white);
  white-space: nowrap;
}
.tag--teal   { background: var(--tag-teal); }
.tag--orange { background: var(--tag-orange); }
.tag--blue   { background: var(--tag-blue); }
.tag--purple { background: var(--tag-purple); }
.tag--rose   { background: var(--tag-rose); }
.tag--yellow { background: var(--tag-yellow); }
/* Subdomain tags: slightly smaller + softer opacity to sit below domain tags */
.tag--subdomain { font-size: .65rem; opacity: .9; }
.tag--outline {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
}

/* ============================================================
   ENGAGEMENT / NEWSLETTER
   ============================================================ */

.engagement-grid {
  display: grid;
  gap: 1.5rem;
}
.engagement-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.engagement-block h3 { margin-top: 0; margin-bottom: .5rem; }
.engagement-block p  { color: var(--muted); font-size: .92rem; margin-bottom: 0; flex: 1; }
.engagement-block .btn { margin-top: 1.5rem; align-self: flex-end; }

@media (min-width: 769px) {
  .engagement-grid { grid-template-columns: 1fr 1fr; }
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: var(--max-w-narrow);
  margin: 1.5rem auto 0;
}
.newsletter-form-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1;
  min-width: 140px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .55rem .9rem;
  font-family: var(--font-ui);
  font-size: .9rem;
}

/* ============================================================
   FORMS
   ============================================================ */

.form-field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-bottom: 1rem;
}
.form-field label {
  font-family: var(--font-ui);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
}
.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .55rem .9rem;
  font-family: var(--font-ui);
  font-size: .95rem;
  width: 100%;
  background: var(--white);
  transition: border-color var(--transition);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(58,124,78,.15);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field-file {
  display: flex;
  align-items: center;
  gap: .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .55rem .9rem;
}
.form-section {
  background: var(--green-light);
  border-radius: var(--radius);
  padding: 2rem;
}

/* Dynamic fields (hidden by default, shown via JS) */
.form-conditional { display: none; }
.form-conditional.is-visible { display: block; }

/* Required indicator */
.required { color: var(--yellow-dark); margin-left: .15rem; }

/* Inline field error */
.field-error {
  display: block;
  font-family: var(--font-ui);
  font-size: .8rem;
  color: #c0392b;
  margin-top: .3rem;
}

/* Field error state */
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #c0392b;
}
.form-field.has-error input:focus,
.form-field.has-error select:focus,
.form-field.has-error textarea:focus {
  box-shadow: 0 0 0 3px rgba(192,57,43,.12);
}

/* Global form alert (top of form) */
.form-alert {
  border-radius: var(--radius);
  padding: .9rem 1.25rem;
  font-family: var(--font-ui);
  font-size: .92rem;
  margin-bottom: 1.5rem;
}
.form-alert--error   { background: #fdf2f0; border-left: 4px solid #c0392b; color: #8b2015; }
.form-alert--warning { background: #fffbf0; border-left: 4px solid var(--yellow); color: #7a5c00; }
.form-alert--info    { background: var(--gray-light); border-left: 4px solid var(--green); color: var(--green-dark); }

/* Success state */
.form-success {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--gray-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.form-success-icon {
  width: 56px;
  height: 56px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.form-success-message {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0;
}

/* ============================================================
   SEARCH PAGE
   ============================================================ */

.search-hero {
  text-align: center;
  padding: 5rem 1.25rem 4rem;
  background: var(--gray-light);
  position: relative;
  overflow: hidden;
}
.search-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/backgrounds/nature.webp');
  background-size: cover;
  background-position: center;
  opacity: .05;
  pointer-events: none;
}
.search-hero > * { position: relative; z-index: 1; }

.search-hero-title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 1.75rem;
}
.search-hero-title em {
  font-style: normal;
  color: var(--yellow-dark);
}

/* Search bar — standard */
.search-bar {
  display: flex;
  align-items: center;
  max-width: 480px;
  margin: 0 auto;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: border-color var(--transition);
}
.search-bar:focus-within { border-color: var(--green); }
.search-bar input {
  flex: 1;
  border: none;
  padding: .65rem 1rem;
  font-family: var(--font-ui);
  font-size: .95rem;
  background: none;
}
.search-bar input:focus { outline: none; }
.search-bar button {
  background: none;
  border: none;
  padding: .65rem .9rem;
  cursor: pointer;
  color: var(--green);
  line-height: 0;
  position: relative; /* needed for spinner pseudo-element */
}
/* Spinner — shown when .is-loading is added to the button */
.search-bar button.is-loading svg { opacity: 0; }
.search-bar button.is-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2.5px solid transparent;
  border-top-color: var(--green);
  border-right-color: var(--green);
  border-radius: 50%;
  animation: cd-spin .6s linear infinite;
}
@keyframes cd-spin { to { transform: rotate(360deg); } }

/* Hero-size search bar */
.search-bar--hero {
  max-width: 640px;
  border-radius: 40px;
  border-width: 2px;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}
.search-bar--hero input {
  font-size: 1.1rem;
  padding: 1rem 1.5rem;
}
.search-bar--hero button {
  padding: 1rem 1.25rem;
  color: var(--green);
}
.search-bar--hero:focus-within { border-color: var(--green); box-shadow: 0 4px 24px rgba(58,124,78,.2); }

/* Segmented toggle — standard */
.search-toggle {
  display: inline-flex;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
}
.toggle-btn {
  font-family: var(--font-ui);
  font-size: .9rem;
  font-weight: 700;
  padding: .5rem 1.25rem;
  border: none;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: background var(--transition), color var(--transition);
}
.toggle-btn + .toggle-btn { border-left: 2px solid var(--green); }
.toggle-btn.is-active { background: var(--green); color: var(--white); }
.toggle-btn:not(.is-active):hover { background: var(--green-light); }

/* Hero-size toggle */
.search-toggle--hero {
  display: inline-flex;
  margin: 1.75rem 0 0;
  border-radius: 12px;
  border-width: 2.5px;
}
.search-toggle--hero .toggle-btn {
  font-size: 1rem;
  padding: .75rem 2.5rem;
  gap: .6rem;
}
.search-toggle--hero .toggle-btn + .toggle-btn { border-left-width: 2.5px; }

/* 4/5-tab variant: wraps to 2-row on small screens */
.search-toggle--4,
.search-toggle--5 {
  flex-wrap: wrap;
  justify-content: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.search-toggle--4 .toggle-btn,
.search-toggle--5 .toggle-btn { padding: .65rem 1.4rem; flex: 1 1 auto; min-width: 130px; }
@media (max-width: 600px) {
  .search-toggle--4 .toggle-btn,
  .search-toggle--5 .toggle-btn { flex: 1 1 40%; min-width: 0; padding: .55rem .65rem; font-size: .82rem; }
}

/* "Tout" panel — grouped sections */
.all-section {
  margin-bottom: 3rem;
}
.all-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--green-light);
}
.all-section-title {
  font-size: 1.15rem;
  font-weight: 900;
  margin: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--heading);
}
.all-section-count {
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 700;
  background: var(--green-light);
  color: var(--green);
  padding: .1rem .5rem;
  border-radius: 20px;
}
/* Grid layout for org cards in non-map panels.
   Uses double-class selector to beat the later .results-list rule. */
.results-list.results-list--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

/* ── Filters toggle row — always-visible strip above the bar ── */
.filters-reveal-row {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: .3rem 0;
}
.filters-reveal-row .container-wide { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 1.25rem; }
.filters-reveal-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: .3rem .4rem;
  border-radius: .25rem;
  line-height: 1;
  transition: color .15s, background .15s;
}
.filters-reveal-btn:hover { color: var(--green-dark); background: var(--green-light); }
.filters-reveal-btn[aria-expanded="true"] { color: var(--green-dark); }
.filters-reveal-chevron { transition: transform .2s ease; }
.filters-reveal-btn[aria-expanded="true"] .filters-reveal-chevron { transform: rotate(180deg); }

/* Filters bar — animated slide-down */
.filters-bar {
  overflow: hidden;
  background: var(--white);
  border-bottom: 2px solid var(--border);
  max-height: 0;
  opacity: 0;
  padding: 0;
  transition:
    max-height .35s cubic-bezier(.4,0,.2,1),
    opacity    .25s ease .05s,
    padding    .35s cubic-bezier(.4,0,.2,1);
}
.filters-bar.is-visible {
  max-height: 480px; /* room for 3 pill rows (domain + sub + region) */
  opacity: 1;
  padding: .75rem 0 1rem;
}
.filters-bar .container-wide { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 1.25rem; }

/* ── Filter pill rows ─────────────────────────────────────── */
.filter-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-bottom: .55rem;
}
.filter-pills-row:last-of-type { margin-bottom: 0; }

/* Shared pill base */
.filter-pill {
  font-family: var(--font-ui);
  font-size: .74rem;
  font-weight: 700;
  padding: .28rem .8rem;
  border-radius: 20px;
  border: 2px solid currentColor;
  background: transparent;
  cursor: pointer;
  line-height: 1.4;
  white-space: nowrap;
  transition: background .12s, color .12s, border-color .12s;
}
.filter-pill:not(.is-active):hover { background: rgba(0,0,0,.05); }

/* Domain pills — colored borders matching each domain */
.filter-pill--domain              { color: var(--tag-green); }
.filter-pill--domain.is-active    { background: var(--tag-green);   color: var(--white); }

.filter-pill--orange              { color: var(--tag-orange); }
.filter-pill--orange.is-active    { background: var(--tag-orange);  color: var(--white); }
.filter-pill--blue                { color: var(--tag-blue); }
.filter-pill--blue.is-active      { background: var(--tag-blue);    color: var(--white); }
.filter-pill--rose                { color: var(--tag-rose); }
.filter-pill--rose.is-active      { background: var(--tag-rose);    color: var(--white); }
.filter-pill--purple              { color: var(--tag-purple); }
.filter-pill--purple.is-active    { background: var(--tag-purple);  color: var(--white); }
.filter-pill--teal                { color: var(--tag-teal); }
.filter-pill--teal.is-active      { background: var(--tag-teal);    color: var(--white); }
.filter-pill--yellow              { color: var(--tag-yellow); }
.filter-pill--yellow.is-active    { background: var(--tag-yellow);  color: var(--white); }

/* Subdomain + region pills — neutral style */
.filter-pill--sub,
.filter-pill--region {
  color: var(--text-muted, #666);
  border-color: var(--border);
  font-weight: 600;
}
.filter-pill--sub.is-active,
.filter-pill--region.is-active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.filter-pill--sub:not(.is-active):hover,
.filter-pill--region:not(.is-active):hover {
  border-color: var(--green);
  color: var(--green-dark);
}

/* Subdomain wrap (hidden until domain selected) */
.filter-pills-row--sub {
  padding-top: .15rem;
  border-top: 1px dashed var(--border);
  margin-top: .1rem;
}

/* Region row — slightly quieter visual separator */
.filter-pills-row--region {
  padding-top: .15rem;
  border-top: 1px dashed var(--border);
  margin-top: .1rem;
}

/* ── No results + random suggestions ─────────────────────── */
.no-results-msg {
  font-family: var(--font-ui);
  font-size: .9rem;
  color: var(--muted);
  padding: 2rem 0 .25rem;
  text-align: center;
}
.suggestions-label {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  margin: 1.5rem 0 .85rem;
}
.suggestions-label::before,
.suggestions-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Results area */
.search-results-wrap {
  padding: 2.5rem 0 4rem;
  position: relative;
}
/* Indeterminate progress bar while search is in flight */
.search-results-wrap.is-loading::before {
  content: '';
  position: absolute;
  top: 0;
  height: 3px;
  background: var(--green);
  border-radius: 0 2px 2px 0;
  animation: cd-loading-bar 1.1s ease-in-out infinite;
}
@keyframes cd-loading-bar {
  0%   { left: -40%; width: 40%; }
  100% { left: 100%; width: 40%; }
}

.results-count { font-family: var(--font-ui); font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.results-count--placeholder { color: var(--yellow-dark); font-style: italic; }

/* Map + results layout */
.search-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .search-layout { grid-template-columns: 1fr 1fr; align-items: start; }
  .search-map-col { position: sticky; top: calc(var(--nav-h) + 1rem); }
}

/* Live map */
.search-map {
  border-radius: var(--radius);
  overflow: hidden;
  height: 420px;
  border: 1px solid var(--border);
  background: var(--gray-light);
}
@media (min-width: 900px) { .search-map { height: 520px; } }

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-md) !important;
  padding: 0 !important;
}
.leaflet-popup-content {
  margin: 0 !important;
  font-family: var(--font-ui);
}
.map-popup { padding: .75rem 1rem; }

.map-popup-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .45rem;
}
.map-popup-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  object-fit: contain;
  border: 1px solid var(--border);
  background: var(--green-light);
  flex-shrink: 0;
}
.map-popup-logo--placeholder {
  background: var(--gray-light);
}
.map-popup-name {
  display: block;
  font-size: .92rem;
  color: var(--green-dark);
  margin-bottom: .15rem;
}
.map-popup-location {
  font-size: .75rem;
  color: var(--muted);
}
.map-popup-link {
  display: block;
  margin-top: .35rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--green);
  text-align: right;
}
.map-popup-link:hover { color: var(--green-dark); }
/* Separator between entries in a multi-partner popup */
.map-popup-sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: .5rem 0;
}

/* Custom circular marker */
.map-marker {
  position: relative;
  overflow: visible;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  border: 2.5px solid var(--white);
  box-shadow: 0 0 0 1.5px var(--green), 0 2px 6px rgba(0,0,0,.25);
  transition: transform .15s;
}
.map-marker:hover,
.map-marker--active {
  background: var(--yellow);
  box-shadow: 0 0 0 1.5px var(--yellow-dark), 0 2px 8px rgba(0,0,0,.3);
  transform: scale(1.3);
}
/* Badge for grouped (multi-partner) markers */
.map-marker-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  background: var(--yellow);
  color: var(--green-dark);
  border: 1.5px solid var(--white);
  border-radius: 7px;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Placeholder fallback (shown before JS loads) */
.map-placeholder {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  background: var(--green-light);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: .9rem;
  gap: .5rem;
}

.results-count {
  font-family: var(--font-ui);
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.results-list { display: flex; flex-direction: column; gap: 1rem; }

/* Infinite-scroll sentinel — invisible, spans full width in grids */
.scroll-sentinel {
  height: 1px;
  grid-column: 1 / -1;
  pointer-events: none;
  visibility: hidden;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.25rem;
}
.empty-state-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.empty-state h2 { margin-bottom: .5rem; }
.empty-state p { color: var(--muted); margin-bottom: 2rem; }
.empty-state .grid { max-width: 700px; margin: 0 auto; }

/* ============================================================
   ASSOCIATION PAGE
   ============================================================ */

.page-hero {
  text-align: center;
  padding: 3rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: .5rem; }
.page-hero .lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Page hero with background texture */
.page-hero--bg {
  position: relative;
  overflow: hidden;
}
.page-hero--bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/backgrounds/2.webp');
  background-size: cover;
  background-position: center;
  opacity: .06;
  pointer-events: none;
  z-index: 0;
}
.page-hero--bg > * { position: relative; z-index: 1; }

/* Yellow-ruled h2 */
.h2--yellow-rule {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.h2--yellow-rule::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: var(--yellow);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Charte callout block */
.charte-block {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius);
  background: var(--white);
}
.charte-block h3 { margin-bottom: .4rem; }
.charte-block p  { font-size: .9rem; color: var(--muted); margin-bottom: .75rem; }

/* Team levels — subtle separator */
.team-level { margin-bottom: 2rem; }
.team-level:last-child { margin-bottom: 0; }
.team-level-label {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: .9rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.team-level-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Clickable cards */
.card--link {
  display: block;
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.card--link:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.card--link h3 { color: var(--green); }
.card--link-desc { font-size: .88rem; color: var(--muted); margin-bottom: 0; }

.objectives-list { list-style: none; padding: 0; counter-reset: obj; }
.objectives-list li {
  counter-increment: obj;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.objectives-list li:last-child { border-bottom: none; }
.objectives-list li::before {
  content: counter(obj);
  font-family: var(--font-ui);
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}
.member-card { text-align: center; }
.member-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto .75rem;
  background: var(--green-light);
  border: 2px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.member-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-card h3 { font-size: .95rem; margin-bottom: .15rem; }
.member-card-role { font-family: var(--font-ui); font-size: .78rem; color: var(--muted); }
.member-card--founder .member-card-avatar { border-color: var(--green); border-width: 3px; }

/* Level headings for team sections */
.team-level-title {
  font-family: var(--font-ui);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ============================================================
   EVENTS PAGE
   ============================================================ */

/* Yellow & accent for page titles */
.accent { font-style: normal; color: var(--yellow-dark); }

.featured-events { overflow: hidden; }
.featured-events h2 { margin-bottom: 1.25rem; }

/* Siema carousel */
.carousel-wrap {
  position: relative;
  margin: 0 -.6rem; /* bleeds into container padding to align outer card edges */
}

#featured-carousel { overflow: hidden; }

/*
 * Siema wraps each item in a div (buildSliderFrameItem), then floats them.
 * DOM: #featured-carousel > div.frame > div.slide-wrapper > article
 * Override float layout with flex so align-items:stretch equalises row height.
 */

/* 1. The frame: flex row, stretch all wrappers to tallest */
#featured-carousel > div {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
}

/* 2. Siema's per-slide wrapper divs: cancel float, become flex columns */
#featured-carousel > div > div {
  float: none !important;
  display: flex !important;
  flex-direction: column;
  padding: 0 .6rem;
  box-sizing: border-box !important;
}

/* 3. The article cards: fill wrapper height */
#featured-carousel article {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.25rem;
}

.carousel-arrow {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  flex-shrink: 0;
  color: var(--green-dark);
}
.carousel-arrow:hover { border-color: var(--green); background: var(--green-light); }

.carousel-dots {
  display: flex;
  gap: .4rem;
  align-items: center;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}
.carousel-dot.is-active {
  background: var(--green);
  transform: scale(1.3);
}
.carousel-dot:hover:not(.is-active) { background: var(--muted); }

.month-group { margin-bottom: 2.5rem; }
.month-label {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 1rem;
  padding-bottom: .4rem;
  border-bottom: 3px solid var(--yellow);
  display: inline-block;
  padding-right: 1.5rem;
}

/* ============================================================
   PARTENAIRE PAGE
   ============================================================ */

/* ── Hero banner ──────────────────────────────────────────── */
.partenaire-hero {
  background: linear-gradient(160deg, var(--nav-bg) 0%, var(--green) 100%);
  position: relative;
  overflow: hidden;
}
.partenaire-hero--image {
  background-size: cover;
  background-position: center top;
  background-image: var(--hero-bg);
}
.partenaire-hero--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 0;
}
.partenaire-hero .container { position: relative; z-index: 1; }
.partenaire-hero .partenaire-header {
  border-bottom: none;
  padding: 3rem 0 2.5rem;
}
.partenaire-hero .partenaire-info h1 { color: var(--white); }
.partenaire-hero .partenaire-coords { color: rgba(255,255,255,.75); }
.partenaire-hero .partenaire-coords a { color: rgba(255,255,255,.9); }
.partenaire-hero .partenaire-logo,
.partenaire-hero .partenaire-logo-placeholder {
  border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.15);
  color: var(--white);
}
.partenaire-hero p[style*="italic"] { color: rgba(255,255,255,.8) !important; }

/* ── Partner detail map ───────────────────────────────────── */
.partenaire-map-wrap {
  width: 100%;
  height: 300px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: .75rem;
}

/* ── Areas (zones desservies) ─────────────────────────────── */
.partenaire-areas {
  font-size: .82rem;
  font-family: var(--font-ui);
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .5rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
.partenaire-areas-label {
  font-weight: 600;
  color: var(--text);
}

/* ── Similar partners grid ────────────────────────────────── */
.similaires-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* ── Report section (bottom of page) ─────────────────────── */
.partenaire-report-section {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
}
.partenaire-report-section .container {
  display: flex;
  justify-content: center;
}

/* ── Shop / buy button ────────────────────────────────────── */
.btn--buy {
  background: var(--yellow);
  color: var(--green-dark);
  border-color: var(--yellow);
  font-weight: 700;
}
.btn--buy:hover {
  background: var(--yellow-dark);
  color: var(--white);
  border-color: var(--yellow-dark);
}

/* ── Shop modal — multi-step ──────────────────────────────── */
.modal-box--shop { max-width: 480px; }

/* Step indicator */
.shop-steps {
  display: flex;
  align-items: center;
  padding: 1.1rem 1.75rem .85rem;
  border-bottom: 1px solid var(--border);
}
.shop-step-item {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-ui);
  font-size: .74rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.shop-step-item.is-active { color: var(--green); }
.shop-step-item.is-done   { color: var(--green-dark); }
.shop-step-num {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem;
  flex-shrink: 0;
  transition: background .2s, border-color .2s, color .2s;
}
.shop-step-item.is-active .shop-step-num,
.shop-step-item.is-done   .shop-step-num {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.shop-step-connector {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 .5rem;
}

/* Panels */
.shop-panel {
  padding: 1.4rem 1.75rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* Field label (reusable) */
.shop-field-label {
  font-size: .72rem;
  font-weight: 700;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: .45rem;
}

/* Product header */
.shop-product-header .shop-partner-name {
  font-size: .76rem;
  color: var(--muted);
  font-family: var(--font-ui);
  margin-bottom: .2rem;
}
.shop-product-header h2 {
  font-size: 1.1rem;
  margin: 0 0 .35rem;
  color: var(--green-dark);
  line-height: 1.3;
}
.shop-product-header p {
  font-size: .85rem;
  color: var(--text);
  margin: 0;
  line-height: 1.55;
}

/* Déclinaison pills */
.shop-decl-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.shop-decl-pill {
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 600;
  padding: .38rem .9rem;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: transparent;
  cursor: pointer;
  line-height: 1.4;
  transition: border-color .12s, background .12s, color .12s;
  color: var(--text);
}
.shop-decl-pill:hover { border-color: var(--green); color: var(--green); }
.shop-decl-pill.is-active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.shop-decl-pill .pill-price {
  font-weight: 400;
  opacity: .75;
  margin-left: .3rem;
  font-size: .78rem;
}

/* Quantity stepper */
.shop-qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: .4rem;
  overflow: hidden;
}
.qty-stepper button {
  width: 34px; height: 34px;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: background .1s;
  flex-shrink: 0;
}
.qty-stepper button:hover { background: var(--green-light); }
.qty-stepper button:disabled { opacity: .3; cursor: default; }
.qty-val {
  min-width: 38px;
  text-align: center;
  font-family: var(--font-ui);
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  line-height: 34px;
  padding: 0 .2rem;
}

/* Shipping info block */
.shop-livraison-info {
  background: var(--green-light);
  border-radius: var(--radius);
  padding: .7rem 1rem;
  font-size: .8rem;
  color: var(--green-dark);
  display: flex;
  flex-direction: column;
  gap: .28rem;
}
.livraison-row { display: flex; gap: .5rem; align-items: baseline; }
.livraison-key {
  font-weight: 700;
  font-family: var(--font-ui);
  min-width: 80px;
  flex-shrink: 0;
}

/* Subtotal bar */
.shop-subtotal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 0;
  border-top: 1px solid var(--border);
  font-family: var(--font-ui);
}
.subtotal-label { font-size: .8rem; color: var(--muted); }
.subtotal-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green-dark);
}

/* Step footer */
.shop-step-footer {
  display: flex;
  gap: .7rem;
  align-items: center;
  justify-content: flex-end;
  padding-top: .25rem;
}
.shop-step-footer .btn--outline { margin-right: auto; }

/* ── Donation widget (reusable) ───────────────────────────── */
.donation-widget {
  background: var(--green-light);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.donation-widget-header h3 {
  font-size: .98rem;
  color: var(--green-dark);
  margin: 0 0 .25rem;
}
.donation-widget-header p {
  font-size: .8rem;
  color: var(--green-dark);
  opacity: .8;
  margin: 0;
  line-height: 1.5;
}
.donation-presets {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
.donation-preset-btn {
  font-family: var(--font-ui);
  font-size: .74rem;
  font-weight: 700;
  padding: .24rem .65rem;
  border-radius: 20px;
  border: 1.5px solid var(--green);
  background: transparent;
  color: var(--green);
  cursor: pointer;
  transition: background .1s, color .1s;
  line-height: 1.4;
}
.donation-preset-btn:hover,
.donation-preset-btn.is-active {
  background: var(--green);
  color: #fff;
}
.donation-slider-wrap { display: flex; flex-direction: column; gap: .35rem; }
.donation-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: .7rem;
  color: var(--green-dark);
  opacity: .6;
  font-family: var(--font-ui);
}
.donation-slider {
  width: 100%;
  accent-color: var(--green);
  cursor: pointer;
}
.donation-amount-display {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green-dark);
  font-family: var(--font-ui);
}
.donation-totals {
  border-top: 1px solid rgba(58,124,78,.2);
  padding-top: .7rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-size: .8rem;
  font-family: var(--font-ui);
  color: var(--green-dark);
}
.totals-row { display: flex; justify-content: space-between; gap: 1rem; }
.totals-row--donation { color: var(--green); font-weight: 600; }
.totals-row--total {
  font-weight: 800;
  font-size: .92rem;
  border-top: 1px solid rgba(58,124,78,.2);
  margin-top: .2rem;
  padding-top: .4rem;
}

/* ── Order summary (step 3) ───────────────────────────────── */
.shop-order-summary {
  background: var(--surface, #f8f8f6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  font-size: .84rem;
  font-family: var(--font-ui);
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.order-row { display: flex; justify-content: space-between; gap: 1rem; }
.order-row--donation { color: var(--green); font-weight: 600; }
.order-row--total {
  font-weight: 800;
  font-size: .92rem;
  border-top: 1px solid var(--border);
  margin-top: .2rem;
  padding-top: .45rem;
}

/* ── Stripe placeholder ───────────────────────────────────── */
.stripe-mount-wrap { display: flex; flex-direction: column; gap: .75rem; }
.stripe-mount-placeholder {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .2rem;
  color: var(--muted);
  font-size: .8rem;
  font-family: var(--font-ui);
}

.partenaire-header {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.partenaire-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--green-light);
}
.partenaire-logo-placeholder {
  width: 100px;
  height: 100px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.partenaire-info { flex: 1; }
.partenaire-info h1 { margin-bottom: .25rem; }
.partenaire-coords {
  font-family: var(--font-ui);
  font-size: .88rem;
  color: var(--muted);
  margin: .5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
}
.partenaire-coords span { display: flex; align-items: center; gap: .3rem; }
.btn-report {
  font-family: var(--font-ui);
  font-size: .85rem;
  padding: .4rem .9rem;
  border-radius: var(--radius);
  border: 1.5px solid #c0392b;
  color: #c0392b;
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.btn-report:hover { background: #c0392b; color: var(--white); }

@media (min-width: 769px) {
  .partenaire-header { grid-template-columns: auto 1fr; align-items: start; }
}

.partenaire-body { display: grid; gap: 2rem; }
@media (min-width: 900px) {
  .partenaire-body { grid-template-columns: 2fr 1fr; align-items: start; }
}

.partenaire-section { margin-bottom: 2rem; }
.partenaire-section h2 { margin-bottom: 1rem; }
.partenaire-section-subtitle {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin: 1.25rem 0 .6rem;
  font-weight: 700;
}

.prestations-list { display: flex; flex-direction: column; gap: 1rem; }

.similaires-section { padding: 2.5rem 0; }
.similaires-section h2 { margin-bottom: 1.25rem; }

/* ============================================================
   PRESTATION RESULT CARDS (Trouver une solution panels)
   ============================================================ */

.prestation-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: .5rem;
}

.prestation-card-result {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.prestation-card-result:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.prestation-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.prestation-type-badge {
  font-family: var(--font-ui);
  font-size: .65rem;
  font-weight: 700;
  padding: .15rem .55rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--white);
}
.prestation-type-badge--product   { background: var(--tag-orange); }
.prestation-type-badge--service   { background: var(--tag-blue);   }
.prestation-type-badge--formation { background: var(--tag-teal);   }
.prestation-type-badge--community { background: var(--tag-purple); }

.prestation-price {
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 700;
  color: var(--green-dark);
  white-space: nowrap;
}

.prestation-card-title {
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
  line-height: 1.3;
  color: var(--heading);
}

.prestation-card-partner {
  font-family: var(--font-ui);
  font-size: .82rem;
  color: var(--muted);
  margin: 0;
}
.prestation-card-partner a { color: var(--green); font-weight: 600; }
.prestation-card-location  { color: var(--muted); }

.prestation-card-desc {
  font-size: .87rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prestation-card-actions { margin-top: auto; padding-top: .25rem; display: flex; justify-content: flex-end; }

/* Search: empty state within a panel */
.results-empty {
  color: var(--muted);
  font-size: .9rem;
  font-family: var(--font-ui);
  padding: 2rem 0;
  grid-column: 1 / -1;
}

/* ============================================================
   MODAL
   ============================================================ */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.modal.is-open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-md);
}
.modal-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  z-index: 1;
}
.modal-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--green-light);
  border-radius: var(--radius) var(--radius) 0 0;
}
.modal-header-image {
  grid-column: 1;
  grid-row: 1 / 3;
  aspect-ratio: 4/3;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.modal-header-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-meta {
  font-family: var(--font-ui);
  font-size: .85rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.modal-meta span { display: flex; align-items: center; gap: .35rem; }
.modal-body { padding: 1.5rem; }

@media (min-width: 600px) {
  .modal-header { grid-template-columns: 240px 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer { padding: 2rem 0; }

.footer-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: .75rem; }
.footer-logo { height: 36px; width: auto; }
.footer-name { font-family: var(--font-ui); font-size: .9rem; font-weight: 700; }
.footer-coords { font-size: .82rem; opacity: .7; margin-top: .25rem; }

.footer-social {
  display: flex;
  gap: .75rem;
  align-items: center;
}
.footer-social a { color: var(--white); line-height: 0; opacity: .8; }
.footer-social a:hover { opacity: 1; text-decoration: none; }

.footer-eco {
  font-size: .82rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.footer-eco a { color: var(--yellow); text-decoration: underline; }
.footer-eco a:hover { color: var(--white); }

.footer-credits {
  font-size: .75rem;
  opacity: .5;
  margin-top: .25rem;
}

@media (min-width: 769px) {
  .footer-inner {
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto auto;
  }
  .footer-brand { grid-column: 1; grid-row: 1 / 3; }
  .footer-social { grid-column: 2; justify-self: end; }
  .footer-eco { grid-column: 3; justify-self: end; }
  .footer-credits { grid-column: 2 / 4; grid-row: 2; text-align: right; }
}

/* ============================================================
   MISC / UTILITY
   ============================================================ */

.btn--outline {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}
.btn--outline:hover { background: var(--green); color: var(--white); }

.btn--small { font-size: .8rem; padding: .4rem 1rem; }

.btn--full { width: 100%; text-align: center; }

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.section-heading h2 { margin-bottom: 0; }
.section-heading a {
  font-family: var(--font-ui);
  font-size: .88rem;
  white-space: nowrap;
  color: var(--yellow-dark);
  font-weight: 600;
}
.section-heading a:hover { color: var(--green-dark); text-decoration: underline; }

.text-lead { font-size: 1.05rem; color: var(--muted); margin-bottom: 1.5rem; }

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

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--green-dark);
  color: var(--white);
  padding: .5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-family: var(--font-ui);
  z-index: 999;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* ============================================================
   BLOG
   ============================================================ */

/* Listing — featured card */
.blog-card--featured {
  display: grid;
  gap: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
  background: var(--white);
  transition: box-shadow var(--transition);
}
.blog-card--featured:hover { box-shadow: var(--shadow-md); }

@media (min-width: 769px) {
  .blog-card--featured { grid-template-columns: 1fr 1fr; gap: 0; }
}

.blog-card-image {
  aspect-ratio: 16/9;
  background: var(--green-light);
  overflow: hidden;
}
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-image--placeholder {
  background: linear-gradient(135deg, var(--green-light) 0%, #d0e8d8 100%);
}

.blog-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .6rem;
}
.blog-card-title { font-size: clamp(1.1rem, 2.5vw, 1.5rem); margin-bottom: 0; line-height: 1.3; }
.blog-card-title a { color: var(--green-dark); }
.blog-card-title a:hover { color: var(--green); text-decoration: underline; }
.blog-card-title--sm { font-size: 1rem; }
.blog-card-summary { color: var(--muted); font-size: .92rem; line-height: 1.6; margin-bottom: 0; }
.blog-card-summary--sm {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-link {
  font-family: var(--font-ui);
  font-size: .88rem;
  font-weight: 700;
  color: var(--yellow-dark);
  margin-top: .25rem;
}
.blog-card-link:hover { color: var(--green-dark); text-decoration: underline; }

/* Listing — grid */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }

.blog-grid .blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition);
}
.blog-grid .blog-card:hover { box-shadow: var(--shadow-md); }
.blog-grid .blog-card .blog-card-image { aspect-ratio: 16/9; }
.blog-grid .blog-card .blog-card-body { padding: 1.25rem; flex: 1; }

/* Meta row */
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1rem;
  font-family: var(--font-ui);
  font-size: .78rem;
  color: var(--muted);
}
.blog-meta--large { font-size: .88rem; }
.blog-meta-author { font-weight: 700; color: var(--text); }

/* ── Article page ────────────────────────────────────── */

.blog-post-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}
.blog-post-header-inner {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
  max-width: 760px;
}
.blog-breadcrumb {
  font-family: var(--font-ui);
  font-size: .85rem;
  margin-bottom: 1.25rem;
}
.blog-breadcrumb a { color: var(--muted); }
.blog-breadcrumb a:hover { color: var(--green); }

.blog-post-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: .75rem;
}
.blog-post-deck {
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1rem;
  font-style: italic;
  border-left: 3px solid var(--yellow);
  padding-left: 1rem;
}
.blog-post-hero-image {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
}
.blog-post-hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* Long-form content */
.blog-post-content {
  max-width: 680px;
  font-size: 1.02rem;
  line-height: 1.8;
}
.blog-post-content h2 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--border);
}
.blog-post-content h3 { font-size: 1.1rem; margin-top: 2rem; margin-bottom: .5rem; }
.blog-post-content p { margin-bottom: 1.25rem; }
.blog-post-content blockquote {
  border-left: 4px solid var(--yellow);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--green-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--green-dark);
}
.blog-post-content blockquote p { margin-bottom: 0; }

.blog-post-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ============================================================
   VISUAL POLISH
   ============================================================ */

/* ── Hero — atmospheric gradient (inspired by original) ─ */

.hero-wrap {
  background:
    linear-gradient(
      110deg,
      #3a4e28 0%,
      #4a6040 18%,
      #5e7a68 36%,
      #7298a0 52%,
      #8298b8 68%,
      #8a8ab8 84%,
      #807898 100%
    ) !important;
  background-size: cover !important;
  background-image: none; /* remove the webp fallback */
}
.hero-wrap::before {
  background: rgba(8, 16, 8, 0.30) !important;
}
.hero-wrap::after { display: none; } /* remove texture layer */

/* Hero text → white on the dark gradient */
.hero-slogan { color: var(--white) !important; letter-spacing: -.025em; font-size: clamp(2rem, 5.5vw, 2.9rem); }
.hero-subtitle { color: rgba(255,255,255,.8) !important; }

/* Yellow bar stays yellow */
@media (min-width: 769px) {
  .hero-slogan::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: var(--yellow);
    border-radius: 2px;
    margin-bottom: .85rem;
  }
}

/* ── Page heroes — light gray + texture ─────────────── */

.page-hero {
  background: var(--gray-light);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/backgrounds/1.webp') center / cover;
  opacity: .06;
  pointer-events: none;
  z-index: 0;
}
.page-hero > * { position: relative; z-index: 1; }

/* ── Section tinted → neutral gray ──────────────────── */

.section--tinted {
  background: var(--gray-light) !important;
  position: relative; overflow: hidden;
}
.section--tinted::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/backgrounds/nature.webp') center / cover;
  opacity: .04;
  pointer-events: none;
}
.section--tinted > .container,
.section--tinted > .container-wide,
.section--tinted > div { position: relative; }

/* ── Stats — yellow top accent ───────────────────────── */

.stat-item {
  border-top: 3px solid var(--yellow);
  border-left: none;
}
.stat-value { font-size: 2.6rem; letter-spacing: -.03em; }
.stat-label { font-size: .82rem; }

/* ── Buttons — lift on hover ─────────────────────────── */

.btn {
  transition: background var(--transition), color var(--transition),
              transform .15s ease, box-shadow .15s ease;
  border-radius: 6px;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(42,92,56,.22);
  text-decoration: none;
}
.btn--outline:hover { box-shadow: 0 6px 16px rgba(42,92,56,.14); }
.btn--map:hover { transform: none; box-shadow: none; }

/* ── Nav — uppercase links + shadow ─────────────────── */

.site-nav {
  height: 64px;
  box-shadow: 0 2px 16px rgba(0,0,0,.18);
}
.nav-links a {
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: .75rem;
}
.nav-links a[aria-current="page"] { text-decoration: underline; }

/* ── Footer — dark charcoal + yellow accent ─────────── */

.site-footer {
  background: var(--gray-dark) !important;
  border-top: 3px solid var(--yellow);
}

/* ── Engagement blocks — left rule ──────────────────── */

.engagement-block {
  border-left: 3px solid var(--green);
  border-top: none;
}

/* ── Cards — uniform radius + softer shadow ─────────── */

.card, .event-card, .partner-card,
.blog-card, .blog-grid .blog-card,
.prestation-card { border-radius: var(--radius); }

.event-card:hover  { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); transition: box-shadow var(--transition), transform var(--transition); }
.partner-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); transition: box-shadow var(--transition), transform var(--transition); }

/* ── Month label — bigger yellow rule ───────────────── */

.month-label {
  font-size: 1.1rem;
  color: var(--green-dark);
  padding-right: 2rem;
}

/* ── Blog — featured card image overlay ─────────────── */

.blog-card-image--placeholder {
  background: linear-gradient(135deg, var(--green-light) 0%, #c8dece 60%, #b8d4c0 100%);
  position: relative;
}
.blog-card-image--placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/backgrounds/2.webp') center / cover;
  opacity: .25;
}

/* ── Blog post — deck pull-quote feel ───────────────── */

.blog-post-deck { font-size: 1.18rem; }

/* ── Search hero — slightly more padding ────────────── */

.search-hero { padding: 5.5rem 1.25rem 4.5rem; }
.search-hero-title { letter-spacing: -.03em; }

/* ── Association objectives — numbered circle yellow ── */

.objectives-list li::before {
  background: var(--yellow);
  color: var(--text);
}

/* ── Team member avatar — founder ring in yellow ────── */

.member-card--founder .member-card-avatar {
  border-color: var(--yellow);
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-nav, .site-footer, .modal { display: none !important; }
  .btn { border: 1px solid currentColor; background: none; color: inherit; }
}
