.feed-page {
  min-height: 100vh;
  background: var(--bg-warm, #FFF8F6);
  padding-bottom: 3rem;
}

.feed-main {
  padding-top: 1.75rem;
}

.feed-container {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.feed-header {
  margin-bottom: 2rem;
}

.feed-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.feed-subtitle {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.feed-view-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.feed-view-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--gray);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.feed-view-tab i {
  font-size: 0.95rem;
}

.feed-view-tab:hover {
  background: var(--bg-warm);
  color: var(--dark);
  border-color: rgba(0, 0, 0, 0.08);
}

.feed-view-tab:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.feed-view-tab.active {
  background: var(--coral-light);
  color: var(--coral);
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(255, 90, 95, 0.12);
}

.feed-view-tabs .btn-calendar-feed {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 22px;
  text-decoration: none;
  white-space: nowrap;
  margin-left: auto;
}

/* ── Vue liste activités (tableau) ── */

.feed-view-liste-wrap {
  margin-top: 0;
}

.feed-page.feed-view-liste .feed-container {
  max-width: 920px;
}

.feed-th-organisateur,
.feed-td-organisateur {
  min-width: 160px;
}

.feed-table-wrap {
  background: #fff;
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.feed-table-activites {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.feed-th {
  text-align: left;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #5f5180 0%, #4d4068 50%, #433758 100%);
  color: rgba(255, 255, 255, 0.98);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.feed-th:first-child {
  padding-left: 1.5rem;
}

.feed-th:last-child {
  padding-right: 1.5rem;
  text-align: right;
}

.feed-table-row {
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.feed-table-row:nth-child(even) {
  background: #fcfbfd;
}

.feed-table-row:nth-child(odd) {
  background: #fff;
}

.feed-table-row:hover {
  background: #f8f5fc;
  box-shadow: inset 3px 0 0 var(--coral);
}

.feed-td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  line-height: 1.45;
}

.feed-table-row:last-child .feed-td {
  border-bottom: none;
}

.feed-td-date {
  font-variant-numeric: tabular-nums;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.875rem;
  min-width: 160px;
}

.feed-td-activite {
  min-width: 0;
}

.feed-table-activite-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.feed-table-activite-link:hover .feed-table-titre {
  color: var(--coral);
}

.feed-table-emoji {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #fff;
  flex-shrink: 0;
}

.feed-table-titre {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9375rem;
  line-height: 1.3;
}

.feed-td-lieu {
  color: var(--gray);
  font-size: 0.875rem;
  max-width: 180px;
}

.feed-table-organisateur-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  transition: opacity 0.2s, color 0.2s;
}

.feed-table-organisateur-link:hover {
  opacity: 0.9;
}

.feed-table-organisateur-link span {
  color: var(--dark);
}

.feed-table-organisateur-link:hover span {
  color: var(--coral);
}

.feed-table-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feed-table-auteur {
  color: #4a6fa5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s;
  border-bottom: 1px solid transparent;
}

.feed-table-auteur:hover {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

.feed-td-action {
  text-align: right;
}

.feed-table-btn-voir {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: var(--coral);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.feed-table-btn-voir:hover {
  background: var(--coral-hover, #e6314d);
  color: #fff;
  transform: translateY(-1px);
}

.feed-view-liste-wrap .feed-empty-state {
  margin-top: 0;
  padding: 2.5rem 1.25rem;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

@media (max-width: 767px) {
  .feed-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
  }

  .feed-table-activites {
    min-width: 640px;
    font-size: 0.875rem;
  }

  .feed-th,
  .feed-td {
    padding: 0.75rem 0.85rem;
  }

  .feed-td-date {
    min-width: 130px;
    font-size: 0.8rem;
  }

  .feed-table-emoji {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 0.9rem;
  }
}

.feed-view-cal {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.feed-view-cal-wrap {
  margin-bottom: 1.5rem;
}

.feed-cal-top-events {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.feed-cal-top-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.75rem;
}

.feed-cal-top-title svg {
  flex-shrink: 0;
}

.feed-cal-top-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feed-cal-top-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.feed-cal-top-item:last-child {
  border-bottom: none;
}

.feed-cal-top-item[data-annonce-id]:hover {
  background: var(--coral-light);
  border-radius: var(--radius);
}

.feed-cal-top-item-empty {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  color: var(--gray);
}

.feed-cal-top-item .calendar-dot,
.feed-cal-top-item .calendar-item-content,
.feed-cal-top-item .calendar-item-tag {
  flex-shrink: 0;
}

.feed-cal-top-item .calendar-item-tag {
  margin-left: auto;
}

.feed-cal-inline {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.feed-cal-header {
  margin-bottom: 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.feed-cal-month-year {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  min-width: 10rem;
}

.feed-cal-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--coral-light);
  color: var(--coral);
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}

.feed-cal-nav:hover {
  background: var(--coral);
  color: #fff;
}

.feed-cal-today {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--coral);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 20px;
  border: 1px solid var(--coral);
  transition: background 0.2s, color 0.2s;
}

.feed-cal-today:hover {
  background: var(--coral-light);
  color: var(--coral);
}

.feed-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.feed-cal-cell {
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border-radius: 6px;
}

.feed-cal-cell-head {
  font-weight: 600;
  color: var(--gray);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.feed-cal-cell-empty {
  visibility: hidden;
  pointer-events: none;
}

.feed-cal-cell-day {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0.25rem;
  gap: 0.2rem;
}

.feed-cal-cell-has-events.feed-cal-cell-day {
  min-height: 3.5rem;
  animation: feed-cal-cell-pulse 2.5s ease-in-out infinite;
}

@keyframes feed-cal-cell-pulse {
  0%, 100% { background: transparent; box-shadow: none; }
  50% { background: rgba(255, 90, 95, 0.06); box-shadow: 0 0 0 1px rgba(255, 90, 95, 0.15); }
}

.feed-cal-cell-day .feed-cal-day-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-decoration: none;
  color: inherit;
  padding: 0.2rem;
  border-radius: 6px;
  min-height: 2.2rem;
}

.feed-cal-cell-day .feed-cal-day-inner:hover {
  background: var(--coral-light);
  color: var(--coral);
}

.feed-cal-day-num {
  font-weight: 600;
  color: var(--dark);
}

.feed-cal-day-num-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

.feed-cal-day-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.3rem;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  background: var(--coral);
  border-radius: 999px;
  line-height: 1;
}

.feed-cal-cell-past .feed-cal-day-num {
  color: var(--gray);
  opacity: 0.7;
}

.feed-cal-cell-today .feed-cal-day-num {
  color: var(--coral);
  font-weight: 700;
}

.feed-cal-day-events {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
  align-items: center;
}

.feed-cal-day-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.feed-cal-day-more {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--gray);
}

.feed-cal-day-annonces {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 0.15rem;
}

.feed-cal-inline .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

#feedCalDays {
  display: contents;
}

.feed-tabs {
  display: inline-flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.feed-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--gray);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 22px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.feed-tab:hover {
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--dark);
  background: var(--bg-warm);
}

.feed-tab:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.feed-tab.active {
  border-color: var(--coral);
  background: var(--coral-light);
  color: var(--coral);
  box-shadow: 0 1px 3px rgba(255, 90, 95, 0.12);
}

.feed-tab-icon {
  font-size: 1.05rem;
}

.feed-search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.feed-search-input,
.feed-search-select,
.feed-search-date {
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--bg-warm);
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.feed-search-input {
  min-width: 120px;
  flex: 1;
  max-width: 160px;
}

.feed-search-input:focus,
.feed-search-select:focus,
.feed-search-date:focus {
  border-color: var(--coral);
  background: #fff;
}

.feed-search-select {
  min-width: 140px;
  cursor: pointer;
}

.feed-search-date {
  min-width: 130px;
}

.feed-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--coral);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.feed-search-btn i {
  font-size: 0.85rem;
}

.feed-search-btn:hover {
  background: var(--coral-hover, #e6314d);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 90, 95, 0.3);
}

.feed-search-reset {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray);
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 12px;
  transition: color 0.2s, background 0.2s;
}

.feed-search-reset:hover {
  color: var(--coral);
  background: var(--coral-light);
}

.btn-new-post {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 22px;
  box-shadow: 0 2px 10px rgba(255, 90, 95, 0.25);
  transition: box-shadow 0.2s, transform 0.15s;
}

.btn-new-post:hover {
  box-shadow: 0 4px 16px rgba(255, 90, 95, 0.35);
  transform: translateY(-1px);
}

/* ── Welcome Banner ── */

.feed-welcome {
  display: flex;
  gap: 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 1.75rem;
  border-left: 4px solid var(--coral);
}

.welcome-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.welcome-avatar {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
}

.welcome-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 2px solid var(--coral);
  display: block;
}

.welcome-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #34C759;
  border: 2px solid #fff;
}

.welcome-info {
  min-width: 0;
}

.welcome-greeting {
  margin: 0;
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 500;
}

.welcome-name {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.3px;
}

.welcome-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.welcome-interest-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--coral);
  background: var(--coral-light);
  border-radius: 999px;
  white-space: nowrap;
}

.welcome-right {
  flex-shrink: 0;
  width: 220px;
  border-left: 1px solid var(--border);
  padding-left: 1.25rem;
}
.feed-welcome-no-greeting .welcome-right {
  width: 100%;
  border-left: none;
  padding-left: 0;
}

.calendar-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.65rem;
}

.calendar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.calendar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.calendar-item:last-child {
  border-bottom: none;
}

.calendar-item-faded {
  opacity: 0.5;
}

.calendar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.calendar-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
  flex: 1;
}

.calendar-item-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-item-date {
  font-size: 0.65rem;
  color: var(--gray);
}

.calendar-item-avatars {
  display: flex;
  align-items: center;
  margin-top: 0.35rem;
  gap: -6px;
}

.calendar-item-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  margin-left: -6px;
  flex-shrink: 0;
}

.calendar-item-avatar:first-child {
  margin-left: 0;
}

.calendar-item-avatar-more {
  width: 22px;
  height: 22px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--gray-light);
  color: var(--gray);
  font-size: 0.6rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.calendar-item-tag {
  font-size: 0.95rem;
  flex-shrink: 0;
  color: var(--gray);
}

.calendar-see-all {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--coral);
  text-decoration: none;
}

.calendar-see-all:hover {
  text-decoration: underline;
}

/* ── Calendar Modal ── */

.cal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: calFadeIn 0.2s ease;
}

@keyframes calFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Toast validation annonce (message drôle) ── */
.annonce-validation-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 9999;
  max-width: 90%;
  width: 340px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.25s;
}
.annonce-validation-toast.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.annonce-validation-toast-inner {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem 1.5rem;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.05);
  text-align: center;
  border: 2px solid var(--coral);
}
.annonce-validation-toast-emoji {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 0.6rem;
  line-height: 1;
}
.annonce-validation-toast-text {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--dark);
  font-weight: 500;
}
.annonce-validation-toast-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 12px;
  border: none;
  background: var(--coral);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.annonce-validation-toast-btn:hover {
  background: var(--coral-hover, #E04B50);
}
.annonce-validation-toast-btn:active {
  transform: scale(0.98);
}

/* ── Modal annonce ── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--modal-overlay, rgba(0, 0, 0, 0.45));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: calFadeIn 0.2s ease;
}

.modal-overlay.is-open {
  display: flex !important;
}

.modal-box {
  background: var(--modal-bg, #fff);
  border-radius: var(--radius-lg, 24px);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 12px 48px rgba(0,0,0,.18);
  animation: calSlideUp 0.25s ease;
}

.modal-box .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border, #EBEBEB);
}

.modal-box .modal-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark, #222);
  margin: 0;
}

.modal-box .modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-warm, #FFF8F6);
  font-size: 1.4rem;
  color: var(--gray, #717171);
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.modal-box .modal-close:hover {
  background: var(--border, #EBEBEB);
  color: var(--dark, #222);
}

.modal-box .modal-close:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.modal-box .form-group-inscription {
  margin-bottom: 1rem;
}

.modal-box .form-group-inscription label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark, #222);
  margin-bottom: 0.4rem;
}

.modal-box .input-inscription {
  width: 100%;
  box-sizing: border-box;
}

.modal-box .modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border, #EBEBEB);
}

/* ─── Prévisualisation photos (modale annonce) ─── */
.annonce-photos-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.annonce-photo-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #111;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: transform 0.15s, box-shadow 0.15s;
}

.annonce-photo-thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,0.28);
}

.annonce-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.annonce-photo-thumb-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  color: #fff;
  font-size: 0.68rem;
  padding: 0.3rem 0.4rem 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 0 0 10px 10px;
}

.annonce-photo-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.6);
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 0.7rem;
  line-height: 1;
  padding: 0;
  transition: background 0.15s;
  z-index: 2;
}

.annonce-photo-thumb-remove:hover {
  background: rgba(220,38,38,0.85);
}

.annonce-photos-count {
  font-size: 0.78rem;
  color: var(--gray, #888);
  margin-top: 0.3rem;
}

.modal-box .modal-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark, #222);
  margin: 0.5rem 0 0.6rem;
}

.modal-box .modal-label .required {
  color: var(--coral, #FF5A5F);
}

.modal-box .annonce-interets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.modal-box .interest-card-sm {
  margin: 0;
}

.modal-box .interest-card-sm input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.modal-box .interest-card-sm .interest-card-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 22px;
  border: 1.5px solid var(--border, #333);
  background: #000;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
  color: #fff;
  font-weight: 500;
}

.modal-box .interest-card-sm .interest-card-inner .interest-icon {
  font-size: 1.05rem;
  color: #fff;
  transition: color 0.2s, transform 0.2s;
}

.modal-box .interest-card-sm .interest-card-inner:hover {
  border-color: #666;
  background: #1a1a1a;
  color: #fff;
}

.modal-box .interest-card-sm .interest-card-inner:hover .interest-icon {
  transform: scale(1.15);
  color: #fff;
}

.modal-box .interest-card-sm input[type="checkbox"]:checked + .interest-card-inner {
  background: #000;
  border-color: #c9a84c;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(201, 168, 76, 0.3);
}

.modal-box .interest-card-sm input[type="checkbox"]:checked + .interest-card-inner .interest-icon {
  color: #fff;
}

/* Modal Activités du jour (calendrier) */
.modal-box.modal-cal-day .modal-header {
  margin-bottom: 0.5rem;
}

.modal-box.modal-cal-day .modal-cal-day-date {
  font-size: 0.9rem;
  color: var(--gray);
  margin: 0 0 1rem;
  font-weight: 500;
}

.modal-box.modal-cal-day .modal-cal-day-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  max-height: 50vh;
  overflow-y: auto;
}

.modal-box.modal-cal-day .modal-cal-day-item {
  margin-bottom: 0.5rem;
}

.modal-box.modal-cal-day .modal-cal-day-item:last-child {
  margin-bottom: 0;
}

.modal-box.modal-cal-day .modal-cal-day-item-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: var(--bg-warm, #FFF8F6);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.modal-box.modal-cal-day .modal-cal-day-item-link:hover {
  background: var(--coral-light);
  border-color: rgba(255, 90, 95, 0.2);
}

.modal-box.modal-cal-day .modal-cal-day-item-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.modal-box.modal-cal-day .modal-cal-day-item-emoji {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.modal-box.modal-cal-day .modal-cal-day-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.modal-box.modal-cal-day .modal-cal-day-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
}

.modal-box.modal-cal-day .modal-cal-day-item-detail {
  font-size: 0.8rem;
  color: var(--gray);
}

.modal-box.modal-cal-day .modal-cal-day-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border, #EBEBEB);
  text-align: center;
}

.modal-box.modal-cal-day .modal-cal-day-footer .btn-airbnb {
  display: inline-block;
  text-decoration: none;
}

.feed-empty-state {
  text-align: center;
  color: var(--gray);
  padding: 2.75rem 1.25rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  background: #fff;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  box-shadow: var(--shadow-sm);
}

.feed-empty-state .btn-airbnb {
  margin-top: 0.85rem;
  display: inline-block;
}

.feed-empty-state a {
  color: var(--coral);
  font-weight: 600;
}

.feed-search-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.85rem 0;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.feed-search-filters-label {
  color: var(--gray);
  font-weight: 500;
}

.feed-search-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--coral-light);
  border-radius: 999px;
  color: var(--dark);
  font-weight: 500;
  border: 1px solid rgba(255, 90, 95, 0.15);
}

.feed-search-clear {
  margin-left: auto;
  color: var(--coral);
  font-weight: 600;
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 12px;
  transition: color 0.2s, background 0.2s;
}

.feed-search-clear:hover {
  background: var(--coral-light);
  text-decoration: underline;
}

@media (max-width: 575px) {
  .modal-box {
    padding: 1.25rem;
    border-radius: 18px;
  }
  .modal-overlay {
    padding: 0.5rem;
  }
}

.cal-modal {
  background: #fff;
  border-radius: var(--radius-lg, 24px);
  width: 100%;
  max-width: 420px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  animation: calSlideUp 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes calSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.cal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.cal-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.cal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-warm);
  font-size: 1.4rem;
  color: var(--gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.cal-close:hover {
  background: var(--border);
  color: var(--dark);
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cal-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.cal-nav-btn:hover {
  background: var(--bg-warm);
  border-color: var(--gray-light);
}

.cal-month-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  margin-bottom: 1rem;
}

.cal-day-name {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray);
  padding: 0.4rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#calDays {
  display: contents;
}

.cal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0;
  min-height: 44px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}

.cal-day:hover {
  background: var(--bg-warm);
}

.cal-day-empty {
  cursor: default;
}

.cal-day-empty:hover {
  background: transparent;
}

.cal-day-num {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
}

.cal-day-today {
  background: var(--coral-light);
}

.cal-day-today .cal-day-num {
  color: var(--coral);
  font-weight: 700;
}

.cal-day-selected {
  background: var(--coral) !important;
}

.cal-day-selected .cal-day-num {
  color: #fff !important;
  font-weight: 700;
}

.cal-day-selected .cal-day-dot {
  background: #fff !important;
}

.cal-day-has-event {
  cursor: pointer;
}

.cal-day-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  min-height: 6px;
}

.cal-day-dot {
  width: 5px;
  height: 5px;
  min-width: 5px;
  min-height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes cal-day-dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.cal-day-has-event .cal-day-dot {
  animation: cal-day-dot-blink 1.8s ease-in-out infinite;
}

.cal-events {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  min-height: 60px;
}

.cal-events-placeholder,
.cal-events-empty {
  margin: 0;
  font-size: 0.85rem;
  color: var(--gray);
  text-align: center;
  padding: 0.5rem 0;
}

.cal-events-day-label {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
}

.cal-event-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  background: var(--bg-warm);
  border-radius: 12px;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: inherit;
}

a.cal-event-card:hover {
  background: var(--gray-light);
}

.cal-event-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cal-event-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.cal-event-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}

.cal-event-detail {
  font-size: 0.75rem;
  color: var(--gray);
}

.cal-event-avatars {
  display: flex;
  align-items: center;
  margin-top: 0.35rem;
  gap: 0;
}

.cal-event-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  margin-left: -8px;
  flex-shrink: 0;
}

.cal-event-avatar:first-child {
  margin-left: 0;
}

@media (max-width: 575px) {
  .cal-modal {
    max-width: 100%;
    border-radius: var(--radius);
    padding: 1.25rem;
  }
}

/* ── Messagerie (feed) ── */

.msg-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--coral) 0%, #FF8A5C 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 90, 95, 0.4);
  z-index: 1500;
  transition: transform 0.2s, box-shadow 0.2s;
}

.msg-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 28px rgba(255, 90, 95, 0.5);
}

.msg-fab:active {
  transform: scale(0.96);
}

.msg-fab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--dark);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #fff;
}

.msg-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 380px;
  height: 540px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
  z-index: 1500;
  overflow: hidden;
  animation: msgSlideUp 0.25s ease;
  display: flex;
  flex-direction: column;
}

@keyframes msgSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.msg-view {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.msg-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(to bottom, #fafafa 0%, #fff 100%);
}

.msg-panel-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  letter-spacing: -0.02em;
}

.msg-panel-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-warm);
  font-size: 1.3rem;
  color: var(--gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.msg-panel-close:hover {
  background: var(--border);
  color: var(--dark);
}

.msg-search {
  padding: 0.65rem 1rem;
}

.msg-search-input {
  width: 100%;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--bg-warm);
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
}

.msg-search-input:focus {
  border-color: var(--coral);
}

.msg-search-input::placeholder {
  color: var(--gray-light);
}

.msg-new-conv-btn {
  display: block;
  width: calc(100% - 2rem);
  margin: 0.5rem 1rem 0.75rem;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--coral) 0%, #FF8A5C 100%);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(255, 90, 95, 0.35);
}

.msg-new-conv-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 90, 95, 0.4);
}

.msg-new-conv {
  padding: 0 1rem 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.msg-user-search {
  width: 100%;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  margin-bottom: 0.5rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.msg-user-search:focus {
  outline: none;
  border-color: var(--coral);
}

.msg-user-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.msg-user-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.5rem;
  cursor: pointer;
  border-radius: 14px;
  transition: background 0.2s;
}

.msg-user-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.msg-user-item .msg-conv-avatar {
  flex-shrink: 0;
}

.msg-user-name {
  font-weight: 500;
  color: var(--dark);
  font-size: 0.95rem;
}

.msg-conv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  overflow-y: auto;
}

.msg-conv-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.msg-conv-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

.msg-conv-unread {
  background: rgba(255, 90, 95, 0.06);
}

.msg-conv-unread:hover {
  background: rgba(255, 90, 95, 0.09);
}

.msg-conv-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  display: block;
}

.msg-conv-avatar-wrap {
  flex-shrink: 0;
  display: block;
  border-radius: 50%;
}

.msg-conv-avatar-link {
  flex-shrink: 0;
  display: block;
  border-radius: 50%;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 3;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 90, 95, 0.2);
}

.msg-conv-avatar-link:focus-visible {
  outline: 2px solid var(--coral, #ff5a5f);
  outline-offset: 2px;
}

[data-ms-profile-id] {
  cursor: pointer;
}

.msg-conv-info {
  flex: 1;
  min-width: 0;
}

.msg-conv-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.msg-conv-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}

.msg-conv-time {
  font-size: 0.7rem;
  color: var(--gray);
  flex-shrink: 0;
}

.msg-conv-preview {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msg-conv-unread .msg-conv-name,
.msg-conv-unread .msg-conv-preview {
  font-weight: 700;
  color: var(--dark);
}

.msg-conv-badge {
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--coral);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  flex-shrink: 0;
}

.msg-conv-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--gray);
  font-size: 0.85rem;
}

.msg-chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(to bottom, #fafafa 0%, #fff 100%);
}

.msg-back {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-warm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.msg-back:hover {
  background: var(--border);
}

.msg-chat-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: var(--border);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.msg-chat-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.msg-chat-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
}

.msg-chat-status {
  font-size: 0.7rem;
  color: #34C759;
  font-weight: 500;
}

.msg-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.msg-bubble {
  max-width: 80%;
  display: flex;
  flex-direction: column;
}

.msg-bubble-me {
  align-self: flex-end;
}

.msg-bubble-them {
  align-self: flex-start;
}

.msg-bubble-text {
  margin: 0;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  line-height: 1.45;
  border-radius: 18px;
}

.msg-bubble-me .msg-bubble-text {
  background: linear-gradient(135deg, var(--coral) 0%, #FF8A5C 100%);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.msg-bubble-them .msg-bubble-text {
  background: var(--bg-warm);
  color: var(--dark);
  border-bottom-left-radius: 6px;
}

.msg-bubble-time {
  font-size: 0.6rem;
  color: var(--gray-light);
  margin-top: 0.2rem;
  padding: 0 0.25rem;
}

.msg-bubble-me .msg-bubble-time {
  text-align: right;
}

.msg-bubble-attachment {
  margin-bottom: 0.35rem;
}

.msg-bubble-attachment-image {
  border-radius: 12px;
  overflow: hidden;
  max-width: 240px;
}

.msg-bubble-attachment-image a {
  display: block;
  line-height: 0;
}

.msg-bubble-attachment-image img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.msg-bubble-attachment-doc {
  margin-bottom: 0.35rem;
}

.msg-doc-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 14px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  max-width: 280px;
  min-width: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.msg-doc-card:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.msg-doc-card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-sizing: border-box;
}

.msg-bubble-me .msg-doc-card-icon {
  background: rgba(255, 255, 255, 0.3);
}

.msg-bubble-them .msg-doc-card-icon {
  background: rgba(0, 0, 0, 0.06);
}

.msg-doc-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  box-sizing: border-box;
}

.msg-doc-card-name {
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-bubble-me .msg-doc-card-name {
  color: #fff;
}

.msg-bubble-them .msg-doc-card-name {
  color: var(--dark);
}

.msg-doc-card-type {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.msg-bubble-me .msg-doc-card-type {
  color: rgba(255, 255, 255, 0.9);
}

.msg-bubble-them .msg-doc-card-type {
  color: var(--gray);
}

.msg-doc-card-action {
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.msg-bubble-me .msg-doc-card-action {
  color: rgba(255, 255, 255, 0.95);
}

.msg-bubble-them .msg-doc-card-action {
  color: var(--coral);
}

.msg-bubble-me .msg-doc-card {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.msg-bubble-them .msg-doc-card {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.msg-bubble-them .msg-doc-card:hover {
  border-color: var(--coral);
  box-shadow: 0 4px 12px rgba(255, 90, 95, 0.12);
}

.msg-bubble-attachment-doc .msg-bubble-doc-link {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 10px;
  text-decoration: none;
  word-break: break-all;
  max-width: 220px;
}

.msg-bubble-me .msg-bubble-doc-link {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.msg-bubble-me .msg-bubble-doc-link:hover {
  background: rgba(255, 255, 255, 0.35);
}

.msg-bubble-them .msg-bubble-doc-link {
  background: var(--bg-warm);
  color: var(--dark);
  border: 1px solid var(--border);
}

.msg-bubble-them .msg-bubble-doc-link:hover {
  background: var(--gray-light);
}

.msg-bubble-new {
  animation: msgBubbleIn 0.25s ease;
}

@keyframes msgBubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-chat-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}

.msg-attach {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-warm);
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  transition: border-color 0.2s, background 0.2s;
}

.msg-attach:hover {
  border-color: var(--coral);
  background: rgba(255, 90, 95, 0.08);
}

.msg-chat-input {
  flex: 1;
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 22px;
  background: var(--bg-warm);
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
}

.msg-chat-input:focus {
  border-color: var(--coral);
}

.msg-chat-input::placeholder {
  color: var(--gray-light);
}

.msg-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--coral) 0%, #FF8A5C 100%);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(255, 90, 95, 0.3);
}

.msg-send:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(255, 90, 95, 0.4);
}

.msg-send:active {
  transform: scale(0.95);
}

@media (max-width: 767.98px) {
  .msg-fab {
    display: none;
  }

  .msg-panel {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    z-index: 2000;
  }

  .msg-chat-input-wrap {
    padding-bottom: calc(0.65rem + env(safe-area-inset-bottom));
  }
}

@media (min-width: 768px) {
  .feed-bottom-nav {
    display: none !important;
  }
}

/* ── Feed List ── */

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

.feed-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}

.feed-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 90, 95, 0.15);
  transform: translateY(-2px);
}

.feed-card:focus-within {
  box-shadow: 0 0 0 2px rgba(255, 90, 95, 0.25);
}

.feed-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  position: relative;
}

.feed-card-author-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
  transition: opacity 0.2s;
}

.feed-card-author-link:hover {
  opacity: 0.85;
}

.feed-card-author-link:hover .feed-card-avatar {
  box-shadow: 0 0 0 2px var(--coral, #ff5a5f);
}

.feed-card-author-link:focus-visible {
  outline: none;
  border-radius: 12px;
  box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.35);
}

.feed-card-author-link:focus-visible .feed-card-avatar {
  box-shadow: 0 0 0 2px var(--coral, #ff5a5f);
}

.feed-card-author-link .feed-card-name {
  font-weight: 600;
  color: var(--dark);
}

.feed-card-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral) 0%, #FF8A5C 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(255, 90, 95, 0.15);
}

.feed-card-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

.feed-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.feed-card-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
}

.feed-card-time {
  font-size: 0.8rem;
  color: var(--gray);
}

.feed-card-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--coral) 0%, #FF8A5C 100%);
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(255, 90, 95, 0.2);
}

.feed-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pill-text, var(--dark));
  background: var(--pill-bg, var(--bg-warm));
  border: 1px solid var(--pill-border, var(--border));
  border-radius: 16px;
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.feed-card-tag:hover {
  background: var(--coral-light);
  border-color: rgba(255, 90, 95, 0.2);
  color: var(--coral);
}

.feed-card-tag .tag-emoji,
.feed-card-tag .tag-icon {
  font-size: 0.95rem;
}

.feed-card-datetime {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.6rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--coral);
  background: var(--coral-light);
  border-radius: 22px;
}

.feed-card-datetime i {
  font-size: 0.85rem;
  opacity: 0.8;
}

.feed-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.5rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.feed-card-body {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--dark);
  margin: 0 0 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-card-body .annonce-desc-link {
  color: var(--coral, #FF385C);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 56, 92, 0.35);
  word-break: break-all;
}

.feed-card-body .annonce-desc-link:hover {
  border-bottom-color: var(--coral, #FF385C);
  text-decoration: none;
}

.feed-card-location {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0 0 0.85rem;
}

.feed-card-location i {
  font-size: 0.9rem;
  color: var(--coral);
}

.feed-card-participants {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.participant-avatars {
  display: flex;
  align-items: center;
}

.participant-pic {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  margin-right: -10px;
  position: relative;
  flex-shrink: 0;
  background-color: var(--border);
  transition: transform 0.15s;
}

.participant-pic:hover {
  transform: scale(1.15);
  z-index: 2;
}

.participant-pic:last-child {
  margin-right: 0;
}

.participant-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  background: var(--dark);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.participant-text {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 500;
  white-space: nowrap;
}

.feed-card-voir-activite {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--coral) 0%, #FF8A5C 100%);
  border-radius: 22px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.25s;
}

.feed-card-voir-activite:hover {
  background: var(--coral-hover, #e6314d);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 90, 95, 0.35);
}

.feed-card-voir-activite i {
  font-size: 0.95rem;
}

.feed-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.feed-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--gray);
  background: none;
  border: 1px solid transparent;
  border-radius: 22px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.feed-action:hover {
  color: var(--coral);
  background: var(--coral-light);
  border-color: rgba(255, 90, 95, 0.15);
}

.feed-action.liked {
  color: var(--coral);
}

.feed-action.liked .feed-action-icon::before {
  content: "\F415";
}

.feed-action-icon {
  font-size: 1.05rem;
}

.feed-action-count {
  min-width: 1.2em;
}

/* ── Bottom Nav Feed ── */

.feed-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height, 68px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  z-index: 1050;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom);
}

.feed-bottom-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  height: 100%;
}

.feed-bottom-nav li {
  flex: 1;
}

.feed-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-decoration: none;
  color: var(--gray-light);
  font-size: 0.6rem;
  font-weight: 600;
  gap: 3px;
  transition: color 0.15s;
  position: relative;
}

.feed-bottom-nav a.active {
  color: var(--coral);
}

.feed-bottom-nav a.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
}

.feed-bottom-nav a:hover {
  color: var(--coral);
}

.feed-bottom-nav svg {
  width: 22px;
  height: 22px;
}

.bnav-msg-wrap {
  position: relative;
  display: inline-flex;
}

.bnav-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--coral);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 1.5px solid #fff;
}

@media (max-width: 767.98px) {
  .feed-bottom-nav {
    display: block;
  }

  .feed-search-form {
    gap: 0.4rem;
  }

  .feed-search-input {
    max-width: none;
    min-width: 0;
    flex: 1 1 100%;
  }

  .feed-search-select,
  .feed-search-date {
    min-width: 0;
    flex: 1 1 calc(50% - 0.25rem);
  }

  .feed-search-btn {
    flex: 1 1 auto;
  }

  .feed-search-reset {
    flex: 0 0 100%;
  }

  .feed-page {
    padding-bottom: var(--bottom-nav-height, 68px);
  }

  .navbar-airbnb .desktop-nav {
    display: none !important;
  }

  .navbar-airbnb {
    padding: 0.6rem 0;
  }

  .navbar-airbnb .navbar-brand {
    font-size: 1.25rem;
  }

  .feed-container {
    padding: 0 1rem;
  }

  .feed-welcome {
    flex-direction: column;
    gap: 1rem;
  }

  .welcome-right {
    width: 100%;
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
  }

  .feed-card {
    padding: 1rem 1.15rem;
  }

  .feed-title {
    font-size: 1.5rem;
  }

  .feed-tabs {
    width: 100%;
  }

  .feed-tab {
    flex: 1;
    justify-content: center;
  }

  .btn-new-post {
    width: 100%;
    justify-content: center;
  }

  .cal-modal {
    max-width: 100%;
    border-radius: 0;
    height: 100%;
    max-height: 100%;
  }

  .cal-overlay {
    padding: 0;
  }
}

/* ── Page Membres ── */
.membres-page .feed-main {
  padding-bottom: calc(var(--bottom-nav-height, 68px) + 1rem);
}

.membres-header {
  margin-bottom: 2rem;
}

.membres-header .feed-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.membres-header .feed-subtitle {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--gray);
}

.membres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.35rem;
}

.membre-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.25s ease, border-color 0.25s;
  position: relative;
}

.membre-card::before {
  content: '';
  display: block;
  width: 100%;
  height: 72px;
  background: linear-gradient(135deg, rgba(255, 90, 95, 0.08) 0%, rgba(255, 138, 92, 0.06) 100%);
  flex-shrink: 0;
}

.membre-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
  margin-top: -44px;
  padding: 0 1.5rem;
}

.membre-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.membre-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
  transform: translateY(-4px);
  border-color: rgba(255, 90, 95, 0.15);
}

.membre-card-avatar {
  position: relative;
  margin-bottom: 1rem;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: 4px solid #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.membre-card:hover .membre-card-avatar {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 90, 95, 0.2);
}

.membre-card-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.membre-card-badge {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--coral) 0%, #FF8A5C 100%);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255, 56, 92, 0.4);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.membre-card-body {
  width: 100%;
}

.membre-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.3rem;
  letter-spacing: -0.02em;
}

.membre-card-ville {
  font-size: 0.82rem;
  color: var(--gray);
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.membre-card-ville i {
  color: var(--coral);
  font-size: 0.85rem;
}

.membre-card-interests {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
  min-height: 1.75rem;
}

.membre-card-pill {
  font-size: 0.72rem;
  padding: 0.28rem 0.65rem;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 20px;
  color: var(--dark);
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.membre-card-pill:hover {
  background: rgba(255, 90, 95, 0.08);
  border-color: rgba(255, 90, 95, 0.25);
  color: var(--coral);
}

.membre-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--coral) 0%, #ff7a6b 100%);
  text-decoration: none;
  padding: 0.55rem 1.35rem;
  border-radius: 22px;
  border: none;
  box-shadow: 0 4px 14px rgba(255, 90, 95, 0.3);
  transition: box-shadow 0.25s, transform 0.2s;
  margin-bottom: 1.5rem;
}

.membre-card-cta:hover {
  box-shadow: 0 6px 22px rgba(255, 90, 95, 0.45);
  transform: translateY(-2px);
  color: #fff;
}

.membre-card-cta:active {
  transform: scale(0.97);
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .membres-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .membres-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .membre-card::before {
    height: 60px;
  }

  .membre-card-link {
    margin-top: -36px;
    padding: 0 1.25rem;
  }

  .membre-card-avatar {
    width: 76px;
    height: 76px;
    margin-bottom: 0.85rem;
  }

  .membre-card-cta {
    margin-bottom: 1.25rem;
  }
}

/* ── Fiche profil Bento UI v2 (profil.php) ── */
.profil-fiche-page .feed-main {
  padding-top: 1rem;
  padding-bottom: calc(var(--bottom-nav-height, 68px) + 1.5rem);
}
.fiche-profil {
  max-width: 1060px;
  margin: 0 auto;
}
.fiche-profil-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--gray);
  text-decoration: none;
  margin-bottom: 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 10px;
  background: rgba(0,0,0,0.03);
  transition: color 0.2s, background 0.2s;
}
.fiche-profil-back:hover { color: var(--coral); background: rgba(255,90,95,0.06); }

/* ── Bento grid 4-col ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.bento-cell {
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.25s;
}
.bento-cell:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}

.bento-cell-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bento-cell-title i { font-size: 0.88rem; color: var(--coral, #ff5a5f); }
.bento-cell-count {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--coral, #ff5a5f);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  line-height: 1.2;
}

/* ── HERO : full-width, horizontal layout ── */
.bento-hero { grid-column: 1 / -1; }
.bento-hero-body {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem 2.5rem;
}
.bento-hero-left { flex-shrink: 0; }
.bento-hero-right { flex: 1; min-width: 0; padding-top: 0.5rem; }
.bento-hero-socials { display: flex; gap: 0.55rem; margin-bottom: 0.85rem; }
.bento-hero-actions { margin-top: 0.35rem; }

.fiche-profil-avatar {
  width: 140px; height: 140px;
  margin: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 8px 36px rgba(0,0,0,0.18);
  transition: transform 0.3s;
}
.fiche-profil-avatar:hover { transform: scale(1.04); }
.fiche-profil-avatar img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
}

.fiche-profil-name {
  font-size: 1.85rem; font-weight: 700; color: var(--dark);
  margin: 0 0 0.35rem; letter-spacing: -0.02em; line-height: 1.15;
}
.fiche-profil-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.78rem; font-weight: 600;
  color: var(--coral, #ff5a5f);
  background: rgba(255,90,95,0.08);
  padding: 0.28rem 0.8rem; border-radius: 20px; margin-bottom: 0.4rem;
}
.fiche-profil-badge i { font-size: 0.85rem; }
.fiche-profil-ville {
  font-size: 0.92rem; color: var(--gray); margin: 0 0 0.6rem;
}
.fiche-profil-ville i { color: var(--coral, #ff5a5f); font-size: 0.85rem; vertical-align: -1px; }

.fiche-profil-social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(6px);
  text-decoration: none; font-size: 1.1rem;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
.fiche-profil-social-icon:hover { transform: scale(1.12); background: #fff; }

.fiche-profil-cta {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.92rem; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--coral) 0%, #ff7a6b 100%);
  text-decoration: none; padding: 0.65rem 2rem; border-radius: 24px;
  box-shadow: 0 4px 18px rgba(255,90,95,0.35);
  transition: box-shadow 0.25s, transform 0.2s;
}
.fiche-profil-cta:hover {
  box-shadow: 0 8px 28px rgba(255,90,95,0.45);
  transform: scale(1.03); color: #fff;
}

/* ── STAT cells : colorés ── */
.bento-stat-cell {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 1.6rem 1rem;
  text-align: center; gap: 0.3rem; position: relative;
}
.bento-stat-cell::before {
  content: '';
  position: absolute; inset: 0; border-radius: 22px; opacity: 0.06;
  transition: opacity 0.3s;
}
.bento-stat-cell:hover::before { opacity: 0.12; }
.bento-stat-coral::before { background: var(--coral, #ff5a5f); }
.bento-stat-blue::before { background: #3b82f6; }
.bento-stat-amber::before { background: #f59e0b; }

.bento-stat-icon { font-size: 1.5rem; line-height: 1; }
.bento-stat-coral .bento-stat-icon { color: var(--coral, #ff5a5f); }
.bento-stat-blue .bento-stat-icon { color: #3b82f6; }
.bento-stat-amber .bento-stat-icon { color: #f59e0b; }

.bento-stat-num {
  font-size: 2rem; font-weight: 800; color: var(--dark); line-height: 1;
}
.bento-stat-label {
  font-size: 0.72rem; color: var(--gray); font-weight: 500; letter-spacing: 0.02em;
}

/* ── INTERESTS (span 2) ── */
.bento-interests { grid-column: span 2; padding: 1.4rem 1.5rem; }

/* ── INFO (span 2) ── */
.bento-info { grid-column: span 2; padding: 1.4rem 1.5rem; }

/* ── SOCIAL (span 1, but can be wider) ── */
.bento-social { padding: 1.4rem 1.5rem; }
.bento-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.bento-social-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.3rem; padding: 0.85rem 0.5rem; border-radius: 14px;
  text-decoration: none; font-weight: 600; font-size: 0.78rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.bento-social-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.bento-social-card i { font-size: 1.35rem; }
.bento-sc-instagram { background: linear-gradient(135deg, #fce4ec, #f8bbd0); color: #c2185b; }
.bento-sc-instagram:hover { color: #c2185b; }
.bento-sc-twitter { background: #f0f0f0; color: #000; }
.bento-sc-twitter:hover { color: #000; }
.bento-sc-linkedin { background: #e3f2fd; color: #0a66c2; }
.bento-sc-linkedin:hover { color: #0a66c2; }
.bento-sc-facebook { background: #e8eaf6; color: #1877f2; }
.bento-sc-facebook:hover { color: #1877f2; }
.bento-sc-website { background: #ecfdf5; color: #059669; }
.bento-sc-website:hover { color: #059669; }

/* ── ACTIVITIES CREATED (span 3) ── */
.bento-activities-created { grid-column: span 3; padding: 1.4rem 1.5rem; }

/* ── PARTICIPATIONS (span variable) ── */
.bento-participations { grid-column: span 2; padding: 1.4rem 1.5rem; }

/* ── EMPTY ── */
.bento-empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; }

/* ── Pills ── */
.fiche-profil-interests { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.fiche-profil-pill {
  font-size: 0.82rem; padding: 0.42rem 0.9rem;
  background: var(--gray-light, #f5f5f5); border-radius: 22px;
  color: var(--dark); font-weight: 600;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.2s;
}
.fiche-profil-pill:hover {
  background: rgba(255,90,95,0.07);
  border-color: rgba(255,90,95,0.2);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(255,90,95,0.1);
}

/* ── Activities list ── */
.fiche-profil-activities { list-style: none; margin: 0; padding: 0; }
.fiche-profil-activity {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0; border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 0.15s;
}
.fiche-profil-activity:hover { background: rgba(0,0,0,0.01); margin: 0 -0.5rem; padding-left: 0.5rem; padding-right: 0.5rem; border-radius: 10px; }
.fiche-profil-activity:last-child { border-bottom: none; padding-bottom: 0; }
.fiche-profil-activity:first-child { padding-top: 0; }
.fiche-profil-activity-emoji {
  font-size: 1.15rem; flex-shrink: 0; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-light, #f5f5f5); border-radius: 12px;
}
.fiche-profil-activity-content { flex: 1; min-width: 0; }
.fiche-profil-activity-title {
  display: block; font-size: 0.88rem; font-weight: 600; color: var(--dark);
  text-decoration: none; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; transition: color 0.2s;
}
.fiche-profil-activity-title:hover { color: var(--coral, #ff5a5f); }
.fiche-profil-activity-meta {
  font-size: 0.76rem; color: var(--gray); margin-top: 0.15rem;
  display: flex; align-items: center; gap: 0.15rem; flex-wrap: wrap;
}
.fiche-profil-activity-meta i { font-size: 0.68rem; }
.fiche-profil-activity-link {
  flex-shrink: 0; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--gray-light, #f5f5f5);
  color: var(--gray); text-decoration: none; font-size: 0.82rem;
  transition: all 0.2s;
}
.fiche-profil-activity-link:hover {
  background: var(--coral, #ff5a5f); color: #fff;
  box-shadow: 0 3px 10px rgba(255,90,95,0.25);
}

/* ── Info DL ── */
.fiche-profil-dl { margin: 0; }
.fiche-profil-dl-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0; border-bottom: 1px solid rgba(0,0,0,0.04);
}
.fiche-profil-dl-row:last-child { border-bottom: none; padding-bottom: 0; }
.fiche-profil-dl-row:first-child { padding-top: 0; }
.fiche-profil-dl-row dt {
  color: var(--gray); font-weight: 500; font-size: 0.84rem;
  display: flex; align-items: center; gap: 0.4rem; margin: 0;
}
.fiche-profil-dl-row dt i { font-size: 0.82rem; color: var(--coral, #ff5a5f); }
.fiche-profil-dl-row dd {
  margin: 0; color: var(--dark); font-weight: 600; font-size: 0.84rem;
}

/* ── Empty / Absent ── */
.fiche-profil-empty-icon { font-size: 2.5rem; color: var(--gray); opacity: 0.3; margin-bottom: 0.65rem; }
.fiche-profil-empty-text { font-size: 0.9rem; color: var(--gray); margin: 0; }
.fiche-profil-absent { text-align: center; padding: 2rem 1rem; }
.fiche-profil-absent .feed-empty-state { margin-bottom: 1rem; }

/* ── Responsive : tablette (2 col) ── */
@media (max-width: 991.98px) {
  .fiche-profil { max-width: 100%; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .bento-hero { grid-column: 1 / -1; }
  .bento-stat-cell:last-of-type { grid-column: 1 / -1; }
  .bento-interests { grid-column: 1 / -1; }
  .bento-info { grid-column: 1 / -1; }
  .bento-social { grid-column: 1 / -1; }
  .bento-activities-created { grid-column: 1 / -1; }
  .bento-participations { grid-column: 1 / -1; }
  .bento-empty { grid-column: 1 / -1; }
  .bento-hero-body { padding: 1.75rem; gap: 1.5rem; }
  .fiche-profil-avatar { width: 120px; height: 120px; }
  .fiche-profil-name { font-size: 1.6rem; }
}

/* ── Responsive : mobile (<576px) ── */
@media (max-width: 575.98px) {
  .bento-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .bento-hero { grid-column: 1 / -1; }
  .bento-hero-body {
    flex-direction: column; align-items: center; text-align: center;
    padding: 1.25rem; gap: 0;
  }
  .bento-hero-right { padding-top: 0; text-align: center; }
  .bento-hero-socials { justify-content: center; }
  .bento-hero-actions { text-align: center; }
  .fiche-profil-avatar { width: 90px; height: 90px; border-width: 4px; margin-bottom: 0.5rem; }
  .fiche-profil-name { font-size: 1.35rem; }
  .fiche-profil-cta { width: 100%; justify-content: center; font-size: 0.88rem; padding: 0.6rem 1.5rem; }

  .bento-stat-cell { grid-column: span 1; padding: 1.1rem 0.5rem; }
  .bento-stat-cell:last-of-type { grid-column: span 1; }
  .bento-stat-num { font-size: 1.4rem; }
  .bento-stat-icon { font-size: 1.15rem; }
  .bento-stat-label { font-size: 0.65rem; }

  .bento-interests { grid-column: 1 / -1; padding: 1.1rem 1.2rem; }
  .bento-info { grid-column: 1 / -1; padding: 1.1rem 1.2rem; }
  .bento-social { grid-column: 1 / -1; padding: 1.1rem 1.2rem; }
  .bento-activities-created { grid-column: 1 / -1; padding: 1.1rem 1.2rem; }
  .bento-participations { grid-column: 1 / -1; padding: 1.1rem 1.2rem; }
  .bento-empty { grid-column: 1 / -1; }
  .bento-cell-title { font-size: 0.7rem; }
  .bento-social-grid { grid-template-columns: 1fr 1fr; }
}
