/* FICHIER GÉNÉRÉ — ne pas éditer. Source : static/css/app-communaute.css puis
 * static/css/app-repertoire.css (règles qui peuvent s'appliquer au SITE, ordre d'origine).
 * Régénérer : python manage.py build_site_css — règle et garde-fous : common/css_layers.py. */

/* ── css/app-communaute.css ── */
.g4g-notifs { list-style: none; margin: 0; padding: 0; }
.g4g-notifs.g4g-card { border-radius: var(--g4g-radius-md); }
.g4g-notif { border-radius: var(--g4g-radius-sm); }
.g4g-notif + .g4g-notif { border-top: 1px solid var(--g4g-border); }
.g4g-notif--unread { background: var(--g4g-primary-tint); }
.g4g-notif__link {
  display: flex;
  align-items: flex-start;
  gap: var(--g4g-space-3);
  padding: var(--g4g-space-3);
  border-radius: var(--g4g-radius-sm);
  text-decoration: none;
  color: inherit;
}
.g4g-notif__link:hover { background: var(--g4g-surface-sunken); }
.g4g-notif__link:focus-visible { outline: 2px solid var(--g4g-accent); outline-offset: -2px; }
.g4g-notif__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: var(--g4g-radius-pill);
  background: var(--g4g-surface-sunken);
  background: color-mix(in srgb, var(--notif-color, var(--g4g-text-muted)) 15%, transparent);
  color: var(--notif-color, var(--g4g-text-muted));
}
.g4g-notif__badge svg { width: 19px; height: 19px; }
.g4g-notif__initials { font-size: var(--g4g-text-sm); font-weight: var(--g4g-weight-semibold); }
.g4g-notif--reaction { --notif-color: var(--g4g-danger); }
.g4g-notif--comment { --notif-color: var(--g4g-prosperity); }
.g4g-notif--mention { --notif-color: var(--g4g-accent); }
.g4g-notif--connection_request,
.g4g-notif--connection_accepted,
.g4g-notif--new_follower { --notif-color: var(--g4g-primary); }
.g4g-notif--message,
.g4g-notif--sector_announcement,
.g4g-notif--digest { --notif-color: var(--g4g-accent); }
.g4g-notif--review_received,
.g4g-notif--membership_granted { --notif-color: var(--g4g-purpose); }
.g4g-notif--claim_approved,
.g4g-notif--listing_published,
.g4g-notif--content_approved { --notif-color: var(--g4g-success); }
.g4g-notif--claim_rejected,
.g4g-notif--content_removed { --notif-color: var(--g4g-danger); }
.g4g-notif--revision_suggested,
.g4g-notif--revision_reply,
.g4g-notif--revision_decided { --notif-color: var(--g4g-primary); }
.g4g-notif__badge.g4g-notif--revision_suggested,
.g4g-notif__badge.g4g-notif--revision_reply,
.g4g-notif__badge.g4g-notif--revision_decided { background: var(--g4g-primary-soft); color: var(--g4g-primary); }
.g4g-notif__badge.g4g-notif--revision-accepted { background: var(--g4g-success-tint); color: var(--g4g-success-text); }
.g4g-notif__badge.g4g-notif--revision-rejected { background: var(--g4g-danger-tint); color: var(--g4g-danger); }
.g4g-notif__target { font-weight: var(--g4g-weight-semibold); color: var(--g4g-text); }
.g4g-notif__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.g4g-notif__text { font-size: var(--g4g-text-sm); line-height: var(--g4g-leading-snug); color: var(--g4g-text); }
.g4g-notif__actor { font-weight: var(--g4g-weight-semibold); color: var(--g4g-primary); }
.g4g-notif__time { font-size: var(--g4g-text-xs); color: var(--g4g-text-subtle); }
.g4g-notif__dot {
  width: 8px;
  height: 8px;
  flex: none;
  margin-top: 13px;
  border-radius: var(--g4g-radius-pill);
  background: var(--g4g-accent);
}
.g4g-bell { position: relative; }
.g4g-bell-panel {
  width: min(360px, calc(100vw - var(--g4g-space-8)));
  padding: var(--g4g-space-2);
  animation: g4g-panel-in 0.22s ease both;
}
.g4g-bell-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--g4g-space-2) var(--g4g-space-3) var(--g4g-space-1);
}
.g4g-bell-panel__title {
  font-size: var(--g4g-text-xs);
  font-weight: var(--g4g-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--g4g-tracking-caps);
  color: var(--g4g-text-subtle);
}
.g4g-bell-panel__count { font-size: var(--g4g-text-xs); font-weight: var(--g4g-weight-bold); color: var(--g4g-accent); }
.g4g-bell-panel__all {
  display: block;
  padding: var(--g4g-space-3);
  border-top: 1px solid var(--g4g-border);
  color: var(--g4g-primary);
  font-size: var(--g4g-text-sm);
  font-weight: var(--g4g-weight-semibold);
  text-align: center;
  text-decoration: none;
}
.g4g-bell-panel__all:hover { background: var(--g4g-surface-sunken); }
.g4g-post__actions {
  display: flex;
  align-items: center;
  gap: var(--g4g-space-4);
  margin-top: var(--g4g-space-3);
  padding-top: var(--g4g-space-3);
  border-top: 1px solid var(--g4g-border);
}
.g4g-react-picker__pop {
  position: absolute;
  left: 0;
  bottom: calc(100% + var(--g4g-space-1));
  z-index: var(--g4g-z-dropdown);
  display: flex;
  gap: var(--g4g-space-1);
  padding: var(--g4g-space-1);
  background: var(--g4g-surface);
  border: 1px solid var(--g4g-border);
  border-radius: var(--g4g-radius-pill);
  box-shadow: var(--g4g-shadow-md);
  animation: g4g-panel-in 0.22s ease both;
}
.g4g-react-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: var(--g4g-space-2);
  border: none;
  border-radius: var(--g4g-radius-pill);
  background: transparent;
  color: var(--react, var(--g4g-text-muted));
  cursor: pointer;
}
.g4g-react-opt:hover,
.g4g-react-opt[aria-pressed="true"] { background: var(--g4g-surface-sunken); }
.g4g-react-opt:focus-visible { outline: none; box-shadow: var(--g4g-focus-ring); }
.g4g-space { display: grid; gap: var(--g4g-space-4); }
.g4g-space__name { margin: 0; font-size: var(--g4g-text-xl); font-weight: var(--g4g-weight-bold); color: var(--g4g-primary); }
.g4g-space__desc { margin: var(--g4g-space-2) 0 0; font-size: var(--g4g-text-sm); color: var(--g4g-text-muted); }
.g4g-convs { list-style: none; margin: 0; padding: 0; }

/* ── css/app-repertoire.css ── */
.g4g-ac { position: relative; }
.g4g-ac__wrap { position: absolute; top: calc(100% + var(--g4g-space-2)); left: 0; width: 100%; z-index: var(--g4g-z-dropdown); }
.g4g-ac__panel {
  padding: var(--g4g-space-2);
  border: 1px solid var(--g4g-border);
  border-radius: var(--g4g-radius-md);
  background: var(--g4g-surface);
  box-shadow: var(--g4g-shadow-lg);
  animation: g4g-panel-in 0.22s ease both;
}
.g4g-ac__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--g4g-space-2) var(--g4g-space-3) var(--g4g-space-1);
}
.g4g-ac__head-label,
.g4g-ac__head--filters {
  font-size: var(--g4g-text-xs);
  font-weight: var(--g4g-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--g4g-tracking-caps);
  color: var(--g4g-text-subtle);
}
.g4g-ac__head--filters { padding: var(--g4g-space-3) var(--g4g-space-3) var(--g4g-space-2); }
.g4g-ac__count { font-size: var(--g4g-text-xs); font-weight: var(--g4g-weight-bold); color: var(--g4g-accent); }
.g4g-ac__list { list-style: none; margin: 0; padding: 0; }
.g4g-ac__option {
  display: flex;
  align-items: center;
  gap: var(--g4g-space-3);
  padding: var(--g4g-space-2) var(--g4g-space-3);
  border-radius: var(--g4g-radius-sm);
  cursor: pointer;
}
.g4g-ac__option:hover { background: var(--g4g-surface-sunken); }
.g4g-ac__option--active {
  background: var(--g4g-surface-sunken);
  box-shadow: inset 0 0 0 1.5px var(--g4g-accent);
}
.g4g-ac__wrap[hidden] { display: none; }
.g4g-selsearch .g4g-ac__list { max-height: 16rem; overflow-y: auto; }
.g4g-ac__option--empty { color: var(--g4g-text-subtle); cursor: default; }
.g4g-ac__option--empty:hover { background: none; }
.g4g-selsearch--multi .g4g-selsearch__control {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--g4g-space-2);
  height: auto; min-height: 42px; padding: var(--g4g-space-2); cursor: text;
}
.g4g-selsearch__field {
  flex: 1; min-width: 6rem; border: none; outline: none; background: none;
  padding: 0 var(--g4g-space-1); font: inherit; color: var(--g4g-text);
}
.g4g-selsearch__chip {
  display: inline-flex; align-items: center; gap: var(--g4g-space-1);
  padding: 2px 2px 2px var(--g4g-space-3);
  background: var(--g4g-primary-soft); color: var(--g4g-primary);
  border-radius: var(--g4g-radius-pill);
  font-size: var(--g4g-text-sm); font-weight: var(--g4g-weight-semibold);
}
.g4g-selsearch__chip-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border: none; border-radius: var(--g4g-radius-pill);
  background: none; color: var(--g4g-primary); font-size: 16px; line-height: 1; cursor: pointer;
}
.g4g-selsearch__chip-x:hover { background: color-mix(in srgb, var(--g4g-primary) 15%, transparent); }
.g4g-ac__thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: var(--g4g-radius-sm);
  background: var(--g4g-surface-alt);
  color: var(--g4g-text-subtle);
  font-size: var(--g4g-text-xs);
  font-weight: var(--g4g-weight-bold);
}
.g4g-ac__body { flex: 1; min-width: 0; }
.g4g-ac__name {
  display: block;
  font-size: var(--g4g-text-sm);
  font-weight: var(--g4g-weight-semibold);
  color: var(--g4g-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.g4g-ac__name mark {
  background: var(--g4g-accent-tint);
  color: inherit;
  font-weight: var(--g4g-weight-bold);
  border-radius: 3px;
  padding: 0 1px;
}
.g4g-ac__cat { display: block; font-size: var(--g4g-text-xs); color: var(--g4g-text-subtle); }
.g4g-ac__tail { flex: none; display: inline-flex; align-items: center; }
.g4g-ac__arrow { color: var(--g4g-text-subtle); }
.g4g-ac__enter { display: none; }
.g4g-ac__option--active .g4g-ac__enter { display: inline-block; }
.g4g-ac__option--active .g4g-ac__arrow { display: none; }
.g4g-ac__enter,
.g4g-ac__kbd {
  border: 1px solid var(--g4g-border-strong);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: var(--g4g-text-xs);
  font-weight: var(--g4g-weight-semibold);
  color: var(--g4g-text-muted);
  line-height: 1.4;
}
.g4g-ac__enter { border-color: var(--g4g-accent); color: var(--g4g-accent); }
.g4g-ac__chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 var(--g4g-space-3) var(--g4g-space-2); }
.g4g-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--g4g-border);
  border-radius: var(--g4g-radius-pill);
  background: var(--g4g-surface-sunken);
  color: var(--g4g-text);
  font-size: var(--g4g-text-xs);
  font-weight: var(--g4g-weight-semibold);
  text-decoration: none;
}
.g4g-chip:hover { border-color: var(--g4g-primary); color: var(--g4g-primary); }
.g4g-chip:focus-visible { outline: none; box-shadow: var(--g4g-focus-ring); }
.g4g-ac__sep { height: 1px; margin: var(--g4g-space-2) var(--g4g-space-1); background: var(--g4g-border); }
.g4g-ac__all {
  display: flex;
  align-items: center;
  gap: var(--g4g-space-3);
  padding: 11px var(--g4g-space-3);
  border-radius: var(--g4g-radius-sm);
  color: var(--g4g-primary);
  text-decoration: none;
}
.g4g-ac__all:hover { background: var(--g4g-surface-sunken); }
.g4g-ac__all-label { flex: 1; font-size: var(--g4g-text-sm); font-weight: var(--g4g-weight-semibold); }
.g4g-ac__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: var(--g4g-space-2) var(--g4g-space-3) var(--g4g-space-1);
  font-size: var(--g4g-text-xs);
  color: var(--g4g-text-subtle);
}
.g4g-listings { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--g4g-space-4); }
.g4g-fgrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--g4g-space-5);
}
.g4g-fcard {
  display: flex;
  flex-direction: column;
  gap: var(--g4g-space-3);
  padding: var(--g4g-space-5);
  border: 1px solid var(--g4g-border);
  border-radius: 20px;
  background: var(--g4g-surface);
  box-shadow: var(--g4g-shadow-sm);
}
.g4g-fcard:hover { border-color: var(--g4g-border-strong); box-shadow: var(--g4g-shadow-md); }
.g4g-fcard__top { display: flex; align-items: flex-start; gap: var(--g4g-space-3); }
.g4g-fcard__icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: var(--g4g-radius-sm);
  background: var(--g4g-primary-soft);
  color: var(--g4g-primary);
  overflow: hidden;
}
.g4g-fcard__icon img { width: 100%; height: 100%; object-fit: cover; }
.g4g-fcard__id { flex: 1; min-width: 0; }
.g4g-fcard__name {
  margin: 0;
  font-size: var(--g4g-text-md);
  font-weight: var(--g4g-weight-semibold);
  letter-spacing: -0.012em;
  line-height: 1.25;
}
.g4g-fcard__name a { color: var(--g4g-primary); text-decoration: none; }
.g4g-fcard__name a:hover { text-decoration: underline; }
.g4g-fcard__meta { margin: 4px 0 0; font-size: var(--g4g-text-xs); color: var(--g4g-text-subtle); }
.g4g-fcard__actions { display: flex; align-items: center; gap: var(--g4g-space-2); flex: none; }
.g4g-fcard__sceau {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: var(--g4g-radius-pill);
  background: var(--g4g-primary);
  color: var(--g4g-primary-contrast);
}
.g4g-fcard__engagement { margin: 0; font-size: var(--g4g-text-sm); line-height: 1.55; color: var(--g4g-text-muted); text-wrap: pretty; }
.g4g-fcard__claim { display: flex; align-items: center; gap: var(--g4g-space-3); flex-wrap: wrap; margin: 0; }
.g4g-fcard__claim a { color: var(--g4g-primary); font-size: var(--g4g-text-xs); font-weight: var(--g4g-weight-semibold); }
.g4g-fcard__foot {
  margin-top: auto;
  padding-top: var(--g4g-space-3);
  border-top: 1px solid var(--g4g-border);
  display: flex;
  align-items: center;
  gap: var(--g4g-space-2);
  flex-wrap: wrap;
}
.g4g-fcard__odd { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--g4g-space-1); flex-wrap: wrap; }
.g4g-fcard__cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--g4g-text-sm);
  font-weight: var(--g4g-weight-semibold);
  color: var(--g4g-accent);
  text-decoration: none;
  white-space: nowrap;
}
.g4g-fcard__cta:hover { text-decoration: underline; }
.g4g-loadmore { display: flex; justify-content: center; margin-top: clamp(34px, 4vw, 52px); }
.g4g-loadmore:empty { display: none; }
.g4g-loadmore__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--g4g-space-2);
  min-height: 52px;
  padding: 15px 30px;
  border: 1.5px solid var(--g4g-primary);
  border-radius: var(--g4g-radius-pill);
  background: transparent;
  color: var(--g4g-primary);
  font-size: var(--g4g-text-md);
  font-weight: var(--g4g-weight-semibold);
  text-decoration: none;
  cursor: pointer;
}
.g4g-loadmore__btn:hover { background: var(--g4g-primary-soft); }
.g4g-loadmore__btn:focus-visible { outline: none; box-shadow: var(--g4g-focus-ring); }
.g4g-loadmore__btn.htmx-request { opacity: 0.6; pointer-events: none; }
.g4g-filtermodal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: auto;
  padding: var(--g4g-space-5);
  border-radius: var(--g4g-radius-lg);
  background: var(--g4g-surface);
  box-shadow: var(--g4g-shadow-lg);
}
html.g4g-modal-open { overflow: hidden; }
.g4g-map-popup a,
.g4g-map-popup a:hover { font-weight: var(--g4g-weight-semibold); color: var(--g4g-primary); text-decoration: none; }
#g4g-results.htmx-request {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.g4g-filters__section { border: none; margin: 0 0 var(--g4g-space-4); padding: 0; }
.g4g-filters__legend { padding: 0; margin-bottom: var(--g4g-space-2); color: var(--g4g-text-subtle); font-size: var(--g4g-text-xs); font-weight: var(--g4g-weight-semibold); text-transform: uppercase; letter-spacing: .07em; }
.g4g-filters__range { width: 100%; accent-color: var(--g4g-primary); }
.g4g-minimap {
  position: relative;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--g4g-surface-sunken);
  background-image: linear-gradient(var(--g4g-border) 1px, transparent 1px), linear-gradient(90deg, var(--g4g-border) 1px, transparent 1px);
  background-size: 30px 30px;
}
.g4g-bar-w-0 { width: 0; }
.g4g-bar-w-10 { width: 10%; }
.g4g-bar-w-20 { width: 20%; }
.g4g-bar-w-30 { width: 30%; }
.g4g-bar-w-40 { width: 40%; }
.g4g-bar-w-50 { width: 50%; }
.g4g-bar-w-60 { width: 60%; }
.g4g-bar-w-70 { width: 70%; }
.g4g-bar-w-80 { width: 80%; }
.g4g-bar-w-90 { width: 90%; }
.g4g-bar-w-100 { width: 100%; }
.g4g-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--g4g-space-3); }
.g4g-contact li { display: flex; align-items: center; gap: var(--g4g-space-3); font-size: var(--g4g-text-sm); color: var(--g4g-text-muted); }
.g4g-fiche-edit__nav-item {
  display: flex;
  align-items: center;
  gap: var(--g4g-space-2);
  padding: var(--g4g-space-2) var(--g4g-space-3);
  border-radius: var(--g4g-radius-sm);
  color: var(--g4g-text-muted);
  font-size: var(--g4g-text-sm);
  font-weight: var(--g4g-weight-medium);
  text-decoration: none;
}
.g4g-fiche-edit__nav-item:hover { background: var(--g4g-surface-sunken); color: var(--g4g-text); }
.g4g-fiche-edit__nav-item:focus-visible { outline: none; box-shadow: var(--g4g-focus-ring); }
.g4g-fiche-edit__nav-item--active {
  background: var(--g4g-primary-tint);
  color: var(--g4g-primary);
  font-weight: var(--g4g-weight-semibold);
}
.g4g-charcount--over { color: var(--g4g-danger); font-weight: var(--g4g-weight-semibold); }
.g4g-sdg-grid { display: flex; flex-wrap: wrap; gap: var(--g4g-space-2); }
