/* ════════════════════════════════════════
   ESPACE MEMBRE — PORTAIL ASSOCIATIF
   Thème clair · Icônes Font Awesome
   ════════════════════════════════════════ */

/* ─── Header ─── */
.member-body {
  background: #f5f6f8;
  min-height: 100vh;
}

.member-header {
  background: #fff;
  border-bottom: 2px solid #6957d8;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.member-header .brand {
  color: #1b2a4a;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.member-header .brand i {
  color: #6957d8;
}

.member-nav a {
  color: #555;
  font-size: .9rem;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all .2s;
  font-weight: 500;
}

.member-nav a:hover {
  color: #1b2a4a;
  background: #f0f1f4;
}

.member-user-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.member-user-name {
  color: #1b2a4a;
  font-weight: 600;
  font-size: .85rem;
}

.member-user-role {
  color: #6957d8;
  font-size: .75rem;
  font-weight: 500;
}

.member-main {
  padding-top: 32px;
  padding-bottom: 48px;
}

.member-footer {
  border-top: 1px solid #e0e0e0;
  padding-top: 16px;
  margin-top: 32px;
  color: #888;
}

/* ─── Welcome card ─── */
.member-welcome-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  margin-bottom: 28px;
  background: #fff;
  border-radius: 14px;
  border-left: 5px solid #6957d8;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.member-welcome-card h1 {
  color: #1b2a4a;
  font-size: 1.5rem;
  margin: 0 0 4px;
}

.member-welcome-sub {
  color: #777;
  font-size: .9rem;
  margin: 0;
}

/* ─── Dashboard grid ─── */
.member-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.member-card {
  padding: 24px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  border: 1px solid #eee;
  transition: box-shadow .2s, transform .2s;
}

.member-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

.member-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.member-card-icon.icon-home     { background: #e3f2fd; color: #1565c0; }
.member-card-icon.icon-calendar { background: #fff3e0; color: #e65100; }
.member-card-icon.icon-news     { background: #e8f5e9; color: #2e7d32; }
.member-card-icon.icon-user     { background: #f3e5f5; color: #7b1fa2; }

.member-card h2 {
  font-size: 1.05rem;
  margin: 0 0 10px;
  color: #1b2a4a;
}

.member-card-link {
  margin-top: auto;
  padding-top: 14px;
  color: #6957d8;
  font-weight: 600;
  font-size: .85rem;
  text-decoration: none;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.member-card-link:hover {
  color: #c95f35;
}

/* ─── Tags ─── */
.member-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.member-tag.active   { background: #d4edda; color: #155724; }
.member-tag.released,
.member-tag.inactive { background: #f0f0f0; color: #666; }
.member-tag.suspended { background: #f8d7da; color: #721c24; }

/* ─── Rental info on dashboard ─── */
.member-rental-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.member-rental-detail {
  color: #555;
  font-size: .85rem;
  margin: 2px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.member-rental-detail i {
  color: #888;
  width: 16px;
  text-align: center;
}

/* ─── Event list on dashboard ─── */
.member-event-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.member-event-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: .9rem;
  color: #333;
}

.member-event-list li:last-child {
  border-bottom: none;
}

.member-event-date {
  background: #6957d8;
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
}

/* ─── Posts list on dashboard ─── */
.member-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.member-posts-list li {
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.member-posts-list li:last-child { border-bottom: none; }

.member-posts-list li a {
  color: #1b2a4a;
  font-weight: 500;
  font-size: .9rem;
  text-decoration: none;
}

.member-posts-list li a:hover { color: #6957d8; }

.member-posts-list li small {
  color: #888;
  font-size: .8rem;
  white-space: nowrap;
}

/* ─── Profil summary on dashboard ─── */
.member-profil-summary p {
  margin: 3px 0;
  color: #555;
  font-size: .9rem;
}

.member-profil-summary p:first-child {
  color: #1b2a4a;
  font-size: .95rem;
}

/* ─── Empty states ─── */
.member-empty-state {
  color: #999;
  font-size: .85rem;
  font-style: italic;
}

.member-empty-card {
  text-align: center;
  padding: 48px 24px;
  background: #fff;
}

.member-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: #ccc;
}

.member-empty-card h2 { color: #1b2a4a; margin-bottom: 8px; }
.member-empty-card p  { color: #666; max-width: 400px; margin: 4px auto; }

/* ─── Page sections ─── */
.member-page .section-head {
  margin-bottom: 24px;
}

.member-page .section-head h1 {
  color: #1b2a4a;
  display: flex;
  align-items: center;
  gap: 10px;
}

.member-page .section-head h1 i { color: #6957d8; }

.member-section-title {
  color: #1b2a4a;
  font-size: 1.15rem;
  margin-bottom: 16px;
}

/* ─── Logement page ─── */
.member-rental-active-card {
  padding: 28px;
  border-radius: 14px;
  border-left: 5px solid #28a745;
  background: #fff;
}

.member-rental-status { margin-bottom: 12px; }

.member-rental-active-card h2 {
  font-size: 1.3rem;
  color: #1b2a4a;
  margin: 0 0 20px;
}

.member-rental-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.member-rental-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  color: #888;
  font-size: .8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-label i { width: 14px; text-align: center; }

.detail-value {
  color: #1b2a4a;
  font-weight: 600;
  font-size: .95rem;
}

.member-rental-description,
.member-rental-notes {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.member-rental-description h3,
.member-rental-notes h3 {
  font-size: .9rem;
  color: #888;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.member-rental-description p,
.member-rental-notes p {
  color: #555;
  line-height: 1.6;
}

.member-rental-history { margin-top: 32px; }
.member-rental-history h2 { color: #1b2a4a; margin-bottom: 16px; }

/* ─── Profil page ─── */
.member-profil-card {
  padding: 32px;
  border-radius: 14px;
  background: #fff;
}

.member-profil-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.member-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6957d8 0%, #8f86f8 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
}

.member-profil-header h2 { margin: 0; color: #1b2a4a; font-size: 1.3rem; }

.member-role-tag {
  color: #6957d8;
  font-weight: 600;
  font-size: .9rem;
  margin: 2px 0 0;
}

.member-profil-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.member-profil-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profil-label {
  color: #888;
  font-size: .8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profil-label i { width: 14px; text-align: center; color: #aaa; }

.profil-value {
  color: #1b2a4a;
  font-size: .95rem;
  font-weight: 500;
}

.profil-value em { color: #bbb; font-weight: 400; }

.member-profil-notice {
  margin-top: 24px;
  padding: 16px;
  background: #fff8f0;
  border: 1px solid #f0d9c4;
  border-radius: 8px;
}

.member-profil-notice p {
  margin: 0;
  color: #8a6a40;
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── Events page ─── */
.member-events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.member-event-card {
  padding: 20px;
  border-radius: 12px;
  background: #fff;
}

.member-event-card.past { opacity: .6; }

.member-event-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.member-event-date-badge {
  background: #6957d8;
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
  min-width: 50px;
  flex-shrink: 0;
}

.member-event-date-badge.past { background: #ccc; }

.member-event-date-badge .event-day {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}

.member-event-date-badge .event-month {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

.member-event-top h3 { margin: 0; color: #1b2a4a; font-size: 1rem; }

.member-event-time {
  color: #888;
  font-size: .8rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.member-event-desc {
  color: #555;
  font-size: .85rem;
  margin-top: 10px;
  line-height: 1.5;
}

/* ─── Actualités page ─── */
.member-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.member-post-card {
  padding: 24px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.member-post-meta { margin-bottom: 8px; }
.member-post-meta time { color: #888; font-size: .8rem; }

.member-post-card h2 { font-size: 1.05rem; margin: 0 0 8px; }
.member-post-card h2 a { color: #1b2a4a; text-decoration: none; }
.member-post-card h2 a:hover { color: #6957d8; }

.member-post-excerpt {
  color: #555;
  font-size: .85rem;
  line-height: 1.5;
  flex: 1;
}

/* ─── Auth override for member login ─── */
.member-auth-body .auth-panel .kicker {
  color: #6957d8;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .member-grid,
  .member-events-grid,
  .member-posts-grid,
  .member-rental-details-grid,
  .member-profil-grid {
    grid-template-columns: 1fr;
  }

  .member-welcome-card {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 24px 20px;
  }

  .member-user-badge { align-items: center; }

  .member-header .header-inner {
    flex-direction: column;
    gap: 12px;
  }

  .member-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .member-profil-header {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .member-welcome-card h1 { font-size: 1.2rem; }
  .member-card { padding: 18px; }
  .member-event-top { flex-direction: column; gap: 8px; }
}
