/* Annuaire réseau — layout type réseau social, sans fil d’actualité */

.annuaire-shell {
  background: #e4e6eb;
  min-height: calc(100vh - 4rem);
}

.annuaire-layout {
  display: grid;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem;
}

@media (min-width: 1024px) {
  .annuaire-layout {
    grid-template-columns: 19rem minmax(0, 1fr) 17rem;
    align-items: start;
  }
}

/* Événements communautaires */
.annuaire-events-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.annuaire-event-card {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.annuaire-event-card.is-upcoming:hover {
  border-color: #f5b800;
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.08);
}

.annuaire-event-card.is-past {
  opacity: 0.85;
  background: #f8fafc;
}

.annuaire-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.annuaire-event-type {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #eff6ff;
  color: #1e3a8a;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
}

.annuaire-event-format {
  font-size: 0.65rem;
  color: #64748b;
}

.annuaire-event-past-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
}

.annuaire-event-title {
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #0a2540;
  line-height: 1.3;
}

.annuaire-event-when {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-top: 0.25rem;
}

.annuaire-event-where,
.annuaire-event-author {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.annuaire-event-desc {
  font-size: 0.8rem;
  color: #475569;
  margin-top: 0.65rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.annuaire-event-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid #f1f5f9;
}

.annuaire-event-price {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
}

.annuaire-event-price.is-free {
  color: #0a6e3a;
}

.annuaire-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.annuaire-event-btn {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
  color: #0a2540;
}

.annuaire-event-btn-primary {
  background: #0a2540;
  border-color: #0a2540;
  color: #fff;
}

.annuaire-event-btn-primary:hover {
  background: #1e3a8a;
}

.annuaire-event-contact {
  font-size: 0.7rem;
  color: #64748b;
}

.annuaire-panel {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.annuaire-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  transition: background 0.15s;
}

.annuaire-nav-btn:hover {
  background: #f1f5f9;
}

.annuaire-nav-btn.is-active {
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 600;
}

.annuaire-search-sticky {
  position: sticky;
  top: 4rem;
  z-index: 20;
}

.annuaire-member-row {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.12s;
}

.annuaire-member-row:hover {
  background: #f8fafc;
}

.annuaire-member-row:last-child {
  border-bottom: none;
}

.annuaire-avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-family: Poppins, sans-serif;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.annuaire-follow-btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0a2540;
  white-space: nowrap;
}

.annuaire-follow-btn:hover {
  background: #f8fafc;
}

.annuaire-follow-btn.is-following {
  background: #e0e7ff;
  border-color: #a5b4fc;
  color: #3730a3;
}

.annuaire-pager-btn {
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
}

.annuaire-pager-btn:hover:not(:disabled) {
  background: #f1f5f9;
}

.annuaire-pager-btn.is-active {
  background: #0a2540;
  color: #fff;
  border-color: #0a2540;
}

.annuaire-pager-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 1023px) {
  .annuaire-sidebar-right {
    display: none;
  }
  .annuaire-sidebar-left {
    order: 2;
  }
  .annuaire-main {
    order: 1;
  }
}

.annuaire-nav-icon {
  width: 1.25rem;
  text-align: center;
  opacity: 0.85;
  flex-shrink: 0;
}

.annuaire-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.annuaire-search-icon {
  position: absolute;
  left: 0.85rem;
  font-size: 0.9rem;
  opacity: 0.45;
  pointer-events: none;
}

.annuaire-search-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0.65rem 2.25rem 0.65rem 2.5rem;
  font-size: 0.875rem;
  background: #f8fafc;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.annuaire-search-input:focus {
  border-color: #f5b800;
  box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.25);
  background: #fff;
}

.annuaire-search-clear {
  position: absolute;
  right: 0.5rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  border: none;
  background: #e2e8f0;
  color: #475569;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.annuaire-kbd {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 0.65rem;
  font-family: inherit;
}

.annuaire-chip {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  transition: background 0.12s, border-color 0.12s;
}

.annuaire-chip:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e3a8a;
}

.annuaire-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem 0.2rem 0.65rem;
  border-radius: 9999px;
  background: #0a2540;
  color: #fff;
}

.annuaire-filter-pill button {
  border: none;
  background: transparent;
  color: #f5b800;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
}

.annuaire-recent-btn {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  border: 1px dashed #cbd5e1;
  background: #fff;
  color: #475569;
}

.annuaire-member-row {
  cursor: pointer;
}

.annuaire-member-row.is-pro .annuaire-avatar {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #f5b800;
}

.annuaire-member-row .annuaire-row-actions {
  pointer-events: auto;
}

.annuaire-member-row .annuaire-row-actions button,
.annuaire-member-row .annuaire-row-actions a {
  pointer-events: auto;
}

.annuaire-mark {
  background: #fef08a;
  color: inherit;
  border-radius: 0.15rem;
  padding: 0 0.1rem;
}

.annuaire-skeleton-row {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.annuaire-skeleton-avatar,
.annuaire-skeleton-line {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: annuaire-shimmer 1.2s ease-in-out infinite;
  border-radius: 0.35rem;
}

.annuaire-skeleton-avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

.annuaire-skeleton-line {
  height: 0.65rem;
  flex: 1;
}

.annuaire-skeleton-line.short { max-width: 40%; }
.annuaire-skeleton-line.mid { max-width: 65%; }

@keyframes annuaire-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.annuaire-domain-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.annuaire-domain-bar span:first-child {
  flex: 1;
  font-size: 0.7rem;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.annuaire-domain-bar-track {
  width: 3.5rem;
  height: 4px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.annuaire-domain-bar-fill {
  height: 100%;
  background: #1e3a8a;
  border-radius: 9999px;
}

.annuaire-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
}

.annuaire-drawer.hidden {
  display: none !important;
  pointer-events: none;
  visibility: hidden;
}

.annuaire-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 37, 64, 0.45);
}

.annuaire-drawer-panel {
  position: relative;
  width: min(100%, 24rem);
  max-height: 100vh;
  overflow-y: auto;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
}

.annuaire-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.annuaire-drawer-close {
  width: 2rem;
  height: 2rem;
  border: none;
  background: #f1f5f9;
  border-radius: 9999px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.annuaire-drawer-body {
  padding: 1.25rem;
}

.annuaire-drawer-hero {
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.annuaire-drawer-hero .annuaire-avatar {
  width: 4.5rem;
  height: 4.5rem;
  font-size: 1.25rem;
  margin: 0 auto;
}

.annuaire-drawer-section {
  margin-top: 1rem;
}

.annuaire-drawer-section h3 {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.annuaire-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.annuaire-stat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.65rem;
  text-align: center;
}

.annuaire-stat-card strong {
  display: block;
  font-size: 1.1rem;
  color: #0a2540;
  font-family: Poppins, sans-serif;
}

.annuaire-stat-card span {
  font-size: 0.65rem;
  color: #64748b;
}

.annuaire-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  background: #0a2540;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: annuaire-toast-in 0.25s ease;
}

@keyframes annuaire-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Panneau Affiner */
.annuaire-refine-panel {
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
}

.annuaire-refine-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: #1e3a8a;
  color: #fff;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.annuaire-refine-group {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.annuaire-refine-group:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.annuaire-refine-legend {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.annuaire-refine-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.25rem;
}

.annuaire-refine-select,
.annuaire-refine-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.45rem 0.5rem;
  font-size: 0.8rem;
  background: #fff;
}

.annuaire-refine-select:focus,
.annuaire-refine-input:focus {
  outline: 2px solid #f5b800;
  outline-offset: 0;
}

.annuaire-refine-checks {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.annuaire-refine-check {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: #334155;
  cursor: pointer;
  line-height: 1.35;
}

.annuaire-refine-check input {
  margin-top: 0.15rem;
  accent-color: #1e3a8a;
}

.annuaire-refine-check input:disabled + span {
  opacity: 0.45;
}

.annuaire-refine-count {
  font-style: normal;
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 500;
}

.annuaire-refine-actions {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.annuaire-refine-reset {
  width: 100%;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 0.5rem;
  padding: 0.5rem;
}

.annuaire-refine-reset:hover {
  background: #dbeafe;
}

