/* ============================================================
   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:         64px;
  --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
   ============================================================ */

/* Une barre qui reste en haut recouvre la cible de toute ancre : « Aller au
   contenu principal », « /#newsletter », les liens de la page Association…
   `scroll-padding-top` décale le point d'arrivée de la hauteur de la barre.
   Posé sur <html> il vaut pour TOUTES les ancres, présentes et futures — plus
   fiable qu'un `scroll-margin-top` à replacer sur chaque cible. */
html {
  scroll-padding-top: calc(var(--nav-h) + .5rem);
}

/* C'est le <header> qui colle, PAS le <nav> qu'il contient.
 *
 * `position: sticky` ne colle que DANS son bloc conteneur. Le nav était bien
 * déclaré sticky, mais son parent <header> n'a aucun style : sa hauteur est
 * exactement celle du nav, donc la course disponible était nulle et la barre
 * repartait avec la page — un sticky sans effet, indiscernable d'un oubli.
 *
 * Le <header> est enfant direct de <body> : son bloc conteneur fait toute la
 * hauteur du document, et là il colle.
 *
 * Rien d'autre n'est à ajuster dans les gabarits : contrairement à `fixed`, un
 * élément `sticky` reste dans le flux et ne décale pas ce qui le suit. */
body > header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav {
  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 submenu (dropdown) ─────────────────────────────── */
.nav-links li.has-submenu { position: relative; }
.nav-caret { vertical-align: middle; opacity: .8; }
.nav-submenu {
  list-style: none;
  margin: 0;
  padding: .3rem;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--nav-bg);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  z-index: 200;
  display: none;
}
.nav-links li.has-submenu:hover > .nav-submenu,
.nav-links li.has-submenu:focus-within > .nav-submenu { display: block; }
.nav-submenu a { display: block; white-space: nowrap; }

.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-links.is-open li.has-submenu { position: static; }
  .nav-links.is-open .nav-submenu {
    display: block;
    position: static;
    background: none;
    box-shadow: none;
    min-width: 0;
    padding: .4rem 0 0;
  }
  .nav-links.is-open .nav-submenu a { font-size: 1rem; opacity: .82; }
  .nav-links.is-open .nav-caret { display: none; }
  .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: 130px;
  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: 160px; }
  .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[hidden] { display: none !important; }
.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;
}
/* Pastille « Co-organisé » sur la page d'une organisation : l'événement est
   listé chez elle mais appartient à une autre. */
.event-card-mention {
  display: inline-block;
  margin-top: .5rem;
  padding: .1rem .5rem;
  border-radius: 1rem;
  background: var(--green-light);
  color: var(--green);
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 600;
}
/* Ligne « avec … » sur la page d'un événement — les co-organisateurs, sous
   l'organisation responsable. Les liens gardent la couleur du texte : ils sont
   une information, pas l'action principale de la page. */
.event-coorganisateurs { flex-wrap: wrap; }
.event-coorganisateurs a { color: inherit; }
.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: 72px;
  height: 72px;
  border-radius: var(--radius);
  object-fit: contain;
  border: 1px solid var(--border);
  background: var(--green-light);
  flex-shrink: 0;
}
.partner-card-logo-placeholder {
  width: 72px;
  height: 72px;
  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: .6rem;
  font-weight: 400;
  padding: .10rem .50rem;
  border-radius: 20px;
  background: var(--dc, var(--tag-green));
  color: var(--white);
  white-space: nowrap;
  letter-spacing: .05rem;
}
.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; line-height: 24px;}

@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;
}
/* Image optionnelle dans l'onglet « Soutien » des fenêtres de commande */
.donation-widget-image {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 140px;
  margin: 0 auto .75rem;
  border-radius: var(--radius);
  object-fit: cover;
}

/* Bloc newsletter de l'écran de remerciement */
.merci-newsletter {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.merci-newsletter h3 { margin: 0 0 .35rem; font-size: 1rem; }
.merci-newsletter p {
  margin: 0 0 .9rem;
  font-size: .85rem;
  line-height: 1.55;
  color: var(--muted);
}

/* CTA vers le portail de don (onglet Communauté) */
.community-cta {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--green-light);
  text-align: center;
}
.community-cta h3 { margin: 0 0 .5rem; }
.community-cta p {
  margin: 0 auto 1rem;
  max-width: var(--max-w-narrow);
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}

.newsletter-note {
  max-width: var(--max-w-narrow);
  margin: .75rem auto 0;
  font-family: var(--font-ui);
  font-size: .78rem;
  line-height: 1.5;
  color: var(--muted);
}
.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;
}
/* Le bouton ne s'étire pas : sans cette règle il passe seul à la ligne dès que
   les deux champs occupent la largeur, ce qui donne un bouton pleine largeur
   au milieu d'un bloc centré. */
.newsletter-form .btn { flex: 0 0 auto; }

/* ── Bloc newsletter (accueil + carte « Soutien » de la page Association) ── */
.newsletter-block { text-align: center; }
.newsletter-title { margin: 0 0 .5rem; }
.newsletter-intro {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
}
/* Retour d'envoi : remplace la page de confirmation d'ActiveCampaign, sur
   laquelle le visiteur partait avant. Masqué tant qu'il n'y a rien à dire. */
.newsletter-status {
  max-width: var(--max-w-narrow);
  margin: .6rem auto 0;
  font-family: var(--font-ui);
  font-size: .85rem;
  line-height: 1.5;
}
.newsletter-status.is-ok    { color: var(--green); }
.newsletter-status.is-error { color: #b3261e; }
/* Mention de l'outil : discrète, mais elle doit rester lisible — c'est une
   obligation d'ActiveCampaign, pas une décoration. */
.newsletter-tool {
  margin: .5rem 0 0;
  font-family: var(--font-ui);
  font-size: .72rem;
  color: var(--muted);
}
.newsletter-tool a { color: inherit; }

/* Carte pleine largeur dans une grille d'engagement (page Association) :
   occupe toutes les colonnes, quel que soit leur nombre.

   Les trois règles suivantes annulent l'habillage des cartes « Faire un don »
   et « Bénévolat », qui ne convient pas à un formulaire : leur `p { flex: 1 }`
   étirait le petit texte et la mention de l'outil pour remplir la hauteur, et
   leur `.btn { align-self: flex-end }` collait le bouton « S'inscrire » seul à
   droite, détaché de son champ. */
.engagement-block--full { grid-column: 1 / -1; }
.engagement-block--full .newsletter-block p { flex: 0 0 auto; }
.engagement-block--full .newsletter-form { margin-top: 1rem; }
.engagement-block--full .newsletter-form .btn { margin-top: 0; align-self: auto; }

/* ============================================================
   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;
  .container{
    max-width:1100px;
  }
}
.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); }

/* Default (black) pills — active state */
.filter-pill.is-active {
  background: var(--text);
  border-color: var(--text);
  color: var(--white);
}

/* Domain pills — colored borders matching each domain */
.filter-pill--domain              { color: var(--dc, var(--tag-green)); }
.filter-pill--domain.is-active    { background: var(--dc, 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: 52px;
  height: 52px;
  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-tags {
  margin-top: .5rem;
}
.map-popup-desc {
  margin: .5rem 0 0;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--muted);
}
.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(210px, 1fr));
  gap: 1.75rem 1.5rem;
}
.member-card { text-align: center; }
.member-card-avatar {
  width: 116px;
  height: 116px;
  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); }
/* Nom et fonction restent centrés — c'est la bio, seul vrai bloc de texte de
   la carte, qui est justifiée. Césure activée : sur une colonne de ~200 px, le
   français produit sinon des mots isolés et des blancs béants entre les mots. */
.member-card-bio {
  margin-top: .4rem;
  font-size: .8rem;
  color: var(--muted);
  text-align: justify;
  text-align-last: center;
  hyphens: auto;
}
.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,
.partenaire-hero .container-wide { 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);
}

/* Zone d'activité — texte libre sous la carte. Le libellé reprend la graisse
   et l'espacement des intitulés « LOCALISATION » voisins. */
.partenaire-activite {
  margin: .9rem 0 1.25rem;
  font-family: var(--font-ui);
}
.partenaire-activite-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .25rem;
}
.partenaire-activite p {
  font-size: .9rem;
  line-height: 1.55;
  margin: 0;
}

/* ── Similar partners grid ────────────────────────────────── */
/* `grid-template-columns` retiré : la règle était inerte depuis le passage
   de grid à flex, et brouillait la lecture du comportement réel. */
.similaires-grid {
  display: flex;
  gap: 1.25rem;
}
.similaires-grid > * {
  flex: 1;
}

/* Sur mobile, les cartes se partageaient la largeur de l'écran et devenaient
   illisibles. Elles défilent maintenant une par une, avec l'accroche native du
   navigateur — pas de bibliothèque, pas de script : Siema n'est chargé que sur
   /evenements, et l'ajouter ici pour trois cartes coûterait plus que ça ne
   rapporte. Le défilement tactile, l'inertie et le clavier viennent gratuitement.

   Les cartes font 86 % de la largeur : la suivante dépasse assez pour qu'on
   voie qu'il y a une suite. À 100 %, rien n'indique qu'on peut faire défiler. */
@media (max-width: 768px) {
  .similaires-grid {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox */
    padding-bottom: .25rem;
  }
  .similaires-grid::-webkit-scrollbar {
    display: none;                  /* Safari, Chrome */
  }
  .similaires-grid > * {
    flex: 0 0 86%;
    scroll-snap-align: start;
  }
}

/* Une préférence système de mouvement réduit désactive le glissement animé,
   pas le défilement lui-même. */
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
  .similaires-grid {
    scroll-behavior: smooth;
  }
}

/* ── Report section (bottom of page) ─────────────────────── */
.partenaire-report-section {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
}
.partenaire-report-section > div {
  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-custom-row { margin-top: .85rem; }
.donation-custom-row label { display: block; font-size: .78rem; color: var(--muted); margin-bottom: .25rem; font-family: var(--font-ui); }
.donation-custom-row input { width: 100%; padding: .5rem .7rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .95rem; box-sizing: border-box; }
.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;
}

.partenaire-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.partenaire-header-main {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.partenaire-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--green-light);
}
.partenaire-logo-placeholder {
  width: 120px;
  height: 120px;
  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 1 240px; min-width: 0; }
.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: 880px) {
  .partenaire-header { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
}

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

/* Single-column body (general info now lives in the hero aside) */
.partenaire-body--single { display: block; }

/* ── Header info aside ────────────────────────────────────── */
.partenaire-aside {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-md);
  font-family: var(--font-ui);
  align-self: start;
}
.partenaire-aside-block + .partenaire-aside-block {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}
.partenaire-aside-title {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin: 0 0 .6rem;
  font-weight: 700;
}
.partenaire-aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.partenaire-aside-list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .86rem;
  word-break: break-word;
}
.partenaire-aside-list li svg { flex-shrink: 0; color: var(--green); }
.partenaire-aside-list a { color: var(--text); text-decoration: none; }
.partenaire-aside-list a:hover { color: var(--green); text-decoration: underline; }
.partenaire-aside-loc {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .86rem;
  margin: .6rem 0 0;
}
.partenaire-aside-loc svg { flex-shrink: 0; color: var(--green); }
.partenaire-aside .partenaire-map-wrap { height: 180px; margin-bottom: 0; }
.partenaire-aside .partenaire-areas { margin: .6rem 0 0 0; }
.partenaire-aside .partenaire-activite { margin: .6rem 0 0 0; }

/* Faîtières (logos with text fallback) */
.partenaire-faitieres {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
}
.faitiere-logo { max-height: 38px; max-width: 100%; width: auto; object-fit: contain; }
.faitiere-chip {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  background: var(--green-light);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .25rem .7rem;
}

.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[hidden] { display: none !important; }
.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);
}

/* Content wrapper — lets the image sit beside the text when needed */
.prestation-card-body {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  flex: 1 1 auto;
  min-width: 0;
}

/* Partner page: offre cards become horizontal with the image on the left */
@media (min-width: 560px) {
  .partenaire-body .prestations-list .prestation-card-result {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
  }
  .partenaire-body .prestations-list .prestation-card-image {
    width: 220px;
    flex-shrink: 0;
    margin: 0;
    border-radius: 0;
    aspect-ratio: auto;
    align-self: stretch;
  }
  .partenaire-body .prestations-list .prestation-card-body {
    padding: 1.25rem;
  }
}

.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-type-badge--don       { background: var(--tag-rose);   }

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

/* La devise est une décoration, pas une donnée. Les pages ne stockent qu'un
   nombre nu ; « CHF » est posé ici et sur `.cf-don-price--montant`. Le
   modificateur est indispensable : sans lui la règle s'appliquerait aussi à
   « Gratuit », « Prix libre » et « Sur demande », qui partagent la classe de
   base. L'espace insécable évite un retour à la ligne entre devise et montant
   sur les cartes étroites. */
.prestation-price--montant::before,
.cf-don-price--montant::before {
  content: 'CHF\00a0';
}

.prestation-card-title {
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
  line-height: 1.3;
  color: var(--heading);
}
.prestation-card-title a { color: inherit; }
.prestation-card-title a:hover { color: var(--green); text-decoration: none; }

.prestation-card-image {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: .5rem;
  aspect-ratio: 16 / 9;
  background-color: var(--green-light);
  background-position: center;
  background-repeat: no-repeat;
  /* background-size: contain; */
  background-size: cover;
}

/* ── Product detail page ─────────────────────────────────── */
.produit-detail { max-width: 760px; }
.produit-detail-image { border-radius: var(--radius); overflow: hidden; margin-bottom: 1.25rem; }
.produit-detail-image img { width: 100%; height: auto; display: block; }
.produit-detail-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.produit-detail-desc { font-size: 1rem; line-height: 1.6; color: var(--text); }
.produit-detail-content { margin-top: 1rem; line-height: 1.65; }
.produit-detail-actions { margin-top: 1.75rem; }
.tag--client { background: #eef2f7; color: #3a5a78; }
.produit-contact { margin-top: 2.5rem; padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: #f7f8f6; }
.produit-contact h2 { font-size: 1.15rem; margin: 0 0 .3rem; color: var(--green-dark); }
.produit-contact > p { font-size: .9rem; color: var(--muted); margin: 0 0 1rem; }
.produit-contact .form-field { margin-bottom: .75rem; }
.produit-contact input, .produit-contact textarea { width: 100%; box-sizing: border-box; padding: .5rem .7rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .95rem; font-family: inherit; }

/* Discreet event search (Événements page) */
.ev-search-input {
  flex: 1 1 200px;
  max-width: 340px;
  margin-left: auto;
  padding: .45rem .85rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .85rem;
  font-family: var(--font-ui);
  background: var(--white);
}

.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);
}
/* Simple form modals (contact…): content sits directly in the box, without the
   .modal-header / .modal-body pair that carries the padding elsewhere. */
.modal-box--form { padding: 1.75rem; }
.modal-box--form h2 { margin: 0 2rem .35rem 0; }   /* clear the close button */
.modal-box--form > p { color: var(--muted); margin-bottom: 1.25rem; }
.modal-box--form .form-field { margin-bottom: 1rem; }
.modal-box--form textarea { width: 100%; }
.modal-box--form button[type="submit"] { margin-top: .5rem; }

@media (max-width: 480px) {
  .modal-box--form { padding: 1.25rem; }
}

.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; }

/* ── Modale de sortie vers le site d'un partenaire ─────────── */
/* Les deux actions ont la même largeur et la même hauteur : soutenir la
   plateforme et poursuivre sa route sont deux choix légitimes, et l'un ne
   doit pas être déguisé en évidence. Seul le remplissage les distingue. */
.ls-texte { color: var(--muted); font-size: .9rem; margin: .4rem 0 1.25rem; }
.ls-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.ls-action { flex: 1 1 12rem; text-align: center; }


.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[hidden] { display: none !important; }
.blog-filters { margin-bottom: 1.5rem; }
.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( 170deg, #f5eeeb 50%, #e2c479) !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(--dark-text) !important; letter-spacing: -.025em; font-size: clamp(2rem, 5.5vw, 2.9rem); }
.hero-subtitle { color: var(--dark-text) !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 ─────────────────── */

/* `height: 64px` retiré : la hauteur vient de `--nav-h`, et un second chiffre
   en dur la faisait diverger de la variable dont dépendent les décalages
   d'ancre et la colonne carte. La variable a été portée à 64px. */
.site-nav {
  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);
}

/* ============================================================
   BILLETTERIE / CHECKOUT MODAL
   ============================================================ */

/* Same width as shop modal — reuses .shop-steps / .shop-panel / .shop-subtotal-bar */
.modal-box--checkout { max-width: 480px; }

/* Prevent display:flex on .shop-panel from leaking through [hidden] */
.shop-panel[hidden] { display: none !important; }

/* Event header inside panel */
.checkout-event-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0 0 .2rem;
  line-height: 1.3;
}
.checkout-event-meta {
  font-size: .8rem;
  color: var(--muted);
  margin: 0;
}

/* Billet rows (radio selector) */
.billet-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: .45rem;
  background: var(--white);
  transition: border-color .15s, background .15s;
}
.billet-row:hover { border-color: var(--green); }
.billet-row:has(input:checked) {
  border-color: var(--green);
  background: var(--green-light);
}
.billet-row input[type="radio"] {
  accent-color: var(--green);
  flex-shrink: 0;
  width: 1rem; height: 1rem;
}
.billet-nom  { flex: 1; font-size: .9rem; font-weight: 500; }
.billet-prix { font-size: .875rem; font-weight: 700; color: var(--green-dark); white-space: nowrap; }

/* Ligne de tarif avec son propre compteur — une commande porte plusieurs
   tarifs à la fois. Ce n'est plus une étiquette cliquable (le choix se fait
   avec les boutons + / −), d'où le curseur par défaut et l'absence d'effet au
   survol. La surbrillance suit la quantité commandée (classe posée par
   updateTotal), là où elle suivait auparavant un bouton radio. */
.billet-row--qty { cursor: default; flex-wrap: wrap; }
.billet-row--qty .qty-stepper { flex-shrink: 0; }
.billet-row--qty:hover { border-color: var(--border); }
.billet-row--qty.is-chosen {
  border-color: var(--green);
  background: var(--green-light);
}

/* Quantity row — reuses .qty-stepper + .qty-val already defined in shop section */
.billet-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .875rem;
  color: var(--text);
}

/* Custom amount (solidaire / participation) */
.billet-custom-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .875rem;
  background: var(--green-light);
  border-radius: 6px;
  font-size: .875rem;
}
.billet-custom-row label { white-space: nowrap; }
.billet-custom-row input { flex: 1; max-width: 8rem; }
.billet-custom-row[hidden] { display: none !important; }

/* Buyer name / email fields */
.checkout-buyer-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
@media (max-width: 440px) {
  .checkout-buyer-fields { grid-template-columns: 1fr; }
}

/* Inline error */
.checkout-error {
  color: #c0392b;
  font-size: .82rem;
  padding: .45rem .65rem;
  background: #fff0ee;
  border-radius: 4px;
  border-left: 3px solid #e74c3c;
  margin: 0;
}

/* Secure note under pay button */
.checkout-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-size: .73rem;
  color: var(--muted);
  text-align: center;
}

/* Merci step */
.checkout-merci {
  text-align: center;
  padding: 1.5rem 0 .5rem;
}
.checkout-merci-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--green);
}
.checkout-merci h2 {
  font-size: 1.6rem;
  color: var(--green-dark);
  margin: 0 0 .75rem;
}
.checkout-merci p { color: var(--muted); font-size: .9rem; line-height: 1.65; }

/* "Acheter des billets" button on event card */
.event-card-acheter { margin-top: .75rem; width: 100%; text-align: center; }

/* Partner — équipe / galerie / documents (optional sections) */
.partenaire-equipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.25rem;
}
.partenaire-equipe-card { text-align: center; }
.partenaire-equipe-photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto .6rem;
  display: block;
}
.partenaire-equipe-photo--placeholder {
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-ui);
  display: flex;
  align-items: center;
  justify-content: center;
}
.partenaire-equipe-nom  { font-weight: 600; font-size: .9rem; }
.partenaire-equipe-role { font-size: .8rem; color: var(--muted); }

.partenaire-galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
}
.partenaire-galerie-item { margin: 0; }
.partenaire-galerie-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* ── Galeries : dépliage par lots ────────────────────────── */
/* Posé par le script uniquement : sans JavaScript, rien n'est replié. */
.js-galerie > .is-replie { display: none; }

.galerie-plus-wrap {
  margin: .9rem 0 0;
  text-align: center;
}
/* `.btn` pose display:inline-block, qui l'emporte sur l'attribut `hidden` :
   sans ceci, le bouton reste affiché — vide — quand il n'y a plus rien à
   déplier. Même correctif que .shop-panel, .event-card, .blog-card… */
.js-galerie-plus[hidden] { display: none !important; }
/* Et le paragraphe qui l'entoure ne doit pas laisser sa marge derrière lui. */
.galerie-plus-wrap:has(> [hidden]) { display: none; }

/* La vignette devient un bouton : on neutralise l'apparence native. */
.galerie-loupe {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
}
.galerie-loupe img { transition: transform .18s ease, filter .18s ease; }
.galerie-loupe:hover img,
.galerie-loupe:focus-visible img { transform: scale(1.02); filter: brightness(.94); }
.galerie-loupe:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ── Visionneuse ─────────────────────────────────────────── */
body.visionneuse-ouverte { overflow: hidden; }

.visionneuse {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 24, 18, .92);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .5rem;
  padding: clamp(.75rem, 3vw, 2rem);
}
.visionneuse[hidden] { display: none; }

.visionneuse-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}
.visionneuse-figure img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  display: block;
}
.visionneuse-figure figcaption {
  color: #f2f6ee;
  font-size: .95rem;
  text-align: center;
  max-width: 60ch;
}

.visionneuse-fermer,
.visionneuse-nav {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  transition: background .15s ease;
}
.visionneuse-fermer:hover,
.visionneuse-nav:hover { background: rgba(255, 255, 255, .26); }
.visionneuse-fermer:focus-visible,
.visionneuse-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.visionneuse-nav {
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
}
.visionneuse-fermer {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.75rem;
}
.visionneuse-compteur {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  color: rgba(242, 246, 238, .75);
  font-size: .85rem;
}

/* Sur mobile, les flèches passent sous l'image : à 375 px, deux boutons de
   3 rem sur les côtés ne laissent plus rien à la photo. */
@media (max-width: 600px) {
  .visionneuse {
    grid-template-columns: 1fr;
    grid-template-areas: 'figure' 'nav';
    align-content: center;
  }
  .visionneuse-figure { grid-area: figure; }
  .visionneuse-prec { grid-area: nav; justify-self: start; }
  .visionneuse-suiv { grid-area: nav; justify-self: end; }
  .visionneuse-figure img { max-height: 62vh; }
}

@media (prefers-reduced-motion: reduce) {
  .galerie-loupe img { transition: none; }
  .galerie-loupe:hover img,
  .galerie-loupe:focus-visible img { transform: none; }
}
.partenaire-galerie-item figcaption {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .3rem;
}

.partenaire-docs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.partenaire-docs a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  color: var(--green-dark);
  padding: .45rem .65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color .15s, background .15s;
}
.partenaire-docs a:hover {
  border-color: var(--green);
  background: var(--green-light);
  text-decoration: none;
}

/* Communauté page */
.communaute-don-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
}
.communaute-don-card h2 { margin: 0 0 .5rem; }
.communaute-don-card p  { margin: 0; color: var(--muted); font-size: .92rem; max-width: 560px; }
.communaute-don-actions { flex-shrink: 0; }
@media (max-width: 640px) {
  .communaute-don-card { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
}

/* Event detail page */
.evenement-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  align-items: center;
  margin-bottom: .75rem;
}

/* ============================================================
   PAGE RÔLES (bénévolat) — grille de cartes
   ============================================================ */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.role-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);
}
.role-card:hover { box-shadow: var(--shadow-md); }
.role-card h3 { margin-bottom: 0; }
.role-card-date {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--muted);
  font-size: .82rem;
  font-family: var(--font-ui);
}
.role-card-text {
  color: var(--muted);
  font-size: .9rem;
  flex: 1;                       /* pushes the button to the bottom */
}
.role-card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: .25rem;
}

/* ============================================================
   PAGE CROWDFUNDING
   ============================================================ */
.cf-hero--image {
  background-image: linear-gradient(rgba(20, 35, 25, .55), rgba(20, 35, 25, .55)), var(--hero-bg);
  background-size: cover;
  background-position: center;
}
.cf-hero-kicker {
  font-family: var(--font-ui);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .85;
  margin-bottom: .3rem;
}
.cf-top {
  display: grid;
  /* 380 et non 300 : la colonne porte désormais le montant récolté, les jalons
     et les contreparties en version courte. À 300 px, un titre de contrepartie
     et son bouton ne tenaient pas sur une ligne lisible. */
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 860px) {
  .cf-top { grid-template-columns: 1fr; }
  /* Sur mobile, la colonne passe AVANT le texte : c'est là que se trouvent le
     montant récolté et l'appel à contribuer, et personne ne fait défiler trois
     écrans de présentation pour les découvrir. Demande explicite du client. */
  .cf-top > .cf-aside { order: -1; }
}
.cf-aside-org { display: flex; align-items: center; gap: .75rem; }
.cf-aside-logo {
  width: 56px; height: 56px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: .25rem;
}
.cf-aside-name { font-weight: 700; }
.cf-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
  margin-top: 1.25rem;
}
.cf-gallery-item { margin: 0; }
.cf-gallery-item img {
  width: 100%; aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.cf-gallery-item figcaption {
  font-size: .78rem;
  color: var(--muted);
  font-family: var(--font-ui);
  margin-top: .25rem;
}

/* Récolte — manual amount + milestones (no goal → no progress bar) */
.cf-collected { text-align: center; margin-bottom: 2rem; }
.cf-collected-label {
  font-family: var(--font-ui);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.cf-collected-amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.15;
}
.cf-collected-note { font-size: .8rem; color: var(--muted); font-family: var(--font-ui); }

.cf-milestones {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 560px;
  position: relative;
}
.cf-milestone {
  display: flex;
  gap: .9rem;
  position: relative;
  padding-bottom: 1.4rem;
}
.cf-milestone::before {          /* connecting line */
  content: '';
  position: absolute;
  left: 11px; top: 24px; bottom: 0;
  width: 2px;
  background: var(--border);
}
.cf-milestone:last-child::before { display: none; }
.cf-milestone-dot {
  flex: 0 0 24px;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 1;
}
.cf-milestone.is-reached .cf-milestone-dot {
  background: var(--green-dark);
  border-color: var(--green-dark);
}
.cf-milestone-amount {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .85rem;
  color: var(--muted);
}
.cf-milestone.is-reached .cf-milestone-amount { color: var(--green-dark); }
.cf-milestone-title { font-weight: 700; }
.cf-milestone-text { font-size: .88rem; color: var(--muted); margin: .15rem 0 0; }
.cf-milestone-reached {
  display: inline-block;
  margin-top: .3rem;
  font-size: .75rem;
  font-weight: 700;
  font-family: var(--font-ui);
  color: var(--green-dark);
  background: rgba(58, 124, 78, .12);
  border-radius: 1rem;
  padding: .1rem .6rem;
}

/* Donations grid */
.cf-donations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.cf-don-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition);
}
.cf-don-card:hover { box-shadow: var(--shadow-md); }
.cf-don-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cf-don-body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}
.cf-don-body h3 { margin: 0; }
.cf-don-text { color: var(--muted); font-size: .9rem; flex: 1; margin: 0; }
.cf-don-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-top: .35rem;
}
.cf-don-price { font-weight: 700; font-family: var(--font-ui); color: var(--green-dark); }

/* --- Vidéo de lancement : façade cliquable ------------------ */
/* Aucune iframe tant que le visiteur n'a pas cliqué — voir js/cf-video.js.
   Le ratio est posé sur le cadre pour que la page ne saute pas quand l'iframe
   remplace l'image : les deux occupent exactement la même boîte. */
.cf-video-section { padding: 1.5rem 0 0; }
.cf-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.cf-video iframe,
.cf-video-poster {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.cf-video-poster { object-fit: cover; }
.cf-video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.cf-video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: .88;
  transition: opacity var(--transition), transform var(--transition);
}
.cf-video-play:hover .cf-video-icon,
.cf-video-play:focus-visible .cf-video-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.06);
}

/* --- Colonne de suivi -------------------------------------- */
/* Le montant récolté, les jalons et les contreparties y vivent maintenant :
   elle ne porte plus seulement la fiche organisation. D'où l'élargissement,
   et un montant plus sobre qu'en pleine largeur. */
.cf-aside .cf-collected { margin-bottom: 1.2rem; }
.cf-aside .cf-collected-amount { font-size: 2rem; }
.cf-milestones--aside { max-width: none; margin: 0; }
.cf-milestones--aside .cf-milestone { padding-bottom: 1rem; }
.cf-milestones--aside .cf-milestone-text { font-size: .82rem; }

/* --- Contreparties, version courte ------------------------- */
/* Un sommaire, pas une redite : le texte complet reste sur les cartes du bas,
   vers lesquelles pointe « Voir le détail ». */
.cf-don-minis {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.cf-don-mini {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.cf-don-mini-img {
  width: 48px;
  height: 48px;
  border-radius: .4rem;
  object-fit: cover;
  flex-shrink: 0;
}
/* min-width:0 : sans lui, un titre long refuse de se couper et pousse le
   bouton hors de la colonne au lieu de passer à la ligne. */
.cf-don-mini-body { flex: 1; min-width: 0; }
.cf-don-mini-titre {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  line-height: 1.25;
}
.cf-don-mini-prix {
  display: block;
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 700;
  color: var(--green-dark);
}
.cf-don-mini .btn { flex-shrink: 0; }

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

/* --- Bloc de texte libre de l'accueil ----------------------- */
/* Rendu uniquement si le champ « Bloc de texte sous le bandeau »
   (Accueil → Contenu) est rempli — voir home.html.twig. */
.home-intro {
  padding: 2.5rem 0;
}
.home-intro .container {
  max-width: var(--max-w-narrow);
}
.home-intro p:last-child {
  margin-bottom: 0;
}

/* ── Bons d'achat ──────────────────────────────────────────────────────────
   Saisie d'un code dans les tunnels billetterie et boutique. La ligne du
   récapitulatif est une déduction : même traitement que le don, mais dans
   l'autre sens, d'où la couleur neutre plutôt que le vert « ajout ». */
.bon-achat { margin: .9rem 0; }

.bon-achat-ouvrir {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 600;
  color: var(--green); text-decoration: underline;
}
.bon-achat-ouvrir:hover { opacity: .8; }

.bon-achat-champs { margin-top: .6rem; }
.bon-achat-label { display: block; font-size: .85rem; margin-bottom: .3rem; }

.bon-achat-ligne { display: flex; gap: .5rem; flex-wrap: wrap; }
.bon-achat-ligne input {
  flex: 1 1 11rem; min-width: 0;
  padding: .55rem .7rem;
  border: 1px solid var(--border, #ddd); border-radius: 6px;
  font: inherit; text-transform: uppercase; letter-spacing: .06em;
}
.bon-achat-ligne .btn { flex: 0 0 auto; }

.bon-achat-msg { margin: .45rem 0 0; font-size: .85rem; }
.bon-achat-msg--ok { color: var(--green); font-weight: 600; }
.bon-achat-msg--erreur { color: #9c3412; }

/* `[hidden]` perd contre une règle de classe qui pose `display` — piège déjà
   rencontré sur la galerie et le bouton « charger plus ». */
.bon-achat-champs[hidden],
.totals-row--bon[hidden],
.bon-achat-msg[hidden] { display: none !important; }

.totals-row--bon, .order-row--bon { color: var(--muted, #666); font-weight: 600; }
