/* pages.css — Styles pour les nouvelles pages : annuaire, demandes, admin, signalement, pages info */

/* ══ Utilitaires communs ═══════════════════════════════════════ */
.page-header { margin-bottom: 24px; }
.page-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--text);
  margin: 0 0 6px;
}
.page-title svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--primary); }
.page-subtitle { margin: 0; font-size: 14px; color: var(--muted); }

.flash-success, .flash-error {
  padding: 12px 16px; border-radius: var(--r-md); font-size: 14px; font-weight: 500;
  margin-bottom: 18px; display: flex; align-items: center; gap: 8px;
}
.flash-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.flash-error   { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

.badge {
  display: inline-flex; align-items: center; padding: 2px 8px;
  border-radius: 99px; font-size: 11px; font-weight: 600; letter-spacing: .02em;
}
.badge--green  { background: #dcfce7; color: #15803d; }
.badge--blue   { background: #dbeafe; color: #1d4ed8; }
.badge--orange { background: #ffedd5; color: #c2410c; }
.badge--red    { background: #fee2e2; color: #b91c1c; }
.badge--gray   { background: #f1f5f9; color: #64748b; }
.badge--violet { background: #ede9fe; color: #7c3aed; }

/* ══ Annuaire ══════════════════════════════════════════════════ */
.dir-filters {
  background: var(--panel); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 16px; margin-bottom: 20px;
}
.dir-filter-row {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
}
.dir-filter-field {
  display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 160px;
}
.dir-filter-field label {
  font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em;
}
.dir-filter-field input,
.dir-filter-field select {
  padding: 9px 12px; border-radius: var(--r-md); border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.dir-filter-field input:focus,
.dir-filter-field select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); outline: none;
}

.dir-count {
  font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 14px;
}

.dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
@media (max-width: 600px) { .dir-grid { grid-template-columns: 1fr; } }

.dir-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--panel); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 16px;
  text-decoration: none; color: inherit;
  transition: box-shadow .18s, border-color .18s, transform .14s;
}
.dir-card:hover {
  box-shadow: 0 4px 16px rgba(28,33,40,.09);
  border-color: rgba(94,92,230,.3);
  transform: translateY(-2px);
}
.dir-card-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #1a56db, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff; overflow: hidden;
}
.dir-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dir-card-body { flex: 1; min-width: 0; }
.dir-card-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.dir-card-location {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--muted); margin-bottom: 5px;
}
.dir-card-location svg { width: 12px; height: 12px; flex-shrink: 0; }
.dir-card-activities {
  font-size: 12px; color: var(--primary); font-weight: 500; margin-bottom: 4px;
}
.dir-card-bio { font-size: 12px; color: var(--muted); line-height: 1.5; }
.dir-card-rating {
  display: flex; align-items: center; gap: 4px; margin-top: 6px;
}
.stars { display: flex; gap: 1px; }
.star { width: 12px; height: 12px; color: #d1d5db; }
.star--on { color: #f59e0b; }
.rating-val { font-size: 12px; font-weight: 700; color: var(--text); }
.rating-count { font-size: 11px; color: var(--muted); }
.dir-card-arrow { color: var(--muted); align-self: center; }
.dir-card-arrow svg { width: 16px; height: 16px; }

/* ══ Fiche membre ══════════════════════════════════════════════ */
.member-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 860px) { .member-layout { grid-template-columns: 1fr; } }

.member-sidebar {
  display: flex; flex-direction: column; gap: 16px;
}
.member-card {
  background: var(--panel); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 24px; text-align: center;
}
.member-avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, #1a56db, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; color: #fff; overflow: hidden;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-name { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.member-location {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 13px; color: var(--muted); margin-bottom: 10px;
}
.member-location svg { width: 13px; height: 13px; }
.member-rating-big {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-bottom: 14px;
}
.member-rating-big .stars { gap: 2px; }
.member-rating-big .star { width: 16px; height: 16px; }
.member-rating-big .rating-val { font-size: 16px; font-weight: 800; }
.member-rating-big .rating-count { font-size: 13px; color: var(--muted); }
.member-contact-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px 16px; border-radius: var(--r-md);
  background: linear-gradient(135deg, #1a56db, #7c3aed);
  color: #fff; font-weight: 600; font-size: 14px;
  text-decoration: none; border: none; cursor: pointer;
  transition: filter .15s;
}
.member-contact-btn:hover { filter: brightness(1.07); }
.member-contact-btn svg { width: 16px; height: 16px; }
.member-report-link {
  display: block; text-align: center; margin-top: 10px;
  font-size: 12px; color: var(--muted); text-decoration: none;
}
.member-report-link:hover { color: #b91c1c; }

.member-info-list { list-style: none; padding: 0; margin: 0; }
.member-info-list li {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--border-light);
  font-size: 13px; color: var(--muted);
}
.member-info-list li:last-child { border-bottom: none; }
.member-info-list li svg { width: 14px; height: 14px; flex-shrink: 0; }
.member-info-list li strong { color: var(--text); }

.member-main { display: flex; flex-direction: column; gap: 20px; }
.member-section {
  background: var(--panel); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 20px;
}
.member-section-title {
  font-size: 15px; font-weight: 700; color: var(--text);
  margin: 0 0 14px; display: flex; align-items: center; gap: 8px;
}
.member-section-title svg { width: 16px; height: 16px; color: var(--primary); }
.member-bio { font-size: 14px; color: var(--muted); line-height: 1.7; }
.member-activities-list {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.member-activity-tag {
  padding: 5px 12px; border-radius: 99px;
  background: #ede9fe; color: #7c3aed;
  font-size: 12px; font-weight: 600;
}

/* Avis */
.reviews-list { display: flex; flex-direction: column; gap: 14px; }
.review-item {
  padding: 14px; border-radius: var(--r-md);
  background: var(--bg); border: 1px solid var(--border-light);
}
.review-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; flex-wrap: wrap; gap: 6px;
}
.review-author { font-size: 13px; font-weight: 700; color: var(--text); }
.review-date   { font-size: 11px; color: var(--muted); }
.review-stars  { display: flex; gap: 2px; }
.review-stars .star { width: 13px; height: 13px; }
.review-comment { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 6px; }

.review-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-light); }
.review-form-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.review-stars-input {
  display: flex; gap: 6px; margin-bottom: 12px;
}
.review-stars-input input[type=radio] { display: none; }
.review-stars-input label {
  cursor: pointer; font-size: 24px; color: #d1d5db;
  transition: color .12s;
}
.review-stars-input label:hover,
.review-stars-input label.active { color: #f59e0b; }

/* ══ Demandes ══════════════════════════════════════════════════ */
.req-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 20px;
}
.req-list { display: flex; flex-direction: column; gap: 14px; }
.req-card {
  background: var(--panel); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 18px;
  transition: box-shadow .18s, border-color .18s;
}
.req-card:hover {
  box-shadow: 0 4px 14px rgba(28,33,40,.08);
  border-color: rgba(94,92,230,.25);
}
.req-card-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 10px; flex-wrap: wrap;
}
.req-card-title { font-size: 16px; font-weight: 700; color: var(--text); }
.req-card-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted); margin-bottom: 10px;
}
.req-card-meta svg { width: 12px; height: 12px; }
.req-card-desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.req-card-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

/* Formulaire demande */
.req-form-card {
  background: var(--panel); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 24px; max-width: 680px;
}
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600; color: var(--text);
  margin-bottom: 6px;
}
.form-label .req { color: #b91c1c; margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--r-md);
  border: 1.5px solid var(--border); background: var(--bg); color: var(--text);
  font-size: 14px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); outline: none;
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-check input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--primary); }
.form-check span { font-size: 14px; color: var(--text); }
.form-actions { display: flex; align-items: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* ══ Signalement ═══════════════════════════════════════════════ */
.report-card {
  background: var(--panel); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 24px; max-width: 560px;
}
.report-intro {
  font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 20px;
  padding: 12px 14px; background: #fef3c7; border-radius: var(--r-md);
  border: 1px solid #fde68a;
}

/* ══ Pages info (CGU, Confidentialité, Comment ça marche) ══════ */
.info-page { max-width: 760px; }
.info-page-header { margin-bottom: 28px; }
.info-page-title {
  font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--text);
  margin: 0 0 6px;
}
.info-page-updated { font-size: 12px; color: var(--muted); }
.info-section { margin-bottom: 28px; }
.info-section h2 {
  font-size: 16px; font-weight: 700; color: var(--text);
  margin: 0 0 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}
.info-section p {
  font-size: 14px; color: var(--muted); line-height: 1.75; margin: 0;
}

/* Comment ça marche — steps */
.how-steps-full { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }
.how-step-full {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 18px;
}
.how-step-num-big {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #1a56db, #7c3aed);
  color: #fff; font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.how-step-body-full h3 { font-size: 15px; font-weight: 700; color: var(--text); margin: 0 0 6px; }
.how-step-body-full p  { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }

.how-cta-row {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px;
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--panel); border: 1px solid var(--border-light);
  border-radius: var(--r-md); overflow: hidden;
}
.faq-item summary {
  padding: 14px 16px; font-size: 14px; font-weight: 600; color: var(--text);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 18px; color: var(--muted); transition: transform .2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-answer {
  padding: 0 16px 14px; font-size: 13px; color: var(--muted); line-height: 1.7;
}

/* ══ Administration ════════════════════════════════════════════ */
.admin-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 6px; margin-bottom: 20px;
}
.admin-tab {
  padding: 8px 16px; border-radius: var(--r-md); font-size: 13px; font-weight: 600;
  color: var(--muted); text-decoration: none; transition: background .15s, color .15s;
  display: flex; align-items: center; gap: 6px;
}
.admin-tab:hover { background: var(--bg); color: var(--text); }
.admin-tab.active { background: var(--primary); color: #fff; }
.admin-tab .badge-count {
  background: rgba(255,255,255,.25); color: inherit;
  padding: 1px 6px; border-radius: 99px; font-size: 10px; font-weight: 700;
}
.admin-tab:not(.active) .badge-count { background: #fee2e2; color: #b91c1c; }

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px; margin-bottom: 20px;
}
.admin-stat-card {
  background: var(--panel); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 16px;
}
.admin-stat-label { font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.admin-stat-value { font-size: 26px; font-weight: 800; letter-spacing: -.04em; color: var(--text); }
.admin-stat-sub   { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* Revenue blocks */
.rev-block { padding: 4px 0; }
.rev-label { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.rev-value { font-size: 28px; font-weight: 800; letter-spacing: -.04em; color: var(--primary); }
.rev-sub   { font-size: 11px; color: var(--muted); margin-top: 4px; }
.rev-plan  { background: var(--primary-bg); color: var(--primary); padding: 1px 5px; border-radius: 4px; font-size: 10px; font-weight: 700; }

.admin-table-wrap {
  background: var(--panel); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); overflow: hidden;
}
.admin-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.admin-table th {
  padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 700;
  color: var(--muted); letter-spacing: .04em; text-transform: uppercase;
  background: var(--bg); border-bottom: 1px solid var(--border-light);
}
.admin-table td {
  padding: 10px 14px; border-bottom: 1px solid var(--border-light);
  color: var(--text); vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg); }
.admin-table .actions { display: flex; gap: 6px; flex-wrap: wrap; }

.admin-empty {
  padding: 32px; text-align: center; color: var(--muted); font-size: 14px;
}

/* Boutons petits */
.btn-sm {
  padding: 5px 12px; border-radius: var(--r-sm); font-size: 12px; font-weight: 600;
  border: 1.5px solid var(--border); background: var(--bg); color: var(--text);
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
  transition: background .12s, border-color .12s;
}
.btn-sm:hover { background: var(--panel); border-color: var(--primary); color: var(--primary); }
.btn-sm.danger { border-color: #fecaca; color: #b91c1c; }
.btn-sm.danger:hover { background: #fee2e2; border-color: #b91c1c; }
.btn-sm.success { border-color: #bbf7d0; color: #15803d; }
.btn-sm.success:hover { background: #dcfce7; border-color: #15803d; }

/* ══ Quicklinks home ═══════════════════════════════════════════ */
.quicklinks-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.quicklink-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: var(--r-md);
  background: var(--bg); border: 1px solid var(--border-light);
  text-decoration: none; color: var(--text); font-size: 13px; font-weight: 600;
  transition: background .12s, border-color .12s, color .12s;
}
.quicklink-item:hover { background: var(--panel); border-color: var(--primary); color: var(--primary); }
.quicklink-item svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--primary); }

/* ══ How steps (home) ══════════════════════════════════════════ */
.how-steps { display: flex; flex-direction: column; gap: 14px; }
.how-step {
  display: flex; gap: 14px; align-items: flex-start;
}
.how-step-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #1a56db, #7c3aed);
  color: #fff; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.how-step-body strong { font-size: 14px; font-weight: 700; color: var(--text); display: block; margin-bottom: 3px; }
.how-step-body p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }

/* ══ Dash grid (home) ══════════════════════════════════════════ */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }

.dash-aside { display: flex; flex-direction: column; gap: 16px; }

.dash-card {
  background: var(--panel); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); overflow: hidden;
}
.dash-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border-light);
}
.dash-card-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--text);
}
.dash-card-title svg { width: 16px; height: 16px; color: var(--primary); }
.dash-card-action {
  font-size: 12px; font-weight: 600; color: var(--primary); text-decoration: none;
}
.dash-card-action:hover { text-decoration: underline; }
.dash-card-body { padding: 16px; }

/* CTA prestataire */
.dash-cta {
  background: linear-gradient(135deg, #ede9fe 0%, #dbeafe 100%);
  border: 1px solid #c4b5fd; border-radius: var(--r-lg); padding: 18px;
  text-align: center;
}
.dash-cta-icon {
  width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 10px;
  background: linear-gradient(135deg, #1a56db, #7c3aed);
  display: flex; align-items: center; justify-content: center;
}
.dash-cta-icon svg { width: 20px; height: 20px; color: #fff; }
.dash-cta h4 { font-size: 14px; font-weight: 700; color: var(--text); margin: 0 0 6px; }
.dash-cta p  { font-size: 12px; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }

/* Partenaires */
.dash-partners-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
@media (max-width: 600px) { .dash-partners-grid { grid-template-columns: repeat(3, 1fr); } }
.partner-card {
  aspect-ratio: 3/2; border-radius: var(--r-md);
  border: 1px solid var(--border-light); background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.partner-card:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(94,92,230,.15); }
.partner-card img { max-width: 80%; max-height: 70%; object-fit: contain; }
.partner-placeholder {
  border-style: dashed; opacity: .5;
}
.partner-placeholder::after {
  content: '+'; font-size: 20px; color: var(--muted);
}
.dash-partners-note { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: center; }

/* ══ Boutons globaux ═══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; text-decoration: none;
  transition: filter .15s, box-shadow .15s;
}
.btn.primary, .btn:not(.secondary):not(.ghost):not(.danger) {
  background: linear-gradient(135deg, #1a56db 0%, #7c3aed 100%);
  color: #fff;
}
.btn.primary:hover, .btn:not(.secondary):not(.ghost):not(.danger):hover { filter: brightness(1.06); }
.btn.secondary {
  background: var(--bg); color: var(--text);
  border: 1.5px solid var(--border);
}
.btn.secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn.ghost { background: transparent; color: var(--primary); }
.btn.ghost:hover { background: var(--bg); }
.btn.danger { background: #fee2e2; color: #b91c1c; border: 1.5px solid #fecaca; }
.btn.danger:hover { background: #fecaca; }
.btn.sm { padding: 7px 14px; font-size: 13px; }
.btn svg { width: 15px; height: 15px; }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }

/* ══ Empty state ═══════════════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 48px 24px;
  background: var(--panel); border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
}
.empty-state svg { width: 48px; height: 48px; color: var(--muted); margin-bottom: 14px; }
.empty-state h3 { font-size: 16px; font-weight: 700; color: var(--text); margin: 0 0 8px; }
.empty-state p  { font-size: 14px; color: var(--muted); margin: 0 0 16px; }

/* ══ Responsive helpers ════════════════════════════════════════ */
@media (max-width: 860px) {
  /* Annuaire */
  .dir-filters { padding: 12px; }
  .dir-filter-row { gap: 8px; }
  .dir-filter-field { min-width: 100%; }

  /* Fiche membre : sidebar au-dessus du contenu */
  .member-layout { grid-template-columns: 1fr; gap: 14px; }
  .member-card { text-align: left; display: flex; align-items: center; gap: 16px; padding: 16px; }
  .member-avatar { margin: 0; width: 64px; height: 64px; font-size: 24px; flex-shrink: 0; }
  .member-name { font-size: 18px; }
  .member-rating-big { justify-content: flex-start; }
  .member-location { justify-content: flex-start; }

  /* Demandes */
  .req-form-card { padding: 16px; }
  .report-card { padding: 16px; }

  /* Admin */
  .admin-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; scrollbar-width: none; }
  .admin-tabs::-webkit-scrollbar { display: none; }
  .admin-tab { white-space: nowrap; }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Empty state padding */
  .empty-state { padding: 32px 16px; }
}

@media (max-width: 640px) {
  .req-header { flex-direction: column; align-items: flex-start; }
  .admin-tab  { padding: 7px 10px; font-size: 12px; }
  .admin-table { font-size: 12px; }
  .admin-table th, .admin-table td { padding: 8px 8px; }
  .admin-stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .how-cta-row { flex-direction: column; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }

  /* Dash grid (home) vertical */
  .dash-grid { grid-template-columns: 1fr; }

  /* Membre: contact btn pleine largeur */
  .member-contact-btn { font-size: 13px; }

  /* Info pages */
  .info-page-title { font-size: 20px; }

  /* Fiche avis */
  .review-header { flex-direction: column; align-items: flex-start; gap: 4px; }

  /* Requests card actions */
  .req-card-actions { gap: 6px; }
  .req-card-actions .btn { font-size: 12px; padding: 6px 12px; }
}
