/* ================================================================
   Sourdosphère — pages-refonte.css
   Membres, annuaire, événements, inviter + filtres communs.
   Chargé après refonte.css.
   ================================================================ */

/* ── Filtres (membres, annuaire, événements, emplois, trocs) ───── */
.jobs-filters {
    display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
    background: #fff; border: 1px solid var(--card-border, #E6E4DC); border-radius: 14px;
    padding: .85rem; margin: 1rem 0;
}
.jobs-filters__search { position: relative; flex: 1 1 100%; display: flex; align-items: center; }
.jobs-filters__search svg { left: 14px; }
.jobs-filters__search-input {
    width: 100%; height: 46px; box-sizing: border-box; padding: 0 1rem 0 2.6rem;
    background: #F7F6F2; border: 1.5px solid transparent; border-radius: 12px; font-size: .98rem;
}
.jobs-filters__search-input:focus { background: #fff; border-color: #1D9E75; outline: none; box-shadow: 0 0 0 3px rgba(29,158,117,.16); }
.jobs-filters__select {
    height: 40px; padding: 0 2rem 0 .9rem; border: 1.5px solid #E6E4DC; border-radius: 999px;
    background-color: #fff; font-size: .9rem; font-weight: 500; color: #1e2a24; cursor: pointer; flex: 0 1 auto;
}
.jobs-filters__select:hover { border-color: #1D9E75; }
.jobs-filters__remote {
    display: inline-flex; align-items: center; gap: .45rem; height: 40px; padding: 0 .9rem;
    border: 1.5px solid #E6E4DC; border-radius: 999px; background: #fff; cursor: pointer;
}
.jobs-filters__remote:has(input:checked) { border-color: #1D9E75; background: #E1F5EE; }
.jobs-filters .btn { height: 40px; border-radius: 999px; padding: 0 1.2rem; margin-left: auto; }
.jobs-filters__reset { font-size: .85rem; color: #4a5a52; }
.jobs-list__count { font-size: .9rem; color: #4a5a52; font-weight: 500; margin: .25rem 0 .75rem; }

/* ── Membres ───────────────────────────────────────────────────── */
.members-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.member-card {
    flex-direction: row; align-items: center; gap: 1rem; border: 1px solid var(--card-border, #E6E4DC);
    border-left-width: 1px; border-radius: 14px; padding: 1rem 1.1rem;
}
.member-card:hover { border-color: #1D9E75; box-shadow: 0 6px 20px rgba(26,58,46,.08); }
.member-card__link { flex-direction: row; align-items: center; text-align: left; gap: 1rem; min-width: 0; }
.member-card__avatar { width: 64px; height: 64px; margin: 0; flex: 0 0 64px; border: 2px solid #E1F5EE; }
.member-card__main { min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.member-card__name { font-size: 1.02rem; font-weight: 600; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-card__type { font-size: .82rem; color: #4a5a52; margin: 0; }
.member-card__chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .15rem; }
.member-card__chips .pf-chip { font-size: .72rem; padding: .12rem .55rem; }
.member-card__bio { font-size: .85rem; color: #4a5a52; margin: .25rem 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.member-card__follow-form { margin: 0; flex: 0 0 auto; }
.member-card__follow-form .btn { width: auto; min-width: 92px; border-radius: 999px; }
@media (max-width: 760px) {
    .members-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .member-card { flex-wrap: wrap; padding: .9rem; }
    .member-card__link { flex: 1 1 100%; }
    .member-card__follow-form { flex: 1 1 100%; }
    .member-card__follow-form .btn { width: 100%; }
    .members-grid { gap: .7rem; }
    .member-card__avatar { width: 56px; height: 56px; flex-basis: 56px; }
}

/* ── Annuaire ──────────────────────────────────────────────────── */
.jobs-list:has(.directory-card) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; align-items: stretch; }
.jobs-list:has(.directory-card) > .jobs-list__count, .jobs-list:has(.directory-card) > .pagination, .jobs-list:has(.directory-card) > .empty-state { grid-column: 1 / -1; }
.directory-card {
    display: flex; flex-direction: column; gap: .7rem; background: #fff; text-decoration: none; color: inherit;
    border: 1px solid var(--card-border, #E6E4DC); border-radius: 14px; padding: 1.1rem 1.2rem; margin: 0;
    transition: border-color .15s, box-shadow .15s;
}
.directory-card:hover { border-color: #1D9E75; box-shadow: 0 6px 20px rgba(26,58,46,.08); text-decoration: none; }
.directory-card__type-badge { align-self: flex-start; width: auto; border-radius: 999px; padding: .25rem .75rem; font-size: .78rem; font-weight: 600; }
.directory-card__body { flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.directory-card__name { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; color: #1a3a2e; margin: 0; }
.directory-card__desc { color: #4a5a52; font-size: .9rem; line-height: 1.55; margin: 0; }
.directory-card__footer { margin-top: auto; padding-top: .7rem; border-top: 1px solid #F0EEE7; display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.directory-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .82rem; color: #4a5a52; }
@media (max-width: 760px) { .jobs-list:has(.directory-card) { grid-template-columns: 1fr; } }

/* ── Événements ────────────────────────────────────────────────── */
.event-card {
    border: 1px solid var(--card-border, #E6E4DC); border-radius: 14px; padding: 1.1rem 1.2rem; gap: 1.1rem; margin-bottom: .85rem;
    align-items: stretch; position: relative;
}
.event-card:hover { border-color: #1D9E75; box-shadow: 0 6px 20px rgba(26,58,46,.08); }
.event-card__cal {
    width: 64px; min-width: 64px; background: #E1F5EE; border-radius: 14px; justify-content: center; padding: .55rem 0; align-self: flex-start;
}
.event-card__cal-month { background: transparent; color: #0a6b4e; font-size: .72rem; padding: 0; letter-spacing: .06em; }
.event-card__cal-day { color: #1a3a2e; font-size: 1.8rem; font-weight: 600; line-height: 1.05; padding: .1rem 0 0; }
.event-card__cal-today { background: #1D9E75; color: #072016; border-radius: 999px; width: auto; padding: 1px 8px; margin-top: .25rem; font-size: .62rem; }
.event-card__cal-past { background: #8a948f; border-radius: 999px; width: auto; padding: 1px 8px; margin-top: .25rem; }
.event-card__title { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; color: #1a3a2e; }
.event-card__desc { color: #4a5a52; }
.event-card__meta-item { color: #4a5a52; font-size: .82rem; }
.event-card__photo { width: 132px; height: auto; min-height: 96px; align-self: stretch; border-radius: 12px; border: 0; }
.event-card--partner { border: 1px solid #E9D48A; box-shadow: none; background: #FFFDF5; padding-top: 1.1rem; }
.event-card__partner-ribbon { position: static; display: inline-block; align-self: flex-start; background: #FAEEDA; color: #633806; border-radius: 999px; padding: .15rem .65rem; font-size: .72rem; margin-bottom: .2rem; }
.event-card--partner { flex-wrap: wrap; }
.event-card--partner .event-card__partner-ribbon { flex: 1 1 100%; margin: 0 0 .1rem; }
.events-view-toggle { border-radius: 999px; border-color: #E6E4DC; background: #fff; }
.events-view-toggle__btn { border-radius: 999px; font-weight: 600; }
.events-view-toggle__btn--active { background: #1a3a2e; color: #fff; }
.events-map { border-radius: 14px; overflow: hidden; border: 1px solid #E6E4DC; }

/* Mes événements : repliable */
.my-trades-banner--fold { background: #fff; border: 1px solid var(--card-border, #E6E4DC); border-radius: 14px; padding: 0; margin-bottom: 1rem; }
.my-trades-banner--fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem; }
.my-trades-banner--fold > summary::-webkit-details-marker { display: none; }
.my-trades-banner--fold > summary::before { content: '▸'; color: #0a6b4e; margin-right: .5rem; transition: transform .15s; }
.my-trades-banner--fold[open] > summary::before { transform: rotate(90deg); }
.my-trades-banner--fold .my-trades-banner__title { flex: 1; font-weight: 600; color: #1a3a2e; }
.my-trades-banner__count { display: inline-block; background: #E1F5EE; color: #0a6b4e; border-radius: 999px; padding: 0 .55rem; font-size: .78rem; margin-left: .35rem; }
.my-trades-banner--fold .my-trades-banner__list { flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 0 1rem .6rem; border-top: 1px solid #F0EEE7; }
.my-trades-banner--fold .my-trades-banner__item { border: 0; border-bottom: 1px solid #F0EEE7; border-radius: 0; padding: .6rem 0; justify-content: space-between; background: transparent; }
.my-trades-banner--fold .my-trades-banner__item:last-child { border-bottom: 0; }
.my-trades-banner--fold .my-trades-banner__item-title { max-width: none; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) {
    .event-card { flex-wrap: wrap; }
    .event-card__photo { display: block; flex: 1 1 100%; width: 100%; height: 160px; order: -1; }
    .event-card__cal { flex: 0 0 56px; }
}

/* ── Inviter ───────────────────────────────────────────────────── */
.invite-page--wide { max-width: 100%; padding-top: 0; }
.invite-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.invite-card { border: 1px solid var(--card-border, #E6E4DC); border-radius: 14px; padding: 1.5rem; }
.invite-side { display: flex; flex-direction: column; gap: 1rem; }
.invite-side__title { font-size: 1.05rem; font-weight: 600; color: #1a3a2e; margin: 0 0 .5rem; letter-spacing: -0.01em; }
.invite-side__text { color: #4a5a52; font-size: .9rem; line-height: 1.55; margin: 0 0 1rem; }
.invite-link { display: flex; gap: .5rem; align-items: stretch; margin-bottom: .9rem; }
.invite-link .form__input { flex: 1; min-width: 0; height: 42px; border-radius: 10px; font-size: .88rem; background: #F7F6F2; }
.invite-link .btn { border-radius: 10px; height: 42px; white-space: nowrap; }
.invite-share { display: flex; flex-wrap: wrap; gap: .5rem; }
.invite-share__btn { display: inline-flex; align-items: center; height: 38px; padding: 0 1rem; border: 1.5px solid #1a3a2e; border-radius: 999px; color: #1a3a2e; font-weight: 600; font-size: .88rem; text-decoration: none; }
.invite-share__btn:hover { background: #1a3a2e; color: #fff; text-decoration: none; }
.invite-card--why { background: #E1F5EE; border-color: #9FE1CB; }
.invite-why { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.invite-why li { position: relative; padding-left: 1.6rem; color: #1a3a2e; font-size: .92rem; line-height: 1.45; }
.invite-why li::before { content: ''; position: absolute; left: 0; top: .25rem; width: 1rem; height: 1rem; border-radius: 50%; background: #1D9E75 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/70% no-repeat; }
.invite-card--form .form__input { border-radius: 12px; }
.invite-card--form .btn { border-radius: 12px; }
@media (max-width: 860px) { .invite-grid { grid-template-columns: 1fr; } }

/* Filtres : pleine largeur sur mobile */
@media (max-width: 600px) {
  .jobs-filters { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
  .jobs-filters__search { grid-column: 1 / -1; width: 100%; }
  .jobs-filters__search-input { width: 100%; max-width: none; }
  .jobs-filters__select { grid-column: 1 / -1; width: 100%; max-width: none; }
  .jobs-filters__remote { width: 100%; justify-content: flex-start; }
  .jobs-filters__reset { grid-column: 1 / -1; text-align: center; }
  .jobs-filters .btn { grid-column: 1 / -1; width: 100%; margin-left: 0; }
}


/* ================================================================
   FORUM
   ================================================================ */
.forum-page { gap: 1rem; }
.forum-hero { background: #1a3a2e; border-radius: 14px; padding: 1.5rem 1.75rem; }
.forum-hero__title { font-size: 1.5rem; letter-spacing: -.02em; }
.forum-hero__sub { font-size: .95rem; color: rgba(255,255,255,.78); }
.forum-hero__stats { gap: .5rem; }
.forum-hero__stat { display: inline-flex; align-items: baseline; gap: .35rem; background: rgba(255,255,255,.1); border-radius: 999px; padding: .3rem .8rem; }
.forum-hero__stat-number { display: inline; font-size: 1rem; }
.forum-hero__stat-label { font-size: .8rem; color: rgba(255,255,255,.8); }
.forum-hero .btn--primary { height: 42px; border-radius: 10px; }

.forum-search { border-radius: 14px; border-color: #E6E4DC; align-items: center; padding: .7rem; }
.forum-search .jobs-filters__search-input { height: 42px; }
.forum-search .btn { height: 42px; border-radius: 999px; padding: 0 1.2rem; }

.forum-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.forum-cat-card {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: .35rem 1rem; align-items: start;
  border-radius: 14px; border-color: #E6E4DC; padding: 1.15rem 1.25rem; position: relative;
  transition: border-color .15s, transform .15s;
}
.forum-cat-card:hover { border-color: #1D9E75; box-shadow: none; }
.forum-cat-card__icon { grid-row: 1 / span 2; width: 56px; height: 56px; background: #E1F5EE; border-radius: 14px; font-size: 1.7rem; }
.forum-cat-card__name { font-size: 1.05rem; font-weight: 700; color: #1a3a2e; margin: 0 0 .15rem; }
.forum-cat-card__name::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.forum-cat-card__desc { font-size: .88rem; color: #4a5a52; line-height: 1.5; margin: 0; }
.forum-cat-card__stats {
  grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start;
  gap: .4rem; min-width: 0; text-align: left; padding: .6rem 0 0; margin-top: .25rem; border-top: 1px solid #EEECE5;
}
.forum-cat-card__stat { background: #F7F6F2; border-radius: 999px; padding: .15rem .65rem; }
.forum-cat-card__stat-number { font-size: .9rem; }
.forum-cat-card__stat-label { font-size: .8rem; color: #4a5a52; }
.forum-cat-card__last { font-size: .8rem; color: #6b756f; margin-left: auto; }

.forum-breadcrumb { font-size: .88rem; }
.forum-cat-header { border-radius: 14px; border-color: #E6E4DC; padding: 1.25rem 1.5rem; gap: 1rem; }
.forum-cat-header__icon { width: 56px; height: 56px; background: #E1F5EE; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; }
.forum-cat-header__title { font-size: 1.35rem; color: #1a3a2e; letter-spacing: -.02em; }
.forum-cat-header__desc { font-size: .92rem; color: #4a5a52; }

.forum-section { background: transparent; border: 0; padding: 0; box-shadow: none; }
.forum-topics-list { gap: .6rem; }
.forum-topic-row, .forum-section .forum-topic-row {
  background: #fff; border: 1px solid #E6E4DC; border-radius: 14px; padding: 1rem 1.15rem;
}
.forum-topic-row:hover { border-color: #1D9E75; background: #fff; }
.forum-topic-row:last-child { border-bottom: 1px solid #E6E4DC; }
.forum-topic-row--pinned { background: #F3FBF7; border-color: #9FE1CB; }
.forum-topic-row__icon { width: 38px; height: 38px; border-radius: 10px; background: #F7F6F2; align-items: center; justify-content: center; }
.forum-topic-row--pinned .forum-topic-row__icon { background: #E1F5EE; }
.forum-topic-row__title { font-size: 1rem; font-weight: 600; color: #1a3a2e; }
.forum-topic-row__meta { font-size: .82rem; color: #4a5a52; }
.forum-topic-row__stat, .forum-topic-row__last { font-size: .85rem; color: #4a5a52; }
@media (max-width: 700px) {
  .forum-categories { grid-template-columns: 1fr; }
  .forum-topic-row { flex-wrap: wrap; }
  .forum-topic-row__stats { width: 100%; padding-left: 3.4rem; }
  .forum-hero { padding: 1.25rem; }
}

.forum-topic-header { border-radius: 14px; border-color: #E6E4DC; }
.forum-topic-header__title { color: #1a3a2e; letter-spacing: -.02em; }
.forum-topic-header__meta { color: #4a5a52; font-size: .9rem; }
.forum-action-btn { border-radius: 999px; }
.forum-posts { gap: .75rem; display: flex; flex-direction: column; }
.forum-post { border-radius: 14px; border-color: #E6E4DC; }
.forum-post--op { border-color: #9FE1CB; background: #fff; }
.forum-post__author-name { color: #1a3a2e; font-weight: 600; }
.forum-post__content { font-size: 1rem; line-height: 1.65; }
.forum-post__author-meta, .forum-post__date { color: #6b756f; }
.forum-reply-form { border-radius: 14px; border-color: #E6E4DC; }
.forum-locked-notice { border-radius: 14px; }

/* ================================================================
   NOTIFICATIONS
   ================================================================ */
.notif-page { max-width: none; gap: .85rem; }
.notif-page__title { font-size: 1.5rem; letter-spacing: -.02em; color: #1a3a2e; }
.notif-page__header .btn { border-radius: 999px; }
.notif-push-banner { border-radius: 14px; border-color: #E6E4DC; padding: 1rem 1.15rem; }
.notif-push-banner::before { display: none; }
.notif-push-banner__icon { background: #E1F5EE; color: #0a6b4e; }
.notif-push-banner__text strong { color: #1a3a2e; font-size: .95rem; }
.notif-push-banner__text span { color: #4a5a52; font-size: .85rem; }
.notif-push-banner--enabled { background: #F3FBF7; border-color: #9FE1CB; }
.notif-push-banner--enabled .notif-push-banner__icon { background: #1D9E75; color: #fff; }
.notif-list { display: flex; flex-direction: column; gap: .5rem; }
.notif-list__date-sep { margin-top: .75rem; font-size: .85rem; font-weight: 600; color: #4a5a52; text-transform: none; letter-spacing: 0; }
.notif-list__date-sep:first-child { margin-top: 0; }
a.notif-item, .notif-item {
  display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid #E6E4DC;
  border-radius: 14px; padding: .8rem 1rem; text-decoration: none; color: #1a1a18; position: relative;
  transition: border-color .15s;
}
.notif-item:hover { border-color: #1D9E75; background: #fff; text-decoration: none; }
.notif-item--unread { background: #F3FBF7; border-color: #9FE1CB; }
.notif-item__icon-wrap { position: relative; flex-shrink: 0; width: 44px; height: 44px; }
.notif-item__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: block; }
.notif-item__type-icon {
  position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 1px solid #E6E4DC; display: flex; align-items: center; justify-content: center; font-size: 11px; line-height: 1;
}
.notif-item__system-icon { width: 44px; height: 44px; border-radius: 50%; background: #E1F5EE; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.notif-item__content { flex: 1; min-width: 0; }
.notif-item__text { margin: 0 0 2px; font-size: .95rem; line-height: 1.4; color: #1a1a18; }
.notif-item__time { font-size: .8rem; color: #6b756f; }
.notif-item__dot { width: 10px; height: 10px; border-radius: 50%; background: #1D9E75; flex-shrink: 0; }

/* ================================================================
   404
   ================================================================ */
.error-page { display: flex; align-items: center; justify-content: center; min-height: 62vh; padding: 2rem 0; }
.error-page__card {
  width: min(520px, 100%); text-align: center; background: #fff; border: 1px solid #E6E4DC; border-radius: 14px; padding: 2.5rem 1.75rem;
}
.error-page__code { font-size: 5.5rem; font-weight: 700; line-height: 1; letter-spacing: -.04em; color: #1D9E75; }
.error-page__title { margin: .75rem 0 .4rem; font-size: 1.5rem; letter-spacing: -.02em; color: #1a3a2e; }
.error-page__text { margin: 0 auto 1.4rem; max-width: 40ch; color: #4a5a52; line-height: 1.55; }
.error-page__actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.error-page__links { display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid #EEECE5; font-size: .9rem; }
.error-page__links a { color: #0a6b4e; font-weight: 600; }

/* ================================================================
   GROUPES
   ================================================================ */
.directory-hero__back { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.group-panel { background: #fff; border: 1px solid #E6E4DC; border-radius: 14px; padding: 1.15rem 1.25rem; }
.group-panel + .group-panel { margin-top: 1rem; }
.group-panel__title { display: flex; align-items: center; gap: .5rem; font-size: 1rem; font-weight: 700; color: #1a3a2e; margin: 0 0 .85rem; }
.group-panel__count { font-size: .8rem; font-weight: 600; background: #E1F5EE; color: #0a6b4e; border-radius: 999px; padding: 1px 9px; }

.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .85rem; }
.groups-page .group-panel .groups-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; }
.group-card {
  display: flex; gap: .9rem; align-items: flex-start; background: #fff; border: 1px solid #E6E4DC; border-radius: 14px;
  padding: 1rem; text-decoration: none; color: inherit; transition: border-color .15s;
}
.group-card:hover { border-color: #1D9E75; box-shadow: none; text-decoration: none; }
.group-card__icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; background: #1a3a2e; color: #9FE1CB;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700;
}
.group-card__body { min-width: 0; }
.group-card__name { font-size: 1rem; font-weight: 700; color: #1a3a2e; margin-bottom: 2px; }
.group-card__desc { font-size: .88rem; color: #4a5a52; line-height: 1.5; margin: 0 0 6px; }
.group-card__meta { display: flex; flex-wrap: wrap; gap: .2rem .7rem; font-size: .8rem; color: #6b756f; }
.group-card--mine { background: #F3FBF7; border-color: #9FE1CB; align-items: center; padding: .7rem .85rem; }
.group-card--mine .group-card__icon { width: 40px; height: 40px; font-size: 1rem; }

.group-search { display: flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid #E6E4DC; border-radius: 14px; padding: .55rem .6rem .55rem 1rem; }
.group-search__icon { color: #6b756f; flex-shrink: 0; }
.group-search__input { flex: 1; min-width: 0; border: none; outline: none; background: none; font: inherit; font-size: .95rem; height: 38px; }
.group-search__submit { height: 40px; padding: 0 1.2rem; border: 0; border-radius: 999px; background: #1a3a2e; color: #fff; font-weight: 600; cursor: pointer; }
.group-search__submit:hover { background: #0e2820; }

/* Page d'un groupe, dans le style des profils */
.group-wall { display: flex; flex-direction: column; gap: 1rem; }
.group-head__icon {
  width: 96px; height: 96px; border-radius: 22px; flex-shrink: 0; background: #1a3a2e; color: #9FE1CB;
  display: flex; align-items: center; justify-content: center; font-size: 2.6rem; font-weight: 700;
}
.group-head__visibility { display: inline-flex; align-items: center; gap: 5px; font-size: .85rem; font-weight: 600; background: #F7F6F2; color: #4a5a52; border-radius: 999px; padding: 3px 10px; }
.group-head__visibility--private { background: #FAEEDA; color: #633806; }
.group-head .pf-stats a { color: inherit; }
.group-head .pf-stats span a { color: #0a6b4e; font-weight: 600; }
.btn--danger-soft { color: #b91c1c; border-color: #f0a0a0; }
.btn--static { opacity: .65; cursor: default; }
.group-pending-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; background: #e53e3e; color: #fff; border-radius: 20px; font-size: .7rem; font-weight: 700; margin-left: 4px; }
.group-quick-post { background: #fff; border: 1px solid #E6E4DC; border-radius: 14px; padding: 1rem; }
.group-quick-post__row { display: flex; gap: .7rem; align-items: flex-start; }
.group-quick-post textarea { flex: 1; resize: vertical; font-family: inherit; min-height: 44px; }
.group-quick-post .quick-post__avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.group-quick-post__footer { display: flex; align-items: center; justify-content: space-between; margin-top: .7rem; padding-top: .7rem; border-top: 1px solid #EEECE5; }
.group-quick-post__attach { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: #4a5a52; cursor: pointer; }
.group-quick-post__attach:hover { color: #0a6b4e; }
.group-quick-post__media { position: relative; margin-top: .7rem; border-radius: 10px; overflow: hidden; background: #000; max-height: 260px; }
.group-quick-post__media img, .group-quick-post__media video { width: 100%; max-height: 260px; object-fit: contain; display: block; }
.group-quick-post__media-remove { position: absolute; top: 8px; right: 8px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; border: none; cursor: pointer; }

.group-request-row, .group-member-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .7rem 0; border-bottom: 1px solid #EEECE5; }
.group-request-row:last-child, .group-member-row:last-child { border-bottom: 0; }
.group-request-row__user { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
.group-request-row__user img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.group-request-row__name { display: block; font-size: .95rem; font-weight: 600; color: #1a3a2e; }
.group-request-row__time, .group-member-row__since { font-size: .82rem; color: #6b756f; }
.group-request-row__actions, .group-member-row__meta { display: flex; align-items: center; gap: .75rem; }
.btn-chip { border: 0; border-radius: 999px; padding: .45rem 1rem; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.btn-chip--success { background: #E1F5EE; color: #0a6b4e; }
.btn-chip--danger { background: #FCEBEB; color: #7a1f1f; }
.btn-chip--static { cursor: default; }
@media (max-width: 600px) {
  .group-head__icon { width: 72px; height: 72px; font-size: 2rem; border-radius: 18px; }
  .group-search__submit { padding: 0 .9rem; }
}


/* ================================================================
   MENU MOBILE (tiroir) : grille compacte
   ================================================================ */
.drawer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 6px; padding: 4px 12px 8px; align-content: start; }
.drawer__section-label { grid-column: 1 / -1; padding: 10px 6px 2px; font-size: .78rem; }
.drawer__section-label[style] { margin-top: 0 !important; }
.drawer__link { padding: .4rem .5rem; gap: 9px; min-height: 44px; font-size: .92rem; min-width: 0; }
.drawer__link svg { width: 30px; height: 30px; padding: 7px; border-radius: 9px; flex-shrink: 0; }
.drawer__profile { margin: 12px 12px 4px; padding: 12px; }
.drawer__footer { padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); }
.drawer__logout { min-height: 42px; padding: .5rem; }
/* « Découvrir » est dans la barre du bas : la loupe du haut devient inutile */
@media (max-width: 768px) { a.topbar__notif.topbar__search-link, .mobile-topbar .topbar__search-link { display: none !important; } }

/* ================================================================
   MODIFIER MON PROFIL : sections
   ================================================================ */
.profile-edit__form.pe-form { background: transparent; border: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.pe-card { background: #fff; border: 1px solid #E6E4DC; border-radius: 14px; padding: 1.25rem 1.4rem 1.4rem; }
.pe-card__head { margin-bottom: 1rem; }
.pe-card__title { display: block; margin: 0; font-size: 1.1rem; font-weight: 700; color: #1a3a2e; letter-spacing: -.01em; }
.pe-card__sub { display: block; margin: 2px 0 0; font-size: .9rem; color: #4a5a52; }
.pe-card .form__group:last-child { margin-bottom: 0; }
.pe-card .form__label { font-size: .95rem; font-weight: 600; color: #1a1a18; }
.pe-card .form__hint { font-size: .85rem; color: #4a5a52; }
.pe-card .profile-edit__avatar-section { border-bottom: 0; padding-bottom: .5rem; margin-bottom: .75rem; }
.pe-card .profile-edit__avatar-hint { font-size: .88rem; color: #4a5a52; margin: 0 0 2px; }
.pe-card .profile-edit__avatar-hint strong { color: #1a3a2e; font-size: .95rem; }
.pe-card--fold { padding: 0; }
.pe-card--fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; margin: 0; cursor: pointer; list-style: none; }
.pe-card--fold > summary::-webkit-details-marker { display: none; }
.pe-card--fold > .form__row { padding: 0 1.4rem 1.4rem; }
.pe-card__chev { width: 10px; height: 10px; border-right: 2px solid #1a3a2e; border-bottom: 2px solid #1a3a2e; transform: rotate(45deg); transition: transform .15s; margin-right: 4px; }
.pe-card--fold[open] .pe-card__chev { transform: rotate(-135deg); }
.pe-form .profile-edit__actions { position: sticky; bottom: 0; z-index: 5; background: rgba(247,246,242,.94); backdrop-filter: blur(6px); padding: .8rem 0; border-top: 1px solid #E6E4DC; margin-top: .25rem; }
@media (max-width: 768px) {
  .pe-form .profile-edit__actions { bottom: var(--mobile-nav-h, 62px); }
  .pe-card { padding: 1.1rem 1rem 1.2rem; }
  .pe-card--fold > summary { padding: 1rem; }
  .pe-card--fold > .form__row { padding: 0 1rem 1.2rem; }
}
.pe-card .form__group { margin-bottom: 1.15rem; }
.pe-card .form__group > .form__label, .pe-card .form__group > .form__hint { display: block; }
.pe-card .form__group > .form__label { margin-bottom: .35rem; }
.pe-card .form__hint { margin-top: .35rem; }
.pe-card .pf-chips { margin: .6rem 0 .2rem; }
.pe-card .profile-edit__avatar-section { background: none; border: 0; border-radius: 0; padding: 0 0 .25rem; margin: 0 0 1.1rem; }
.pe-card .form__checkbox { display: flex; align-items: center; gap: .6rem; }


/* ================================================================
   SIGNATURE : mains, accessibilité visible, rangée café signe
   ================================================================ */
.error-page__code { font-size: 3.5rem; }

/* Accessibilité de la publication, en clair sous l'auteur */
.post-card__badges { display: none; }
.post-card__access { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 .6rem; padding: 0 1rem; }
.acc-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px 3px 9px; border-radius: 999px; font-size: .82rem; font-weight: 600; line-height: 1.3; }
.acc-chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.acc-chip--lsf { background: #E1F5EE; color: #0a6b4e; }
.acc-chip--st  { background: #EEEDFE; color: #3C3489; }
.acc-chip--txt { background: #F1EFE8; color: #444441; }

/* Rangée « Au café signe » */
.cafe-strip { background: #1a3a2e; border-radius: 14px; padding: .9rem 0 1rem .9rem; margin: 0 0 1rem; color: #fff; overflow: hidden; }
.cafe-strip__head { display: flex; align-items: baseline; justify-content: space-between; padding-right: 1rem; margin-bottom: .65rem; }
.cafe-strip__title { margin: 0; font-size: 1.05rem; font-weight: 700; color: #fff; }
.cafe-strip__all { font-size: .88rem; font-weight: 600; color: #9FE1CB; text-decoration: underline; text-underline-offset: 3px; }
.cafe-strip__row { display: flex; gap: .6rem; overflow-x: auto; padding: 0 1rem .1rem 0; scroll-snap-type: x proximity; scrollbar-width: none; }
.cafe-strip__row::-webkit-scrollbar { display: none; }
.cafe-strip__new, .cafe-strip__item { flex: 0 0 108px; height: 168px; border-radius: 12px; position: relative; overflow: hidden; scroll-snap-align: start; text-decoration: none; }
.cafe-strip__new { background: #1D9E75; color: #072016; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: .75rem; text-align: center; }
.cafe-strip__new:hover { background: #3fb88f; }
.cafe-strip__new-ico { width: 56px; height: 56px; border-radius: 16px; background: #E1F5EE; color: #1a3a2e; display: flex; align-items: center; justify-content: center; }
.cafe-strip__new-label { font-size: .88rem; font-weight: 700; line-height: 1.25; }
.cafe-strip__item { background: #0f2a20; }
.cafe-strip__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cafe-strip__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,26,20,.85) 0%, rgba(10,26,20,0) 55%); }
.cafe-strip__avatar { position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid #1D9E75; background: #fff; }
.cafe-strip__name { position: absolute; left: 8px; right: 8px; bottom: 22px; font-size: .88rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cafe-strip__time { position: absolute; left: 8px; right: 8px; bottom: 6px; font-size: .75rem; color: rgba(255,255,255,.8); }
.cafe-strip__item:hover .cafe-strip__avatar, .cafe-strip__item:focus-visible .cafe-strip__avatar { border-color: #9FE1CB; }
.cafe-strip a:focus-visible { outline: 3px solid #9FE1CB; outline-offset: 2px; }
@media (max-width: 768px) { .cafe-strip { border-radius: 14px; } .cafe-strip__new, .cafe-strip__item { flex-basis: 100px; height: 156px; } }


/* Rangée compacte café signe (tête de fil) */
.cafe-row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 8px; margin-bottom: .5rem; scrollbar-width: none; }
.cafe-row::-webkit-scrollbar { display: none; }
.cafe-row__item { flex: 0 0 auto; width: 72px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: #1a3a2e; }
.cafe-row__ring { width: 68px; height: 68px; border-radius: 50%; padding: 3px; background: #1D9E75; display: flex; align-items: center; justify-content: center; overflow: hidden; box-sizing: border-box; }
.cafe-row__video { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #0f2a20; border: 2px solid #F7F6F2; box-sizing: border-box; }
.cafe-row__ring--new { background: #1a3a2e; color: #9FE1CB; }
.cafe-row__item--new .cafe-row__label { font-weight: 700; }
.cafe-row__label { font-size: .8rem; font-weight: 600; max-width: 72px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cafe-row__item:hover .cafe-row__ring:not(.cafe-row__ring--new) { background: #1a3a2e; }
.cafe-row__item:focus-visible { outline: 3px solid #1D9E75; outline-offset: 3px; border-radius: 12px; }

/* ── Signe du jour ─────────────────────────────────────────── */
.cafe-row__ring--sign { background: #E8A317; position: relative; }
.cafe-row__item--sign .cafe-row__label { font-weight: 700; color: #7a4e00; }
.cafe-row__item--sign { width: 76px; }
.cafe-row__item--sign:hover .cafe-row__ring--sign { background: #b87d0a !important; }

.sign-page { max-width: 880px; margin: 0 auto; padding: 1rem 0 3rem; }
.sign-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; align-items: center; background: #fff; border: 1px solid #E6E4DC; border-radius: 14px; padding: 1.25rem; }
.sign-hero__media video { width: 100%; max-height: 520px; border-radius: 12px; background: #0f2a20; display: block; }
.sign-hero__date { margin: 0 0 .25rem; color: #7a4e00; font-weight: 600; font-size: .9rem; text-transform: capitalize; }
.sign-hero__word { margin: 0 0 .5rem; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; color: #1a3a2e; letter-spacing: -.02em; }
.sign-hero__meaning { margin: 0 0 .75rem; font-size: 1.1rem; color: #444441; }
.sign-hero__credit { margin: 0 0 1.25rem; color: #5f5e5a; font-size: .95rem; }
.sign-hero__credit a { color: #0a6b4e; font-weight: 600; }
.sign-hero__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.sign-empty { background: #fff; border: 1px solid #E6E4DC; border-radius: 14px; padding: 2rem; text-align: center; }
.sign-empty h1 { margin: 0 0 .5rem; font-size: 1.5rem; color: #1a3a2e; }
.sign-archive { margin-top: 2rem; }
.sign-archive h2, .sign-propose h2 { font-size: 1.2rem; color: #1a3a2e; margin: 0 0 .75rem; }
.sign-archive__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.sign-archive__item { display: flex; flex-direction: column; gap: 2px; }
.sign-archive__item video { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; background: #0f2a20; margin-bottom: 4px; }
.sign-archive__item span { font-size: .85rem; color: #5f5e5a; }
.sign-propose { margin-top: 2rem; background: #fff; border: 1px solid #E6E4DC; border-radius: 14px; padding: 1.5rem; }
.sign-propose > p { margin: 0 0 1rem; color: #444441; }
@media (max-width: 768px) {
    .sign-hero { grid-template-columns: 1fr; gap: 1rem; padding: 1rem; }
    .sign-hero__media video { max-height: 420px; }
    .sign-hero__actions .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
    .sign-propose { padding: 1.1rem; }
}
/* Admin */
.admin-sign-form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.admin-sign-form input[type=text] { flex: 1 1 160px; }
.admin-sign-row { display: flex; gap: 1rem; align-items: flex-start; }
.admin-sign-row video { width: 140px; border-radius: 8px; background: #0f2a20; flex: none; }
.admin-sign-row p { margin: .15rem 0; }
.admin-sign-inline { display: flex; gap: .4rem; align-items: center; }
.cafe-row__item--sign .cafe-row__label { max-width: 80px; font-size: .76rem; }
.sign-propose .form-group { margin-bottom: 1rem; }
.sign-propose label { display: block; font-weight: 600; margin-bottom: .35rem; color: #1a3a2e; }
.sign-propose input[type=text] { width: 100%; box-sizing: border-box; padding: .7rem .85rem; border: 1px solid #d6d3c8; border-radius: 10px; font: inherit; background: #fff; }
.sign-propose input[type=file] { width: 100%; font: inherit; }
.sign-propose .btn { width: 100%; justify-content: center; }
.sign-hero__actions .btn--ghost { background: #fff; color: #1a3a2e; border: 1.5px solid #1a3a2e; }

/* ── Nouvelle publication ───────────────────────────────────── */
.create-post__form { border-radius: 14px !important; border: 1px solid #E6E4DC; background: #fff; padding: 1.25rem !important; }
.create-post__author-name { font-weight: 700; color: #1a3a2e; }
.create-post__textarea { font-size: 1.15rem !important; line-height: 1.55; min-height: 150px !important; padding: .25rem 0 !important; border: none !important; outline: none !important; box-shadow: none !important; background: transparent !important; }
.create-post__textarea::placeholder { color: #8a8980; }
.create-post__char-count { margin-top: 0 !important; }
.create-post .media-upload { border-radius: 12px; }
.create-post .media-upload__label { flex-direction: row; gap: .6rem; padding: .85rem 1rem; justify-content: flex-start; }
.create-post .media-upload__label svg { flex: none; }
.create-post .media-upload__hint { margin-left: auto; font-size: .75rem; color: #8a8980; }
.cp-access { border: 0; margin: 0; padding: 0; min-width: 0; }
.cp-access__title { padding: 0; font-size: .9rem; font-weight: 700; color: #1a3a2e; margin-bottom: .5rem; }
.cp-access__chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.cp-chip { position: relative; cursor: pointer; }
.cp-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cp-chip span { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border-radius: 999px; border: 1.5px solid #d6d3c8; background: #fff; font-weight: 600; font-size: .92rem; color: #444441; }
.cp-chip span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #c9c6ba; }
.cp-chip--lsf input:checked + span { background: #E1F5EE; border-color: #1D9E75; color: #0a6b4e; }
.cp-chip--lsf input:checked + span::before { background: #1D9E75; }
.cp-chip--st input:checked + span { background: #EEEDFE; border-color: #6a63d6; color: #3C3489; }
.cp-chip--st input:checked + span::before { background: #6a63d6; }
.cp-chip input:focus-visible + span { outline: 3px solid #1D9E75; outline-offset: 2px; }
.cp-access__hint { margin: .5rem 0 0; font-size: .82rem; color: #6b6a64; }
.cp-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #E6E4DC; }
.cp-bar__cafe { margin: 0; font-size: .88rem; color: #5f5e5a; }
.cp-bar__cafe a { color: #0a6b4e; font-weight: 700; }
.cp-bar__submit { padding-left: 2rem; padding-right: 2rem; }
@media (max-width: 768px) {
    .create-post__form { padding: 1rem !important; }
    .create-post__textarea { min-height: 120px !important; }
    .create-post .media-upload__hint { display: none; }
    .cp-bar { flex-direction: column-reverse; align-items: stretch; text-align: center; }
    .cp-bar__submit { width: 100%; }
}

/* Nouvelle publication : destination, suggestion, brouillon */
.create-post__author { flex-wrap: wrap; }
.cp-where { margin-left: auto; display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: #5f5e5a; }
.cp-where__select { max-width: 230px; padding: .45rem .7rem; border: 1px solid #d6d3c8; border-radius: 999px; background: #fff; font: inherit; font-weight: 600; color: #1a3a2e; }
.cp-start { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #E1F5EE; border: 1px solid #9FE1CB; border-radius: 12px; padding: .75rem 1rem; margin-bottom: 1rem; color: #0a4d38; }
.cp-start[hidden], .cp-draft[hidden] { display: none; }
.cp-start strong { display: block; }
.cp-start span { font-size: .88rem; }
.cp-draft { display: flex; align-items: center; justify-content: space-between; background: #F7F6F2; border-radius: 10px; padding: .5rem .85rem; margin-bottom: .75rem; font-size: .88rem; color: #5f5e5a; }
.cp-draft button { background: none; border: 0; color: #0a6b4e; font-weight: 700; cursor: pointer; font: inherit; font-weight: 700; }
@media (max-width: 768px) {
    .cp-where { margin-left: 0; width: 100%; }
    .cp-where__select { flex: 1; max-width: none; }
    .cp-start { flex-direction: column; align-items: stretch; text-align: center; }
}
.cp-start .btn { background: #1a3a2e; color: #fff; border: 0; font-weight: 700; padding: .55rem 1.1rem; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.cp-start .btn:hover { background: #0e2820; }
.cafe-row__sign-ico { width: 100%; height: 100%; border-radius: 50%; background: #1a3a2e; color: #F5C451; display: flex; align-items: center; justify-content: center; border: 2px solid #F7F6F2; box-sizing: border-box; }

/* Suppression de compte */
.pe-card--danger { border-color: #f0c4c4 !important; margin-top: 1rem; }
.pe-card--danger .pe-card__title { color: #7a1f1f; }
.pe-card--danger p { margin: 0 0 1rem; color: #444441; }
.btn--danger { background: #b3261e; color: #fff; border: 0; padding: .7rem 1.3rem; border-radius: 10px; font-weight: 700; cursor: pointer; }
.btn--danger:hover { background: #8f1d17; }
